Tags: analytics web-dev platform
Google Tag Manager
Checked: 2026-10-29
A versioned bundle of tags, triggers and variables, compiled into one JavaScript file per container and evaluated against a merged data-layer model every time a message is pushed. Every GTM surprise is either the bundle (who published what, when) or the evaluation (what the model held when that trigger ran).
§0 The one idea
The rules live in Google’s interface; the page only ships messages.
Google Tag Manager (GTM) is a container script, gtm.js?id=GTM-XXXX, that Google compiles from whatever the last published version contains. On the page it patches dataLayer.push, and from then on every push is a message: it gets merged into an internal model, every trigger is tested against that model, and matching tags run. Change the rules, publish, and every page gets the new bundle — no deploy.
vs hardcoding vendor snippets: hardcoded, each vendor’s script sits in the template and fires when the code says so; changing it is a release. In GTM the template carries one snippet and a stream of dataLayer.push calls, and what happens in response is decided elsewhere, by whoever can publish. The vendor-neutral tradeoff is Hardcoded vs Tag-Managed Tracking; what a tag manager is and costs is Tag Managers.
HARDCODED GTM
template template
├─ <script> GA snippet ├─ GTM snippet (once)
├─ <script> Meta pixel └─ dataLayer.push({event:'purchase', …})
├─ <script> Hotjar │
└─ onClick → fbq('track', …) ▼
gtm.js — compiled from published version 42
change = code release ├─ merge message into model
├─ test every trigger
└─ fire matching tags → vendors
change = publish version 43
Two consequences:
- The page and the container are separately versioned. A broken number has two candidate causes — a site release and a container publish — and they don’t share a change log
- The data layer is the contract between them. The page states facts; the container decides what to do about them — The Data Layer
Where GTM sits among gtag.js, “the Google tag” and the ID prefixes is Google Measurement Stack. One line: GTM is the container; the Google tag is one of the things it can fire, alongside Google Analytics 4 (GA4) event tags.
At a glance
| Unit of deployment | The container — one per site or app, ID GTM-XXXXXXX |
| Container types | Web, Server, iOS, Android, AMP (Accelerated Mobile Pages) |
| Three object types | Tags (do), triggers (when), variables (read) |
| Unit of change | A version — immutable snapshot. Publish one; roll back to any earlier one |
| Parallel editing | Workspaces, merged on publish. Free tier caps them [CHECK: commonly cited as 3 including Default] |
| Load order | Consent Initialization → Initialization → Page View → DOM Ready → Window Loaded |
| What fires a custom trigger | A push carrying an event key. A push without one fires nothing |
| Data model | Merged, not per-message. Keys persist until overwritten |
| Data Layer Variable | Version 2 by default — dots mean nesting |
| Custom code | Custom HTML tags, Custom JavaScript variables (unrestricted) or custom templates (sandboxed, permissioned) |
| Debugging | Preview mode, via Tag Assistant (tagassistant.google.com) |
| Consent | Per-tag Consent Settings + the Consent Initialization trigger |
| Server-side | A separate server container on infrastructure you pay for |
| Paid tier | Tag Manager 360 — approvals, zones, enterprise support |
The data model
Account one per company
└─ Container GTM-XXXXXXX one per site / app — Web · Server · iOS · Android · AMP
├─ Workspaces parallel drafts, each forked from the latest version
│ └─ Tags · Triggers · Variables · Folders · Templates
├─ Versions immutable snapshots, numbered, one is Live
├─ Environments Live · Latest · your own (staging, dev)
├─ Settings container-wide Google tag settings (2026 redesign)
└─ Admin users, permissions, container settings
- Account — the company. Holds users. No configuration of its own worth knowing
- Container — the thing the snippet loads. One per website, not per page; name it for the top-level URL (uniform resource locator)
- Folders — organisational only. No effect on firing. Use them anyway; a 200-tag container without folders is unauditable
- Templates — definitions for custom tag and variable types, written in sandboxed JavaScript. Imported from the Community Template Gallery or written in-house
How the three objects reference each other
TAG "GA4 – purchase"
├─ type Google Analytics: GA4 Event
├─ reads {{DLV – ecommerce.value}} {{DLV – ecommerce.currency}} ← variables
├─ fires on CE – purchase ← trigger
└─ blocked by CE – internal traffic ← exception
TRIGGER "CE – purchase"
├─ type Custom Event
├─ event name purchase
└─ fires on Some Custom Events: {{Page Hostname}} equals shop.example.com ← variable again
Names like DLV – … (Data Layer Variable) and CE – … (Custom Event) are a common naming convention, not GTM syntax.
Variables are read in two places — inside tags (as values to send) and inside triggers (as conditions). {{Double Braces}} is the reference syntax everywhere in the interface.
Exceptions are blocking triggers. If an exception matches on the same event, the tag doesn’t fire, whatever its firing trigger says.
The container’s event loop
What actually happens on a page, in order. Each row is one message processed by the container; every trigger is tested against the model as it stands after that message merges.
TIME MESSAGE (event) TRIGGER TYPE THAT MATCHES TYPICAL TAGS
──────────────────────────────────────────────────────────────────────────────
0 gtm.init_consent Consent Initialization CMP tag, consent defaults
1 gtm.init Initialization Google tag, early config
2 gtm.js Page View most pixels
3 gtm.dom DOM Ready anything reading the DOM
4 gtm.load Window Loaded low-priority, heavy tags
… gtm.click Click – All Elements click tracking
… gtm.linkClick Click – Just Links
… purchase Custom Event "purchase" GA4 Event, Ads conversion
… gtm.historyChange History Change virtual pageview on SPA routes
- Consent Initialization always first, then Initialization, then the rest — this order is Google’s documented precedence. Page View fires as the container starts processing; DOM Ready once the document has parsed; Window Loaded after subresources finish
gtm.jsis pushed by the snippet itself (withgtm.start, a timestamp), which is why Page View is the earliest trigger most tags can use [CHECK:gtm.init_consentandgtm.initevent names are well attested but not found stated on Google’s help pages]- Auto-event triggers are listeners GTM installs. Click, Form Submission, Element Visibility, Scroll Depth, Timer, YouTube and History Change each attach a listener only if the container has a trigger of that type, then push their own
gtm.*message when it fires - Each processed message gets a
gtm.uniqueEventId— an incrementing counter, visible in Tag Assistant and in the model. It’s the tiebreaker when two pushes look identical: if one tag fired twice, two IDs prove it was two messages, not one tag firing twice on one message
What the model holds at each step
The persistence mechanics are in The Data Layer; this is how it looks across GTM’s lifecycle.
PUSHES MODEL A TAG READS ON THAT EVENT
{ page_type:'product', sku:'A1' } (no event) – no trigger evaluated with an event match –
{ event:'gtm.js' } page_type=product sku=A1
{ event:'gtm.dom' } page_type=product sku=A1
{ event:'add_to_cart', qty:2 } page_type=product sku=A1 qty=2
{ event:'gtm.load' } page_type=product sku=A1 qty=2 ← qty still there
Notice the last row. Window Loaded tags see qty: 2 from an add-to-cart that happened before load finished. Anything that fires late reads everything earlier pushes left behind.
A push without an event key still merges — it just doesn’t announce itself, so no Custom Event trigger can catch it. State pushed that way is read by the next event that does arrive.
Install and the round trip
The snippet
From Google’s install instructions — head, as high as possible:
<script>window.dataLayer = window.dataLayer || [];</script> <!-- declare first -->
<!-- Google Tag Manager -->
<script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
})(window,document,'script','dataLayer','GTM-XXXXXX');</script>
<!-- End Google Tag Manager -->Read it once: it creates the array if needed, pushes the gtm.js message, and injects gtm.js?id=GTM-XXXXXX async. The fifth argument is the variable name — change 'dataLayer' and the &l= parameter tells the container to listen to a different array.
Immediately after <body>:
<noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-XXXXXX"
height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>The noscript iframe only matters for JavaScript-disabled visitors and can only fire non-script tags (Custom Image). Most sites could drop it and lose nothing measurable.
One value, end to end
PAGE dataLayer.push({ event: 'sign_up', method: 'email' })
│
MESSAGE { event: 'sign_up', method: 'email', gtm.uniqueEventId: 14 }
│
MODEL … previous keys … method = 'email'
│
TRIGGER Custom Event · Event name: sign_up ✓ match
│
VARIABLE {{DLV – method}} → Data Layer Variable · Name: method → 'email'
│
TAG GA4 Event · event name: sign_up · param method = {{DLV – method}}
│
REQUEST → Google Analytics collection endpoint, en=sign_up, ep.method=email
The site code is the first line only:
// on the successful response — not on button click
dataLayer.push({
event: 'sign_up', // ← the only thing a Custom Event trigger matches on
method: 'email' // ← merged into the model; read by a Data Layer Variable
});Custom Event triggers match the event value exactly by default, with an option for regex. A regex of .* matches every message — useful for debugging, dangerous in production (see quirks).
Triggers
| Trigger | Message | Use and gotchas |
|---|---|---|
| Consent Initialization | gtm.init_consent | Consent defaults and the consent management platform (CMP) tag only. Ships as “Consent Initialization – All Pages” |
| Initialization | gtm.init | Tags that must precede everything else — the Google tag |
| Page View | gtm.js | The default. Fires before the DOM (document object model) is ready |
| DOM Ready | gtm.dom | Tags that read page elements |
| Window Loaded | gtm.load | Heavy, non-urgent tags. Fires late — sessions that bounce early never reach it |
| Click – All Elements | gtm.click | Any element. Reads the clicked node, often a child <span> not the button |
| Click – Just Links | gtm.linkClick | <a> only. Options: Wait for Tags (delays navigation up to a timeout) and Check Validation (skip clicks another script cancelled) |
| Form Submission | gtm.formSubmit | Native submit events. Blind to forms submitted by fetch without a submit event |
| History Change | gtm.historyChange | pushState and fragment changes — single-page app (SPA) route changes. See The History API |
| Custom Event | your event value | The one to prefer. Everything else is GTM guessing; this is the site saying |
| Element Visibility | gtm.elementVisibility | Selector or ID; once per page / per element / every time; minimum % visible and duration |
| Scroll Depth | gtm.scrollDepth | Vertical/horizontal, percentages or pixels |
| Timer | gtm.timer | Pushes every N ms, with a limit |
| YouTube Video | gtm.video | Embedded YouTube only, needs the JavaScript API (application programming interface) enabled on the embed |
| JavaScript Error | gtm.pageError | Uncaught errors. Useful for QA, noisy as an analytics event |
| Trigger Group | — | Fires once all member triggers have fired at least once on the page. “Viewed pricing AND scrolled 50%” |
Every trigger type except Trigger Group can be All or Some (with conditions on variables). Conditions are ANDed; OR means a second trigger.
Prefer Custom Event over auto-event triggers wherever the site can push. Click and form triggers bind tracking to markup, which is the DOM-scraping failure in trigger form.
Variables
Built-in
Predefined, toggled on in Variables → Configure. Many are off by default — a trigger condition on {{Click Classes}} silently fails until it’s enabled.
- Page — Page URL, Page Hostname, Page Path, Referrer
- Utilities — Event, Environment Name, Container ID, Container Version, Random Number, HTML ID
- Clicks / Forms — Click Element, Click Classes, Click ID, Click URL, Click Text; same set for Form
- History — New/Old History Fragment, New/Old History State
- Others — Scroll Depth Threshold, Video Status, Percent Visible, Debug Mode
- Analytics IDs — Client ID, Session ID, Session Number (added December 2025)
User-defined
| Type | Reads | Note |
|---|---|---|
| Data Layer Variable | A key from the merged model | The workhorse. Version 1 vs 2 below |
| Constant | A fixed string | IDs, so a pixel ID changes in one place |
| Lookup Table | Input variable → output by exact match | Hostname → GA4 ID per environment |
| RegEx Table | Same, by pattern | URL patterns → content group |
| Custom JavaScript | Return value of an anonymous function | Unrestricted, and fails under CSP (below) |
| JavaScript Variable | A global, e.g. window.Shopify.shop | Reads whatever’s there at evaluation time |
| 1st Party Cookie | A cookie value | |
| URL / HTTP Referrer | A URL component | Host, path, query key, fragment |
| DOM Element | An element’s text or attribute | DOM scraping. Last resort |
| Auto-Event Variable | A property of the clicked/submitted element | |
| Element Visibility | Whether an element is on screen | |
| Custom Event | The current event value | |
| Google Tag: Configuration Settings | A reusable set of config parameters | Shared by Google tags |
| Google Tag: Event Settings | A reusable set of event parameters | Shared by GA4 Event tags |
| Analytics Storage | Client/session IDs from Google’s storage | |
| User-Provided Data | Email, phone, address for enhanced conversions | Hashing behaviour per PII in Analytics |
Data Layer Variable: version 1 vs 2
PUSH dataLayer.push({ 'a.b.c': 'x' }) vs dataLayer.push({ a: { b: { c: 'x' } } })
VERSION 1 dots are part of the key name → name 'a.b.c' reads the first push
VERSION 2 dots are nesting → name 'a.b.c' reads the second push
Version 2 is the default and the one to use — it’s how ecommerce.items works. Version 1 survives for old containers that pushed dotted key names.
Custom JavaScript
function () {
// anonymous function, no name, must return — runs on EVERY evaluation that references it
var items = {{DLV – ecommerce.items}} || []; // other variables via {{ }}
return items.reduce(function (sum, i) {
return sum + (i.price * (i.quantity || 1));
}, 0);
}Evaluated each time something references it, so side effects (pushes, cookie writes) repeat unpredictably. Keep them pure. Older syntax only is safest — [CHECK: which ECMAScript 2015+ (ES2015+) syntax the Custom JavaScript variable editor currently accepts].
Tags
Google tag and GA4 Event
Since September 2023, the old “GA4 Configuration” tag is the Google tag. Sending GA4 events from GTM uses two tag types together:
Google tag loads Google's measurement library for a tag ID
tag ID: G-XXXXXXX configuration-level parameters
config: {{Google Tag: Configuration Settings}}
trigger: Initialization – All Pages
Google Analytics: GA4 Event one per event you send
Measurement ID: G-XXXXXXX ← required on every event tag
event name: purchase
params: {{Google Tag: Event Settings}} + own params ← own params win, for this event only
trigger: CE – purchase
- An event tag parameter with the same name as a Google tag parameter overrides it for that event only
- Fire the Google tag on Initialization, so it precedes any event tag on the same page
The 2026 restructure (announced August 2026, rolling out; opt-in per container) [CHECK: the direct-send, destination-tag and gtag.config items are in Google’s release notes (8 and 12 October 2026); the Settings/Advanced tab layout and the new-snippet change are not — confirm against the help centre]:
- A new Settings tab holds container-wide Google tag settings; triggers, variables, templates and folders move into a collapsible Advanced tab
- Each Google destination (GA4 property, Ads account) gets its own destination tag; event tags are unchanged
- After optimising, the container sends to Google destinations directly, instead of loading a separate gtag.js per Google tag
- New deployment snippets no longer include
gtag('config'); initialisation is controlled by an init trigger - From October 2026,
gtag('config')calls on a page appear in the data layer asgtag.configmessages — wildcard Custom Event triggers start catching them
What a GA4 event becomes once it lands is GA4.
Custom HTML
Arbitrary HyperText Markup Language (HTML) and script, injected into the page when it fires. How nearly every non-Google vendor got into GTM before templates existed.
- Full page privileges — reads forms, cookies, storage — Third-Party Scripts
- Option: Support document.write — for legacy vendor snippets that call it. Leave off otherwise
- No permission model. Anyone with Edit can write a keylogger. This is the strongest argument for templates and for restricting who publishes
Custom Image
Fires a 1×1 image request to a URL with variables interpolated. No JavaScript. Optional cache-busting parameter. The only tag type the noscript iframe can fire.
Templates
A template is a tag or variable type defined in sandboxed JavaScript, with a form-based UI and an explicit permissions manifest. The Community Template Gallery hosts vendor- and community-written ones; most major vendors now publish one.
// Template code: runs as a function body; 'data' holds the form fields
const sendPixel = require('sendPixel'); // APIs only via require — no window, no document
const encodeUriComponent = require('encodeUriComponent');
const url = 'https://px.vendor.example/collect?id=' + encodeUriComponent(data.accountId);
sendPixel(url, data.gtmOnSuccess, data.gtmOnFailure); // must call one or the tag never "completes"What the sandbox buys: each API (sendPixel, injectScript, setCookie, copyFromDataLayer…) needs a declared permission, scoped — injectScript only to listed URLs, cookie access only to named cookies. A reviewer reads the permissions tab rather than the code. Admins can restrict a container to allowlisted tag types via the on-page gtm.allowlist / gtm.blocklist keys [CHECK: current key names — formerly whitelist/blacklist].
Firing controls
- Tag firing options — Once per event (default), Once per page, Unlimited. On an SPA, “once per page” means once per full load, not per route
- Tag firing priority — a number; higher starts first on the same event. Tags load async, so priority orders starting, never finishing
- Tag sequencing — a setup tag fires before, a cleanup tag after, with options to skip the main tag if setup fails or skip cleanup if main fails. Each tag must call success/failure for sequencing to know. Gotcha: a data layer change made in a setup tag must use
.set(), not.push()— a push isn’t seen until the next event
Consent
GTM’s consent layer is per tag. The concept of Consent Mode and what it does to data lives in Consent Management; this is where the switches are.
Per tag: Advanced Settings → Consent Settings
Built-In Consent Checks the tag's own consent-aware behaviour (Google tags adjust
themselves; most third-party tags have none)
Additional Consent Checks
○ Not set default — no extra gate
○ No additional consent required reviewed; built-in is enough
○ Require additional consent for tag to fire
+ ad_storage + analytics_storage … ← all listed types must be granted
at the moment the trigger runs
Consent types: ad_storage, ad_user_data, ad_personalization, analytics_storage, plus functionality_storage, personalization_storage, security_storage, and custom types if the CMP supports them.
The sequence that has to happen, and where GTM fits:
Consent Initialization CMP template sets defaults (denied) — possibly by region
↓
Initialization Google tag loads, reads consent state → cookieless pings if denied
↓
user clicks Accept CMP calls consent update + pushes e.g. { event: 'consent_update' }
↓
Custom Event trigger tags with "Require additional consent" now pass the check and fire
- A gated tag doesn’t wait. If consent isn’t granted when the trigger runs, it doesn’t fire — and won’t retroactively when consent arrives. The CMP’s update event is what re-offers it a trigger. This is the commonest “tag never fires after accept” bug
- Consent Overview — enable in Admin → Container Settings; then a shield icon on the Tags list groups tags into Consent Configured / Not Configured with bulk edit. The fastest audit there is
- Set consent mode override — in Google tag settings, a region-level default to denied that overrides on-page code (2024)
Workflow: workspaces, preview, versions, environments
The lifecycle of a change
Latest version (v41)
│ fork
├──▶ Workspace "Checkout events" ── edits ──┐
│ ├── Preview (Tag Assistant)
└──▶ Workspace "Meta CAPI" ── edits ──┘
│
Submit → creates v42 (+ publish to an environment)
│
other workspace now "out of date" → Update → resolve conflicts → submit v43
- Workspaces fork from the latest version. When one publishes, others must update to pull the change in; edits to the same object conflict and are resolved per object, in the interface. No branching beyond that — it’s not git
- Versions are immutable. Publishing makes one Live; rolling back is publishing an older version. Every version records who and when; name and describe every one — it’s the change log for annotations. The submit page can now suggest an AI-generated name and description (September 2026)
- Default Workspace is recreated after each publish
Preview and Tag Assistant
Preview opens tagassistant.google.com, which connects to the site in a second window. That window runs the workspace version, not Live, for that browser only.
- Left: every message, in order, with
gtm.uniqueEventId - Per message: Tags (fired / not fired, and why), Variables (values at that message), Data Layer (the model after merge), Consent (state per type)
- Shareable via a link; sessions can be exported and imported
- “Tag fired” means GTM ran it, not that the vendor accepted it. Check the network request too — Instrumentation Debugging
Environments
An environment is a named pointer to a version, with its own snippet.
Live what the public snippet loads
Latest the most recently created version
Staging custom — snippet carries >m_auth=…>m_preview=env-5>m_cookies_win=x
Put the staging snippet on the staging site, publish to Staging, test, then publish the same version to Live. Without environments, “staging” means preview mode on production.
Permissions
- Account: Administrator or User
- Container: No access · Read · Edit · Approve · Publish
- Publish is the dangerous one. Edit lets someone write a Custom HTML tag; Publish lets it reach customers. Keep Publish to a few named people
Tag Manager 360 only
- Approvals — a workspace is submitted for review; someone with Approve or Publish signs it off. Lets agencies edit without publishing
- Zones — boundaries within a page (by URL or other condition) where only allowlisted tag types may fire, and which can load a different container. For a site where several teams run their own containers
- More workspaces [CHECK: whether 360 is still described as unlimited]
Server-side GTM
A server container is a different product shape with the same interface. The concept — one first-party request in, many vendor requests out — is Server-Side Tag Management; what’s GTM-specific is the middle.
browser
│ GA4 request to https://sst.example.com/g/collect?… (your subdomain)
▼
TAGGING SERVER (Cloud Run service you run, from Google's image)
│
├─ CLIENTS offered the request in priority order; first to claim it wins
│ GA4 client ✓ claims → parses into an EVENT
│ Measurement Protocol client
│ custom clients (templates)
│
├─ EVENT DATA { event_name:'purchase', value:42, currency:'GBP', client_id:… }
│
├─ TRIGGERS evaluated against event data — same idea as web
│
├─ TAGS GA4 tag → Google · Meta CAPI tag → Meta · Ads tag → Google Ads
│
└─ response to browser (can set first-party cookies)
The new object is the client. Web containers have tags, triggers, variables; server containers add clients — adapters that recognise an incoming request format and turn it into an event. Server containers ship with two: Google Analytics and Measurement Protocol. Tags and clients in a server container are built from sandboxed JavaScript.
What changes at platform level:
- You host it. Google’s setup provisions a tagging server and a separate preview server on Cloud Run (recommended), App Engine, or manually anywhere that runs the container image. Each is configured with a container config string from GTM. Google recommends a minimum of two instances in production to avoid losing data during an instance failure
- First-party domain. Map a subdomain (
sst.example.com) to the service and add it under Admin → Container Settings → Add URL. On the web side, the Google tag sends to it viaserver_container_url. That’s what makes cookies first-party and requests harder to block - Two containers, two publishes. The web container decides what is sent; the server container decides where it goes. A broken number can be in either
- Browser context is gone. No DOM, no clicks, no scroll — the server only knows what the request carried. Interaction tracking still originates in the web container
- Not the same as the Google tag gateway for advertisers (formerly “first-party mode”): that routes Google’s own tags through your domain via a CDN (content delivery network) — Cloudflare, Akamai, Fastly, CloudFront, or Google Cloud Platform (GCP) — without running a container. Proxying, not processing
Limits and quirks
- Container size limit. The interface shows a size indicator and Google advises optimising past 70%. The ceiling is widely cited as 200 KB [CHECK: hard limit not stated in Google’s docs]. Unused tags, variables and big Custom HTML blocks are what eat it
- Custom HTML vs CSP. Under a Content Security Policy (CSP) — Content Security Policy:
- Use Google’s nonce-aware snippet; GTM propagates the nonce to scripts it injects
- Custom JavaScript variables evaluate to
undefinedunless'unsafe-eval'is allowed. Silent — every tag reading one sends blanks. Google’s recommended alternative is custom templates - Preview mode needs its own allowances (
tagmanager.google.com,gstaticfonts and images)
- SPAs. No page loads after the first, so Page View, DOM Ready and Window Loaded fire once. Route changes need either History Change triggers or — better — the router pushing a Custom Event after render. Page-specific keys must be cleared on route change, or the merged model carries them into the next “page” — The Data Layer, The History API
gtm.historyChangevsgtm.historyChange-v2. The second is pushed by GA4’s Enhanced Measurement (page changes based on browser history), not by a GTM trigger. A container with both sees two messages per route change — a classic Double Counting source when a virtual pageview tag also fires- Double-firing. Usual suspects, cheapest first: the snippet installed twice (theme + plugin); the same GA4 ID loaded by GTM and by a hardcoded gtag.js; a tag on both Page View and History Change; a regex Custom Event trigger matching more than intended — now including
gtag.config. Twogtm.uniqueEventIds in Tag Assistant tell you which - Click triggers read the clicked node, often an icon inside the button.
Click Classesmatches the<svg>, not the<button>. Use “matches CSS selector” with a descendant pattern - Wait for Tags delays navigation — a slow vendor holds every outbound link up to the timeout
- Window Loaded is lossy. Tags that wait for
gtm.loadmiss everyone who leaves first, and it’s the slow-page visitors who leave — a biased sample - Unpublished means not happening. A change sits in a workspace, works perfectly in preview, and has never been live. Check the Live version number first
- Container ID now governs capability. Since July 2026, a container loaded with a
GTM-ID is unrestricted; one loaded asG-orAW-(a Google tag) is limited to Google-provided tags and variables — Google Measurement Stack - Performance. The container is one async script, but everything it loads is invisible to the preload scanner — Tag Manager Performance
- Experiments. Firing an experiment’s exposure event from GTM puts assignment tracking behind container load and consent — Experiment Assignment Tracking
Pricing model
- GTM — free. The free tier is the full product for most sites; limits are on workspaces and governance features, not volume
- Tag Manager 360 — paid, sold as part of Google Marketing Platform, typically alongside Analytics 360. Buys approvals, zones, more workspaces, service-level agreements and support. Priced by contract; figures by quote
- Server-side GTM — the container is free; the hosting is billed by the cloud provider (Google Cloud on Cloud Run, or wherever you run it), scaling with running instances and request volume, plus logging. Managed hosts (e.g. Stape) sell it by request volume [CHECK: current billing axis of third-party sGTM hosts]
Related
- Adobe’s equivalent is Tags (formerly Launch, before that Dynamic Tag Management, DTM) — rules, data elements and extensions in place of triggers, variables and templates, with a dev → staging → production library build instead of workspaces — Adobe Experience Cloud
- What to track and how to name it — Tracking Plans