Tag manager setup and short guide
https://tagmanager.google.com/
Follow the prompts.
If your analytics isn't connected, tagging won't work.
You can confirm this by clicking "google tags"
Create an account, match account name and region to Analytics.
get some more code stubs.
Same deal as analytics.
Tag id will be different. Copies will be below, same implementation as analytics, but it goes in <head> and <body>
Important because it initiates data layers for interaction tracking.
Header content
<!-- Google Tag Manager -->
<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-XXXXXXXX');</script>
<!-- End Google Tag Manager -->
Body content
<!-- Google Tag Manager (noscript) -->
<noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-XXXXXXXX"
height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
<!-- End Google Tag Manager (noscript) -->
Tag manager is *extremely* granular. It won't be covered in this guide.