No CMP detected
Tags require consent but no Consent Management Platform is detected in the container.
Summary
- rule_id —
consent-no-cmp - purpose — Detect containers where consent-required or unconfigured ad tags exist but no CMP is present inside GTM
- effect — Ad and analytics tags may fire without any consent signal in regulated jurisdictions
- layer — container
- reversibility — non-destructive
What fires this
The rule calls detectCMP() against the container data. If a CMP tag is found, the rule exits and returns no issues. When no CMP is detected, it evaluates two independent conditions and raises a separate finding for each. Path 1 — consent-needed-no-cmp: active tags where t.consent === 'NEEDED' exist but nothing inside GTM can grant that consent. Path 2 — unconfigured-ad-tags-no-cmp: active tags where t.consent === 'NOT_SET' match known ad tag types (awct, sp, flc, fls, pntr, crto, hjtc, qpx, bzi, baut) or the tag name matches an ad-keyword pattern (Google Ads, LinkedIn, Meta Pixel, Clarity, and others). Each path produces a distinct subType property used during page-scan-merge reclassification. Paused tags are excluded from both checks.
Why it matters
GTM is not the only place to deploy a CMP. OneTrust, Cookiebot, and similar platforms are often loaded via inline <script> in the page <head> before the GTM snippet runs. In those cases the container correctly has no CMP tag — consent is enforced at the page layer. When no consent infrastructure exists anywhere, ad and tracking tags fire on every page load with no consent signal. Path 2 carries higher risk: ad pixels with NOT_SET consent are actively unconfigured, not merely unconfirmed. Verify the page source before treating this finding as a definitive gap. Regulatory: GDPR Art. 6 (lawful basis), GDPR Art. 7 (consent).
Before / after
Container has 4 tags with consent = NEEDED (e.g. "GA4 - Page View",
"LinkedIn Insight Tag") and 3 ad tags with consent = NOT_SET
(e.g. "Google Ads Conversion", "Meta Pixel - Purchase").
No CMP tag found inside GTM.
Result: two findings raised — consent-needed-no-cmp + unconfigured-ad-tags-no-cmp.
Option A (external CMP): OneTrust script in page <head> fires
gtag('consent', 'default', {...}) before GTM loads.
Page scan detects the CMP; both findings are softened on merge.
Option B (GTM CMP): CookieBot Community tag added to container,
firing on Consent Initialization. detectCMP() returns true;
rule exits immediately with no issues.
Remediation
- Check the page source for CMP initialization scripts in
<head>before the GTM snippet. Look forotBannerSdk,CookieConsent,Cookiebot, or similar identifiers. - If a page-level CMP exists, verify it calls
gtag('consent', 'default', {...})andgtag('consent', 'update', {...})with the visitor's choices. No GTM changes are needed. - If no CMP exists anywhere, determine whether your site serves visitors in GDPR or CCPA jurisdictions.
- If compliance is required, select a CMP (OneTrust, CookieBot, Usercentrics) and deploy it to fire on Consent Initialization with an appropriate
waitForUpdatevalue. - For path 1 tags (
consent = NEEDED): confirm each tag fires only after the CMP grants the required consent type. - For path 2 tags (
consent = NOT_SET): set the consent type on each ad/tracking tag in GTM and test with deny and accept scenarios.
Metadata
- Severity
- high
- Tier
- warning
- Category
- consent
- Layer
- container
- Version
- 1
- Effort
strategic(no fixed time; needs a plan)- 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-no-cmp","url":"https://example.com"}'
User: Run consent-no-cmp on https://example.com
# Tool call
{
"tool": "evaluate_rule",
"arguments": {
"rule_id": "consent-no-cmp",
"url": "https://example.com"
}
}