Where do I insert Google Tag Manager

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.


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>");
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
<!-- 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 :slight_smile:

1 Like

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


1 Like

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