Add this code to the Booking Engine
Link to the settings https://app.syncnbook.com/client/#/settings/connectivity/booking-engine-settings
<script async src="https://www.googletagmanager.com/gtag/js?id=AW-XXXXXXXX"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'AW-XXXXXXXX');
</script>
<!-- Event snippet for Room Booking conversion page
In your html page, add the snippet and call gtag_report_conversion when someone clicks on the chosen link or button. -->
<script>
function gtag_report_conversion(url, price, currency) {
var callback = function () {
if (typeof(url) != 'undefined') {
window.location = url;
}
};
gtag('event', 'conversion', {
'send_to': 'AW-XXXXXXXX/Yr6SCP-KqrkBEKTlqdsC',
'value': price,
'currency': currency,
'transaction_id': '',
'event_callback': callback
});
return false;
}
</script>
MHS gives us 3 separte tracking codes to input in this script above. These codes should replace the XXXXXXXX in the script above.
βBooking Link to connect Channex to GHA
https://app.syncnbook.com/HOTELNAME/book?dateFrom=(CHECKIN_DATE)&nights=(LENGTH)#/choose-room
β *be careful to only change HOTELNAME to the slug for the property.