What is Google Tag Manager?
Released in 2012, Google Tag Manager is a free tool that consolidates your website tags with a single snippet of code and lets you manage everything from a single point. Anyone can add and update their own tags, with just a few clicks, whenever they want, without bugging the IT folks or rewriting site code. It gives marketers greater flexibility, and lets webmasters focus on other important tasks.
Furthermore, it’s not limited to Google-specific tags. It includes asynchronous tag loading, so “tags can fire faster without getting in each other’s way,” as Google puts it. It comes with tag templates for marketers to quickly add tags with Google’s interface, and supports custom tags. It also has error prevention tools like Preview Mode, a Debug Console, and Version History “to ensure new tags won’t break your site.”
How Does it Work?
Once this tag (i.e. script) is in place, the tag will asynchronously load from Google’s worldwide CDN (content delivery network), pulling in all of the tags that can fire as well as rules and macro information that you’ve set up within your tag manager account. When the page loads, gtm.js parses rules that you’ve applied to determine if a tag should fire. If it should fire, then it adds the appropriate tag to the page. Ultimately, you will have fewer tags firing on a per page level – in theory reducing noise and load time.
How Do I Use it?
For basic setup:
- Sign up for a Google Tag Manger account here
- Set up you account & container – typically you will have one container per site/client
- Once you have your container created, you will be given the tag manager code
- Then add the tag manager code to the website you are tracking – leaving your old tracking codes in place for now
- After publishing the tag manager code on the website, I’ll test my tags and debug within tag manager to ensure my tag manager code is firing properly.
- Once the tag manager code has been verified, I will then start the process of moving all of the pre-existing tracking codes from the website into tag manager. I would suggest creating a new version for every new code and labeling it appropriately so that you can test and verify performance easily.
- And finally, once all of the tags have been transitioned, I will remove the duplicate (old) tags from the website and we are ready to move on to the next level of analytics setup – including event, link and conversion tracking.