← Blog/What Is a Google Tag Manager, and When Do You Need It?
Google Tag ManagerTrackingGA4Marketing Operations
Analytics · 6 min read

What Is a Google Tag Manager, and When Do You Need It?

Google Tag Manager is a free tool for managing tracking code on your website from one place. What it does, how it differs from GA4 and when you need it.

· Martin Guzman

Google Tag Manager is a free tool from Google that lets you add and manage tracking code on your website from one place, without editing the site's code each time. You need it once you run more than a couple of tracking tools, or once you want to measure specific actions such as form submissions and button clicks.

People often phrase the search as "what is a Google Tag Manager", as if it were a job title or a device. It is neither. It is a web application, usually shortened to GTM, and the rest of this post explains what it does and how to decide whether your business needs it.

What is a Google Tag Manager, in plain terms

A tag is a small piece of code that sends information from your website to another service. Google Analytics 4 uses one. So does every advertising platform that wants to know whether its ads led to a sale.

Without a tag manager, each of those snippets is pasted into the website itself. Every new tool and every change means another request to whoever maintains the site.

With Google Tag Manager, one snippet goes on the site once. This is the container. From then on, you add, change and remove tags inside GTM's own interface, and the container delivers them to your pages.

GTM does not collect or report anything itself. Think of it as the electrical panel: it controls what is switched on and when. The reports live elsewhere.

The three parts you will hear about

PartWhat it isExample
TagThe code that sends data somewhere"Tell Google Analytics a lead was generated"
TriggerThe rule that decides when a tag runs"When the quote form is submitted"
VariableA detail the tag or trigger can useThe page address, or the order value
How a tag fires
A visitor acts
Submits the quote form
Trigger
The rule matches
"When the quote form is submitted"
Tag
The code runs
Tag Manager sends the data
Google Analytics
A lead is recorded
Ad platforms
A conversion is recorded
One trigger can feed several tools, and none of it needs a developer to change the site.

You may also hear about the data layer. This is a structured list of facts that your website hands to GTM, such as the contents of a shopping cart. It usually needs a developer to set up, and it is what makes tracking for online stores reliable.

Two more features matter in daily use. Preview mode lets you test a change on your live site before any visitor is affected. Versions keep a history of every published change, so you can see who changed what and roll back if something breaks.

How it differs from Google Analytics

The two are often confused because both come from Google and both involve tracking.

Google Analytics 4 stores data and shows you reports. Google Tag Manager decides what data gets sent, and to which tools. You can run Google Analytics without GTM, and you can use GTM to feed tools that have nothing to do with Google.

A simple test: if your question is "how many", you want Google Analytics. If your question is "why is this not being counted", the answer is often in Google Tag Manager.

When you need it, and when you do not

You can skip it if:

  • Google Analytics is the only tracking tool you use.
  • Your website platform has a built-in field for your Google Analytics ID, and that covers what you want to know.
  • Page views and traffic sources are enough for the decisions you make.

You should use it if:

  • You run several tools, such as Google Analytics plus the conversion tags of one or more ad platforms.
  • You want to measure particular actions: a form sent, a phone number clicked, a file downloaded, a video played.
  • Your marketing team waits days for a developer every time a tag needs to change.
  • You have a consent banner and need to control which tags run before and after a visitor agrees.
  • Nobody can say for certain what tracking code is on the site today.

That last one is more common than you might expect. Sites collect tags over the years, and a tag manager is the easiest place to see them all in one list.

A worked example

Take a hypothetical landscaping company in Ontario. Its website has a "request a quote" form, and it advertises on two platforms.

Without GTM, a developer pastes three snippets into the site: one for Google Analytics and one for each ad platform. Each has its own way of detecting that the form was sent. When the form is redesigned in the spring, two of the three stop working, and nobody notices until the ad reports show no leads for a month.

With GTM, there is one trigger called "quote form submitted". Three tags are attached to it. The marketing lead tests the set-up in preview mode, sees all three tags fire, and publishes. When the form is redesigned, one trigger is updated and all three tools keep counting.

The company has gained two things: a single place to look, and a single thing to fix.

What to watch for

Google Tag Manager is powerful, and that brings two risks.

The first is access. Anyone with permission to publish can put code on your website. Give that right to as few people as possible, and remove former staff and suppliers.

The second is clutter. A container with unnamed tags and no notes becomes as hard to understand as the hard-coded mess it replaced. Agree on a naming pattern early, and write a line in the version notes every time you publish.

GTM also does not decide what is worth measuring. That is a business question, and it should be answered before anyone builds a tag.

How to check whether you already have it

  1. Open your website, view the page source and search for GTM-. Container IDs start with those four characters.
  2. If you find one, find out who owns the account. It should belong to your company and not to a former supplier.
  3. Sign in and count the tags. For each one, ask what it is for and whether you still use that tool.
  4. Look at the version history. A container nobody has published in years, on a site that has changed, is worth a closer look.

If there is no container and your needs match the first list above, you can leave things as they are.

A next step, if you want one

I'm an independent marketing analytics consultant in Ontario, and the tag set-up is one of the first things I look at in an analytics audit. If you would like someone to go through your container and tell you what is working, what is broken and what can be removed, get in touch.

Related