Google Tag Manager Head and Body
GTM container snippet with both the head script tag and the body noscript fallback — replace GTM-XXXXXXX with your Container ID and follow the placement comments.
HTMLby SnipCraft
html
<!-- Google Tag Manager -->
<!-- IMPORTANT: Replace GTM-XXXXXXX with your Container ID (appears twice below) -->
<!-- HEAD SNIPPET: place inside <head> as high as possible -->
<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=
'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
})(window,document,'script','dataLayer','GTM-XXXXXXX');</script>
<!-- END HEAD SNIPPET -->
<!-- BODY SNIPPET: place immediately after the opening <body> tag -->
<noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-XXXXXXX"
height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
<!-- END BODY SNIPPET -->#analytics#google#gtm#tag-manager#tracking