Privacy & Governance · GTM QA
Google Consent Mode v2 & Custom HTML Audit Guide in GTM
How to inspect exported Google Tag Manager containers for structural consent-setting gaps, malformed consent parameters, and high-attention Custom HTML tags without uploading client files.
Coverage in Tag Audit Studio
1. Auditing exported consentSettings structures
In a GTM container JSON export, each tag can declare consentSettings with a consentStatus and, when needed, a consentType list of template values.
- Validate that literal consentStatus values match GTM's documented notSet, notNeeded, or needed enum (TAS-CFG-005).
- When consentStatus is needed, confirm that consentType is a valid list of template entries rather than a malformed scalar (TAS-CFG-004).
- Distinguish built-in consent checks from additional consent settings required by specific third-party templates.
2. Reviewing Custom HTML and third-party scripts safely
Custom HTML tags (html) can inject arbitrary scripts, pixels, or cookies outside standard GTM template boundaries. Static inspection lets you inventory these tags without executing their code.
- List every Custom HTML tag along with its firing triggers, exception triggers, and referenced variables.
- Check whether Custom HTML tags fire on broad All Pages triggers without blocking exceptions or explicit consent checks.
- Keep the raw container JSON inside the browser Worker so proprietary scripts and vendor IDs stay under local control.
3. Connecting static structure to runtime verification
Structural consent signals in JSON are necessary preparation, but runtime compliance depends on when the CMP fires default and update commands on the live site.
- Use the static audit to build a prioritized review list of tags and triggers before opening Tag Assistant.
- Confirm in browser devtools that Consent Mode default states run prior to any measurement or advertising tag.
- Document reviewed exceptions in your workspace report before handing off to privacy or legal stakeholders.
FAQ
Technical FAQ
What Consent Mode v2 signals can be verified from a GTM JSON export?+
The engine validates consentSettings declarations on tags, checking that consentStatus uses documented values (notSet, notNeeded, needed) via TAS-CFG-005 and that consentType uses a valid list structure via TAS-CFG-004.
Does Tag Audit Studio execute Custom HTML tags to see what pixels they fire?+
No. Custom HTML tags are counted and surfaced in the coverage summary as 'not evaluated' for script body execution. You should inspect their firing triggers, exceptions, and runtime behavior in GTM Preview.
Does passing consent rules prove GDPR or legal compliance?+
No. Static JSON checks verify container structure only. Live CMP timing, consent defaults/updates, and regional legal basis must be tested on the published site.
Technical review signal, not legal certification
Inspecting a GTM JSON export identifies structural configuration anomalies and missing tag-level consent declarations. It does not validate CMP banner behavior, regional legal basis, or live cookie storage.