Posted - 11/12/2020 : 05:04:03
Hi there,
I am implementing the "global site tag" Google Tracking code and I am using the dwt templates main.dwt file:
So using the dwt template i can insert the below code to every page
(1)
<!-- Global site tag (gtag.js) - Google Ads: ********* --> <script async src="https://www.googletagmanager.com/gtag/js?id=AW-**********"></script> <script> window.dataLayer = window.dataLayer || []; function gtag(){dataLayer.push(arguments);} gtag('js', new Date()); gtag('config', 'AW-**********'); </script>
The last part of this is to add the event snippet below to the "thanks.php" page, which will qualify each conversion:
(2)
<!-- Event snippet for Website traffic conversion page --> <script> gtag('event', 'conversion', {'send_to': 'AW-***********/VidJCO_noeUBEL2YiI8C'}); </script>
However if i add this line above (2) under neath the line (1) above, the twt template I am editing to add this line on the thanks page, it detaches from the main.dwt page, does this mean I am going to have to add this line manually every time I make updates to pages through the main.dwt?
Jason
|