As the name says, it’s a tag manager offered by Google for free. Here is one basically tutorial show you what it can do, what kind of benefit it can bring to your table.
So first sign up for a account, create one container, get the script you need to inject to your website, try insert the script after <body> tag. if you insert it to blogger, parse the special tags, like & to &
Then time to create some tags and test to see the tags on your website.
we create one tag to inject the firstaccess cookie to record the first time user hit the web site,
for the rules, we applied to all pages.
that’s for tag creating process, now we need to publish this tags.
Click the create version button,
it will create one new version with all the current tags,
in each version , you can click save and publish. or SaveandPreview.
savepreview give us change to make sure tags executed. so we click the save and preview mode.
you may see the msg telling you you are in the preview and debug mode. yes, we are!
once confirmed ok, exit the preview mode and publish it.
now, go to my web page, you can see we have the firstaccess cookie is there, we injected successfully.
here is the code for your reference,
if( ! getCookie('firstaccess'))