Google Tag Manager Overview
What is GTM? How it’s beneficial for bloggers?
Key benefits of using GTM is, it removes the need for editing the website code over and over again, we can test and deploy tags faster, advanced tracking possible and it improves site speed too.
GTM main components
GTM consists of these three main parts:
2. Triggers: Defines when and where tags are executed.
3. Variables: Used to receive or store data to be used by tags and triggers.
Pre-requirements to implement GTM
1. Google Universal Tracking Code
2. Google Tag Manager Container Tag
How to implement GTM
For GTM implementations we need to deploy a tag on our website. Currently, GTM provides 59 tag templates.
For adding a tag, click on “ADD A NEW TAG”
Now You can now see the list of available GTM tag templates:
Note: If you want you can use your tags via Custom HTML or Custom Image.
Role of Triggers and Implementation
Triggers are an essential part of a tag work process. So you cannot create a tag except first creating the corresponding triggers. There are a couple of methods of creating a trigger in Google Tag Manager.
1. First one is while you are creating a new tag
2. This one is through the triggers menu
When a Trigger Fires
A firing trigger is a condition which must be met at the run time, for a tag to fire/execute. A firing trigger (fired rule) tells GTM when the tag should fire.
Example of Triggers –
Following are the examples of built-in triggers:
All Page Views
Following are the examples of custom triggers:
Some Page Views
What is Variables and the Data Layer, Implementation
Space is used to save data that is in defining a trigger and to gather pieces of information (like product pricing, Google Analytics account id, etc.) to tag at runtime. A variable tells GTM where to fire a tag. In simple words, the variable that stores and sends information from your site to GTM.
A data layer is an object that can be configured to contain information that you want to pass to Google Tag Manager.
Google Tag Manager is ideal for marketers as they don’t need to involve a developer with every single little tweak to Simple Tags.