Technical Playbook · GTM QA
GTM Container Audit & Structural Hygiene Checklist
A repeatable static review checklist for Google Tag Manager JSON exports before publishing a workspace version or inheriting a legacy client container.
Coverage in Tag Audit Studio
1. Structural integrity and dead-weight inventory
Legacy containers accumulate orphan triggers, unreferenced variables, and tags without firing paths. Reviewing the exported JSON deterministically surfaces structural debt before it slows down workspace reviews.
- Identify tags without firing triggers and verify whether they rely on setupTag or teardownTag sequencing (TAS-STR-001).
- Flag unused triggers that are not referenced in firingTriggerId, blockingTriggerId, or typed triggerReference parameters (TAS-STR-002).
- Detect broken {{variable}} tokens across tags, triggers, and user variables against enabled built-in variables (TAS-STR-003).
- Check for direct or transitive cycles in user-defined variables (TAS-STR-005) and tag sequencing chains (TAS-STR-008).
2. Configuration contracts and contradictory triggers
Manual edits or partial migrations can leave invalid enum literals, malformed parameter types, or contradictory firing and blocking rules.
- Verify that tagFiringOption uses a documented GTM enum value such as oncePerEvent, oncePerLoad, or unlimited (TAS-CFG-001).
- Ensure no tag lists the same trigger ID in both firingTriggerId and blockingTriggerId, where blocking precedence suppresses execution (TAS-CFG-006).
- Validate boolean, integer, list, and map parameter shapes as well as trigger filter operators and arg0 operands (TAS-CFG-007, TAS-CFG-008).
3. Assisted copy-only remediation and baseline comparison
When an unambiguous structural fix is available—such as removing an unused trigger, choosing a documented firing option, or resolving a firing/blocking conflict—apply it on a deep copy and reanalyze before importing into GTM.
- Preview the exact field diff on a copy of the container JSON without mutating the original export.
- Verify that the proposed change does not introduce new structural findings (for example, removing a tag's only firing trigger).
- Save before and after audit snapshots to compare score deltas and resolved findings by stable entity identity.
FAQ
Technical FAQ
Which structural issues does the GTM checklist catch automatically?+
It checks 20 deterministic rules covering tags without firing triggers (TAS-STR-001), unused triggers (TAS-STR-002), broken {{variable}} references (TAS-STR-003), variable/sequencing cycles (TAS-STR-005, TAS-STR-008), firing/blocking conflicts (TAS-CFG-006), and duplicate tags or triggers.
Does the container JSON leave my browser during the audit?+
No. Parsing and rule evaluation run locally inside a browser Web Worker. In local mode, the raw JSON never leaves your machine.
Can I fix findings directly inside Tag Audit Studio?+
For unambiguous structural fixes—such as removing an unused trigger, setting tagFiringOption, or resolving a firing/blocking conflict—you can preview a diff on an in-memory copy, reanalyze it, download the patched JSON, and verify it in GTM Preview.
What static JSON analysis does and does not prove
Tag Audit Studio evaluates the exported container structure locally in a browser Worker without executing Custom HTML or network calls. Always verify live dataLayer pushes, DOM selectors, and network payloads in GTM Preview / Tag Assistant before publishing.