Analytics and Tracking

Container

The box in Google Tag Manager, or another tag manager, that holds all of a site's tracking tags, triggers and variables.

Quick facts: Container

Category
Analytics and Tracking
Level
Beginner
Affects
Conversion tracking, GA4 data, ad pixels, consent enforcement, page speed
Where to see it
Google Tag Manager, GTM preview mode, Tag Assistant, browser developer tools
In this article4
  1. How a container works
  2. Why it matters
  3. Common mistakes
  4. How to act on it

A container is the box in a tag management system that holds all the tracking code for one website or app. In Google Tag Manager, the most common example, you install one container snippet on your site, and everything else (analytics tags, ad pixels, conversion tags and the rules for when they fire) is managed inside it rather than in your website’s code.

How a container works

Each GTM container has an ID that starts with GTM- followed by a short code. The snippet that loads it goes in two places on every page: high in the head, and just after the opening body tag. Once it is there, the container can load any tag you configure without a developer editing the site again.

Inside, the container holds three kinds of building block:

  • Tags The code that sends data somewhere, such as a GA4 event or a Google Ads conversion;
  • Triggers The conditions that make a tag fire, such as a page view, a click or a form submission;
  • Variables The values tags and triggers need, such as the page address, an order value or a transaction ID.

Changes are made in a workspace, tested in preview mode, then published as a numbered version. Every published version is kept, so a broken change can be rolled back to the last working one in a few clicks.

There are container types for different jobs: web, iOS, Android and server. A server container runs on a cloud server you control rather than in the visitor’s browser, and is the basis of server-side tagging. Other tag managers use different names for the same idea; Adobe’s tag manager calls it a property.

Why it matters

For most UK small and medium businesses, the GTM container is where the measurement for Google Ads, Meta Ads and GA4 actually lives. If it is set up well, adding a new conversion or changing a tag is an hour’s work. If it is not, the same job means untangling years of tags nobody remembers adding.

It is also where consent is enforced. Under PECR, tags that set analytics or advertising cookies must wait for consent, and in a GTM set-up the container is where that rule is applied, through your consent platform’s template and the consent settings on each tag.

Ownership matters as much as configuration. A container sits inside a GTM account, and whoever controls that account controls your tracking. When a business parts company with an agency whose account holds the container, it can lose access to its own measurement overnight.

Common mistakes

  • Two containers, or a container plus hard-coded tags. The same GA4 or Google Ads tag fires twice and every conversion is counted twice.
  • Container held in someone else’s account. Create the GTM account under the business’s own Google login and add outside help as users.
  • Publishing without previewing. A tag that looked right can fire on every page or on none.
  • No version names or notes. “Version 47” tells nobody what changed or why.
  • Everyone has publish rights. GTM separates who can read, edit, approve and publish; use those levels.
  • Dead tags left running. Pixels for tools you stopped paying for still load, slow the site and may send data you no longer have a reason to collect.

How to act on it

Check who owns your container. Open GTM, go to Admin and look at user management for both the account and the container. The business should hold at least one administrator login of its own.

Then list every tag in the container with what it does, who asked for it and whether it is still needed. Pause anything nobody can explain, test in preview mode, and publish with a clear version name. Check the consent settings on each remaining tag so nothing that needs consent fires before it is given.

If the container has grown beyond what you can audit yourself, a clean rebuild is often quicker than a repair. Tag Manager clean-ups and rebuilds are part of my performance marketing service, because paid campaigns are only as good as the conversion data the container sends.

Do and do not

Do

  • Keep the GTM account under the business's own Google login
  • Preview every change before publishing
  • Name and describe each published version

Do not

  • Run GTM alongside hard-coded copies of the same tags
  • Give publish rights to everyone with access
  • Leave tags running for tools you no longer use

Questions people ask about this

Do I need one container per website?

Usually, yes: one web container per site, or per group of domains that share exactly the same tracking. Sharing a container across unrelated sites is possible but harder to manage, and riskier when the sites have different owners or consent set-ups. Mobile apps need their own containers.

Is Google Tag Manager free?

The standard version is free and is what almost every small and medium business uses. There is a paid enterprise tier, Tag Manager 360, sold as part of Google Marketing Platform. Server containers cost nothing in GTM itself, but you pay for the cloud hosting they run on.

Will adding a container slow my site down?

The container script itself is light. What slows a site is what you load through it: a container with a few well-chosen tags has little effect, while one carrying a dozen pixels, heatmaps and chat widgets can noticeably slow pages. Audit the tags regularly and remove what you no longer use.

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.