/*
Theme Name: Grand Restaurant Child
Theme URI: http://themes.themegoods2.com/grandrestaurant
Description: Premium Cafe & Restaurant Theme
Version: 1.0
Tags: yellow, white, responsive-layout, custom-header, custom-background, threaded-comments, translation-ready, editor-style, custom-menu
Author: ThemeGoods
Author URI: http://themeforest.net/user/ThemeGoods
License: GNU General Public License
License URI: http://themeforest.net/licenses/regular_extended
Text Domain: grandrestaurant
Template: grandrestaurant
*/

@import "../grandrestaurant/style.css";

function add_conversion_script_to_thank_you_order_page() {
    // Check if the body tag has the class 'page-id-7361'
    if (is_page() && has_body_class('page-id-7361')) {
        echo "<!-- Thank you order page detected -->";
        ?>
        <!-- Event snippet for Outbound Click conversion page -->
        <script>
            console.log('Conversion script added successfully.');
            gtag('event', 'conversion', {
                'send_to': 'AW-11362003067/duH1CLK47roZEPvQ6akq',
                'value': 1500.0,
                'currency': 'VND'
            });
        </script>
        <?php
    } else {
        echo "<!-- Not the thank you order page -->";
    }
}
add_action('wp_head', 'add_conversion_script_to_thank_you_order_page');




