Tracking

Google Tag Manager

Google Tag Manager holds the tracking code for your site in one place, so tags can be added, tested and switched off without touching the website.

Also called GTM, tag manager, container

SiiteWritten by SiiteUpdated September 17, 2026

Google Tag Manager is a container for the tracking code on your website. One snippet goes on the site, and everything measured after that, from analytics to advertising pixels, is added, changed and removed inside the Tag Manager interface rather than in the site’s own code.

In short

  • A container that delivers tracking code to your site.
  • It reports nothing; the tools it loads do the reporting.
  • Tags, triggers and variables are the three pieces to understand.
  • Changes go live only when a version is published, which makes it reversible.

What problem it solves

Without a tag manager, every measurement request becomes a development job. The Meta pixel arrives in one file, an Analytics snippet in another, a conversion tag in a third, and each change waits for whoever has access to the code.

With one, the site carries a single container snippet. Everything else is configuration. Marketing can add a conversion tag for a new campaign on a Tuesday afternoon, and remove it when the campaign ends, without touching the website or asking for a deployment.

The second benefit arrives later and matters more. Because everything lives in one place, you can open the container and see the complete list of what is loading on your site. A business without a tag manager rarely has that list at all, which is how sites end up sending data to suppliers nobody remembers appointing.

There is a cost on the other side of that convenience. Anybody with publish rights can put a script on every page of the site, which is a serious amount of trust to hand out, and a container shared with an agency should be reviewed when the relationship ends.

Tags, triggers and variables

The vocabulary is small, and understanding three words covers most of the tool.

  • Tag. The code to run: an Analytics configuration, a Meta pixel, a conversion tag, a chat widget.
  • Trigger. The condition that fires it: a page loading, a button being clicked, a form being submitted, somebody reaching the bottom of a page.
  • Variable. A value read by either: the page path, a click URL, an order total pulled from the page.

A typical setup is one tag for Analytics on all pages, a second for the advertising pixel, and a handful of triggers marking the actions that matter. The temptation is to build far more, and the discipline is to add a tag only when somebody can say what decision its data will inform.

Events reach the container through the data layer, a small piece of structured information the site publishes about what just happened, such as a purchase with its value. Shops built on mainstream platforms usually provide one already.

Built-in variables cover most needs before anybody writes anything custom. The page path, the clicked link, the form identifier and the referrer are all available with a tick in a settings panel, and reaching for custom JavaScript early is usually a sign the data layer is missing.

Preview before publish

Two separate steps stand between an idea and your visitors, which is the feature that makes the tool safe to use.

Preview mode opens your own site in a debug session. As you click through it, the panel shows which tags fired, which triggers evaluated true, and what values the variables held. A tag that fires twice, or on the wrong page, is visible in seconds rather than in next month’s report.

Publishing takes the current workspace and makes it a numbered version. Because versions are kept, a change that turns out to be wrong is undone by publishing the previous one. Write a sentence in the version description each time, because the container will outlive everybody’s memory of why a tag was added.

Preview mode also answers the question nobody can answer from memory, which is what fires on this page today. Walking your own checkout with the panel open finds a duplicated purchase tag in minutes, where the monthly report only shows that the numbers look generous.

A tag manager is the right place to handle cookie consent for Google’s tags, because it controls the order in which everything loads.

The pattern is fixed. A consent initialisation trigger sets the default state to denied before any measurement tag can fire. The banner then updates that state when the visitor answers, and each tag is told which consent types it needs. This is the practical implementation of Consent Mode, and doing it anywhere later in the page means the cookies are already written by the time anybody is asked.

The same control is what lets you hold non-Google scripts back until a category is accepted, so the whole consent arrangement can be reasoned about in one place rather than four.

Keeping the container honest

Containers rot quietly. Nobody notices a tag firing for a supplier the business stopped using, because nothing breaks.

  • Name things consistently, such as tool, then purpose, then scope, so a stranger can read the list.
  • Review it twice a year, removing tags for tools no longer in use.
  • Give access deliberately, since publish rights are the ability to change every page at once.
  • Check what loads without consent, in a private window, before trusting the banner.
  • Keep one container per site, because two containers on one site produce duplicated events and reports nobody can reconcile.

That last point is the most common technical fault. The second most common is a tag installed both in the container and directly in the site’s code, which counts every purchase twice and makes the campaign look better than it was.

Words you will hear

  • Container. The unit holding all tags for one site, identified as GTM followed by a short code.
  • Workspace. The draft area where changes are made before publishing.
  • Version. A published snapshot of the container, which can be restored.
  • Preview mode. The debug session showing what fires as you browse.
  • Data layer. Structured information the site publishes for tags to read.
  • Consent initialisation. The trigger that runs before all others.
  • Server-side container. A version running on your own server rather than in the browser.

Open your container and read the tag list aloud. Anything you cannot explain the purpose of is either undocumented or unnecessary, and both are worth an hour this week.

Questions we get

More about google tag manager

Is Google Tag Manager a reporting tool?

No, and this is the most common misunderstanding. It reports nothing and shows no numbers. It is the delivery system that puts measurement code on your pages, while Google Analytics, Google Ads and Meta remain the places where results are read.

Do we need it if we only use Analytics?

Not strictly. One tag can be installed directly. It earns its place at the second tag, and again the first time somebody wants a change made without booking a developer.

Does it cost anything?

The standard product is free. There is a paid enterprise version with features most small businesses will never reach, and a separate server-side option that has hosting costs of its own.

Will it slow the site down?

The container itself is small. What slows a site is what people put inside it, since every tag added is another script the browser fetches. A container carrying eleven tags nobody has reviewed in two years is a performance problem wearing a tidy name.

What are tags, triggers and variables?

A tag is the code to run, such as the Analytics or Meta snippet. A trigger is the condition that fires it, such as a page view or a button click. A variable is a value either of them can read, such as the page URL or an order total.

How do we check a change before it goes live?

Preview mode opens your site in a debug session showing which tags fired and why. Nothing reaches visitors until you publish a version, so the preview and the publish are two deliberate steps.

Can it handle cookie consent?

Yes, and it should. A consent initialisation trigger sets the default state before any other tag fires, and each tag can be told which consent it requires. Consent handled anywhere else in the page is where most banners quietly fail.
Want this handled for you?

Let us take google tag manager off your desk.

The guides and these pages are yours to use for nothing. When you would rather have the work done properly than done by you, tell us what is already in place and we will put a proposal together.

or call +63 2 5323 8174