What is in your Tag Manager container?
Drop the JSON file that Google Tag Manager exports (Admin, Export Container). You see every tag with its triggers, whether it is paused and its consent setting, and what to clean up: triggers and variables nothing uses, tags with no consent setting, duplicate GA4 and Google Ads IDs, and Universal Analytics tags. The file is read in your browser and never uploaded.
What it checks
- Reads the export file as data. Tag Manager exports a container version or a workspace as JSON (Google's help). The page reads it with a JSON parser only. Custom HTML and custom JavaScript are read as text and never run.
- Every tag, with its type, the triggers that fire it and block it, whether it is paused, and its consent setting: not set, no additional consent required, or the consent types it needs. These are the fields of a tag in the Tag Manager API reference. A tag with no firing trigger is marked, unless another tag runs it as a setup or cleanup tag.
- Triggers no tag uses. A trigger counts as used when a tag fires or blocks on it, a trigger group lists it, or a variable or zone names it.
- Variables nothing references. Tag Manager writes a variable as {{name}} (Google's help). A variable counts as used when its {{name}} appears anywhere in a tag, trigger, other variable, zone, client or Google tag setting.
- Tags with no consent requirement set. Google's consent help says "Not set" is the default and means no additional consent checks. Google tags with built-in consent checks are marked apart; Google names consent mode for Google Ads, Google Analytics and Floodlight.
- Duplicate GA4 and Google Ads IDs. The same G-, GT- or AW- ID loaded by more than one Google tag or gtag snippet, or the same Google Ads conversion ID and label in more than one conversion tag. Paused tags are left out, and an ID kept in a Constant variable is followed to its value.
- Universal Analytics. Universal Analytics tags, Google Analytics Settings variables and UA- IDs anywhere in the container. Google says standard properties stopped processing hits on 1 July 2023, and the last 360 properties on 1 July 2024 (Analytics Help).
What it cannot see
Your live site. It reads the file, not your pages, so it cannot tell whether a tag really fires. Tag Manager's Preview mode shows that. To see which tags a page loads, use the tracking tag checker.
What Google does not document. Google's help does not describe the export file's structure. The parts inside it follow the API reference, and the rest is our reading, done conservatively: the wrapper around the container (exportFormatVersion, containerVersion), values written in capitals (NOT_SET as well as notSet), the IDs of the built-in triggers (2147479553 is All Pages), the type codes googtag and ua, the parameter names that hold GA4, Universal Analytics and Google Ads IDs, and the names of custom template tags.
Chains of unused items. A variable used only by another unused variable counts as used, and so does a trigger used only by an unused trigger group. Code inside custom templates is not read. Check in Preview before you delete anything.
Whether a tag needs consent. That depends on your consent banner, on what the tag collects and on the law that applies to you. The list shows where no consent setting is made, not what the right setting is.
Questions
How do I export my container?
In Tag Manager, open Admin, and in the Container section click Export Container. Choose the published version or a workspace, then download the file. Google's help on container export and import has the steps.
Why are my Google tags in the list of tags with no consent setting?
Because their additional consent setting is "Not set", which is the default. Google tags that support consent mode change their behaviour with the consent state on their own, so for them "Not set" means no extra check, not no consent handling. Custom HTML and other vendors' tags have no such built-in checks.
Is a duplicate ID always a mistake?
No. Two Google tags with the same ID can fire on different pages, for example one for the shop and one for the blog. It is a mistake when both fire on the same page, because page views or conversions can then be counted twice. Check their triggers in the table.
Is my container uploaded anywhere?
No. The file is opened and read by your browser, on your computer. The page sends nothing to a server.