Streaming live at 10am (PST)

Where do I insert Google Tag Manager


#1

Where do I put this, please?

If I place it in the custom code section it will not save because of a code error.

Do I just put a container at the top of "Body" and paste it in?

Please advise.

Allan


#5

Hi @AllanG, thanks a lot for your post. The custom code panels do not take the <noscript> tag, so you would need to use a little javascript to wrap that code:

<!-- Google Tag Manager -->
<script language="JavaScript">
<!--
document.writeln("<noscript><iframe src=\"//www.googletagmanager.com/ns.html?id=GTM-5J3M9M\"");
document.writeln("height=\"0\" width=\"0\" style=\"display:none;visibility:hidden\"></iframe></noscript>");
//-->
</script><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],
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
'//www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
})(window,document,'script','dataLayer','GTM-5J3M9M');</script>
<!-- End Google Tag Manager -->

Try to copy and paste this to your site Head, save changes and republish your site. Let me know if you have any issues thanks ! Cheers, Dave smile


#6

Thanks Dave or the awesome support. It is always very prompt and very much appreciated.

Allan


#7

Hi There,

Google Tag Manager shouldn't be in the head tag but should be in the body tag. Will this be a problem? Tag inspector is saying that its not implemented properly - Josh


#8