Analytics and Tracking

Google Tag Manager (GTM)

Also called GTM, Tag Manager

Google's free container tool for adding and changing tracking tags on a website without editing the site's code each time.

Quick facts: Google Tag Manager (GTM)

Category
Analytics and Tracking
Also called
GTM, Tag Manager
Level
Beginner
Affects
Tracking accuracy, deployment speed, page performance
Where to see it
Google Tag Manager (Preview, Versions, Container), GA4 DebugView
In this article4
  1. How Google Tag Manager works
  2. Why Google Tag Manager matters
  3. Common mistakes with Google Tag Manager
  4. How to act on it

How Google Tag Manager works

Tag Manager is a container. You install one snippet on every page of the site, and from then on any tracking code you want to add — analytics, ad platform pixels, chat widgets, heatmap tools — is configured inside the Tag Manager interface rather than pasted into the site’s templates.

Three pieces do the work. A tag is the code to run. A trigger is the condition that runs it: a page loading, a click on a matching element, a form being submitted, a custom message pushed from the site. A variable supplies the values a tag needs, such as the page URL, the clicked text, or an order total read from the data layer. You build the combination, test it in preview mode, then publish a version — and because every publish creates a version, you can roll back to the previous one when something breaks.

Why Google Tag Manager matters

It separates marketing changes from development work. Adding a tracking pixel, correcting an event name or removing a retired tool becomes a task someone can do in minutes rather than a request that waits in a developer queue. On sites where deployments are slow, and on a WordPress site where every plugin injecting code is another thing to maintain, that difference is the point.

It also makes tracking auditable. All the third-party code sits in one list with names, notes and a change history, so you can see exactly what is loading and who added it, instead of hunting through theme files for scripts nobody remembers.

Common mistakes with Google Tag Manager

Publishing without previewing is the classic. Preview mode shows which tags fired, why they fired and what values they received; skipping it is how accounts end up counting a conversion on every page load, or on none.

Duplication comes next. A pixel installed by a plugin, hard-coded in the theme and added again in Tag Manager will fire more than once, and the resulting numbers are wrong in the direction that flatters the campaign. Others build triggers on fragile things — a CSS class the next theme update renames, or a thank-you page a visitor can reload — rather than on a deliberate signal pushed from the site. And a container everyone can publish to eventually collects tags with no owner, no note and no reason to still be there.

How to act on it

Name things consistently from the first tag. A pattern that says what the tag is and where it fires saves far more time than it costs to agree. Use folders, fill in the note field, and delete the old hard-coded scripts once their Tag Manager equivalent is live rather than leaving both in place.

Ask a developer for a data layer covering anything valuable — order value, currency, transaction ID, form name — because reading those out of the page’s HTML is guesswork that breaks at the next redesign. Restrict publish rights to people who understand what a version does, and preview every change before it ships. Where a container has been inherited, a Google Tag Manager review that documents each tag and retires the dead ones is usually the shortest route back to numbers you can trust.

Do and do not

Do

  • Preview every change before publishing a version
  • Name tags, triggers and variables to one convention
  • Ask developers for a data layer carrying valuable values

Do not

  • Publish a container you have not tested in preview
  • Leave the same pixel in the theme and in GTM
  • Give publish rights to everyone with an account

Questions people ask about this

Do I still need Google Analytics if I have Tag Manager?

Yes, because they do different jobs. Tag Manager delivers code to your pages and decides when it runs; it keeps no reports of its own. Analytics receives the data and shows it to you. In practice most sites use Tag Manager to install the GA4 tag and send events into it, so the two work together.

Will Tag Manager slow my website down?

The container itself is small and loads asynchronously, so it is rarely the cause. What slows a site is what you put inside it: several heavy third-party scripts firing on every page will cost speed however they were installed. Audit the tag list, fire tags only where they are needed, and remove ones nobody uses.

Can I use Tag Manager without a developer?

For a lot of common work, yes — installing analytics, adding platform pixels, tracking clicks on buttons and links. You will still want a developer for the data layer, which is where reliable values such as order total, currency and transaction ID come from. Without one, ecommerce and form tracking rely on guesswork that breaks easily.

Related terms

Found this useful?

Share it, or ask an AI to summarise it

Back to the glossary

Knowing the term is the easy part

Applying it to your own site and budget is the work. Book a call and I will tell you what actually applies to you.