Advanced Billing is happy to provide this short guide on how to implement Google Tag Manager on your Public Signup Pages. You will need to follow the instructions below and the format of the snippet in order for Google Tag Manager to work on your site.
For up to the minute information on Google Tag Manager, please visit their homepage here.
If you would like to incorporate Google Tag Manager into your Public Signup Pages, you can accomplish this via two methods:
- Place the code snippet from Google as a default for all Public Signup Pages to use
- Place the code snippet from Google on an individual Public Signup Page.
Example Code
(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],
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
})(window,document,'script','dataLayer','GTM-XXXXXX');
Omission of Iframe script
Regarding the noscript portion of the Google Tag manager script, its implication is for usage in webpages that do not use JavaScript. Seeing that there are very few applications that do not support JS, the above script will handle approximately 99% of visitation to your site.
<!-- Google Tag Manager (noscript) -->
<noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-XXXXXX"
height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
<!-- End Google Tag Manager (noscript); -->
Troubleshooting
We recommend using Google Tag Assistant to ensure that your tag is placed correctly and is functioning properly.