Saturday 23 May 2020

Components of Google Tag Manager

Google Tag Manager is a free tool that allows you manage and deploy marketing tags (snippets of code or tracking pixels) on your website (or mobile app) without having to modify the code.

“Google Tag Manager helps make tag management simple, easy and reliable by allowing marketers and webmasters to deploy website tags all in one place."

There are three main parts to Google Tag Manager:

1. Tags: Snippets of Javascript or tracking pixels
2. Triggers: This tells GTM when or how to fire a tag
3. Variables: Additional information GTM may need for the tag and trigger to work

What are tags?

Tags are snippets of code or tracking pixels from third-party tools. These tags tell Google Tag Manager what to do.

Examples of common tags within Google Tag Manager are:

  • Google Analytics Universal tracking code
  • Adwords Remarketing code
  • Adwords Conversion Tracking code
  • Heatmap tracking code (Hotjar, CrazyEgg, etc…)
  • Facebook pixels

What are triggers?

Triggers are a way to fire the tag that you set up. They tell Tag Manager when to do what you want it to do. Want to fire tags on a page view, link click or is it custom?

What are variables?

Variables are additional information that GTM may need for your tag and trigger to work. Here are some examples of different variables.


The most basic type of constant variable that you can create in GTM is the Google Analytics UA number (the tracking ID number).


Those are the very basic elements of GTM that you will need to know to start managing tags on your own.