Google Tag Manager (head)
The first part of the Google Tag Manager container code, for the page head. Install “Google Tag Manager (body)” too.
Fill in your details first. Replace GTM-XXXXXXX with your container ID.
<!-- Replace GTM-XXXXXXX with your container ID. -->
<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>
Comes with a rule
It doesn't run for administrators, so your own visits don't count in your statistics. You can change the rule after installing.
In these packs
- Analytics and pixels: The usual tracking codes, ready to paste your ID into. Administrators’ visits aren’t counted.