What is Google Tag Manager
How Google Tag Manager Works
Triggers is the term for when and where tags are executed. When you go to configure a trigger in GTM, you’ll be given a long list of types of triggers to choose from. These are your events.
Once you choose an event, you’ll be able to set up your filter.
Variables are used to recieve or store information to be used by tags and triggers. The term “variables” is used to denote a helper function that your tags, triggers, and other variables can invoke to retrieve values from.
Folders are used to organize your tags, triggers, and variables. When you start adding multiple tags, the folders will become extremely helpful in staying organized.
How to Create and Account
Go to Google Tag Manager and click Sign Up For Free. Sign into your Google account and enter the account name and the country you’re located.
Installing the GTM Container
Adding Your Google Analytics Tracking ID
You’ll need to navigate to Google Analytics and go to the admin tab. Here you will select Tracking Info and then Tracking Code. Copy & paste the Tracking ID into Google Tag Manager and then click save.
The last step in the process is assigning the trigger. Select Triggering and then choose the default All Pages, assuming you want the tag to fire on all pages. In the future, you could create triggers that limited tags to firing on certain pages. However, for the Google Analytics Tag, simply select All Pages, and click Save.
Previewing Your Tags and the Data Layer
Once you have your tag and trigger created, you will be prompted to preview the data layer. This simply means opening your website in the same browser as Google Tag Manager. There you will see a preview of tags, variables, and the Google Tag Manager data layers that fired when you opened your website.
It is helpful to note that although Google Analytics and Google Tag Manager are powerful tools on their own, the possibilities are limitless when the two are combined.