CMP detected but consent mode not wired
A CMP is installed but 80%+ of tags have no consent configuration, making the CMP effectively decorative.
Summary
- rule_id —
consent-cmp-not-wired - purpose — Detect containers where a CMP is present but tags are not configured to respect consent signals
- effect — Tags fire unconditionally regardless of the user's consent choice
- layer — container
- reversibility — non-destructive
What fires this
The rule calls detectCMP() first. If no CMP is found, it exits immediately. When a CMP is detected, the rule counts all active (non-paused) tags and calculates the percentage where t.consent === 'NOT_SET'. If that percentage exceeds 80%, the rule fires. The 80% threshold separates "almost entirely unwired" containers from partial-coverage gaps handled by consent-partial-coverage. The CMP tag itself is included in the NOT_SET count — if the CMP tag is also NOT_SET, the container is genuinely unwired end-to-end.
Why it matters
Installing a CMP and wiring it to GTM's Consent Mode are two separate steps. The CMP surfaces a consent banner and records the user's choices. GTM's per-tag consent configuration controls whether each tag actually honors those choices. A CMP without consent wiring shows a compliant-looking banner but lets all tags fire regardless — a pattern known as "consent theater." Tags with NOT_SET bypass consent checks entirely. This is a critical gap under GDPR Art. 6 (lawful basis) and Art. 7 (consent), because data collection continues without a valid legal basis for visitors who decline.
Before / after
Tags have consent set to NOT_SET. The CMP banner fires, the user declines, but ad and analytics tags fire anyway because GTM has no consent instructions to enforce.
Ad/conversion tags have Additional Consent Status set to NEEDED with type ad_storage. Analytics tags require analytics_storage. GTM blocks both tag types until the CMP issues a matching gtag('consent', 'update', {...}) grant.
Remediation
- Confirm the CMP calls
gtag('consent', 'update', {...})with the user's choices on both accept and decline. - Categorize every active tag: ad/conversion tags require
ad_storage; analytics tags requireanalytics_storage; personalization tags requirepersonalization_storage. - Open each tag's consent settings and set Additional Consent Status to
NEEDEDwith the appropriate consent type. - For native Google tags (GA4, Google Ads), verify Built-In Consent is enabled — explicit Additional consent wiring is still preferred for auditability.
- Test in GTM Preview with the CMP set to "deny all" and confirm consent-gated tags do not fire.
- Test with "accept all" and confirm tags fire as expected.
Metadata
- Severity
- critical
- Tier
- warning
- Category
- consent
- Layer
- container
- Version
- 1
- Effort
2wk(about 2 weeks)- Reversibility
- non-destructive
- Regulatory
- GDPR Art. 6 (lawful basis), GDPR Art. 7 (consent)
See also
- Consent rules — other rules in this category
- Health score — how this rule contributes to the score
- Rules catalog — browse all rules
Examples
curl https://developer.tagmanifest.com/v1/evaluate-rule \
-H "Authorization: Bearer $TM_API_KEY" \
-H "Content-Type: application/json" \
-d '{"rule_id":"consent-cmp-not-wired","url":"https://example.com"}'
User: Run consent-cmp-not-wired on https://example.com
# Tool call
{
"tool": "evaluate_rule",
"arguments": {
"rule_id": "consent-cmp-not-wired",
"url": "https://example.com"
}
}