Google Cross Domain Tracking: Difference between revisions
Jump to navigation
Jump to search
| Line 42: | Line 42: | ||
Example code: | Example code: | ||
<!-- Google Tag Manager --> | <code><!-- Google Tag Manager --> | ||
<script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start': | <script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start': | ||
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0], | new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0], | ||
| Line 48: | Line 48: | ||
'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f); | 'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f); | ||
})(window,document,'script','dataLayer','GTM-123456');</script> | })(window,document,'script','dataLayer','GTM-123456');</script> | ||
<!-- End Google Tag Manager --> | <!-- End Google Tag Manager --></code> | ||
*Additionally, paste this code immediately after the opening <body> tag. You can add it in any field in Source code in (SETTINGS) SETTINGS > BOOKING ENGINE > BOOKING PAGE > CONTENT | *Additionally, paste this code immediately after the opening <body> tag. You can add it in any field in Source code in (SETTINGS) SETTINGS > BOOKING ENGINE > BOOKING PAGE > CONTENT | ||
| Line 54: | Line 54: | ||
Example Code: | Example Code: | ||
<!-- Google Tag Manager (noscript) --> | <code><!-- Google Tag Manager (noscript) --> | ||
<noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-123456" | <noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-123456" | ||
height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript> | height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript> | ||
<!-- End Google Tag Manager (noscript) --> | <!-- End Google Tag Manager (noscript) --></code> | ||
= Google Tag Manager dashboard = | = Google Tag Manager dashboard = | ||