[{"data":1,"prerenderedAt":373},["ShallowReactive",2],{"rule-consent-no-cmp":3},{"id":4,"title":5,"body":6,"breadcrumb":337,"coderail":344,"dateModified":362,"datePublished":362,"description":363,"extension":364,"meta":365,"navigation":366,"next":362,"path":367,"prev":362,"schemaType":368,"seo":369,"stem":370,"wide":371,"__hash__":372},"docs\u002Frules\u002Fconsent-no-cmp.md","No CMP detected",{"type":7,"value":8,"toc":328},"minimark",[9,16,54,59,124,128,143,147,173,177,231,235,300,304],[10,11,12],"p",{},[13,14,15],"strong",{},"Summary",[17,18,19,30,36,42,48],"ul",{},[20,21,22,25,26],"li",{},[13,23,24],{},"rule_id"," — ",[27,28,29],"code",{},"consent-no-cmp",[20,31,32,35],{},[13,33,34],{},"purpose"," — Detect containers where consent-required or unconfigured ad tags exist but no CMP is present inside GTM",[20,37,38,41],{},[13,39,40],{},"effect"," — Ad and analytics tags may fire without any consent signal in regulated jurisdictions",[20,43,44,47],{},[13,45,46],{},"layer"," — container",[20,49,50,53],{},[13,51,52],{},"reversibility"," — non-destructive",[55,56,58],"h2",{"id":57},"what-fires-this","What fires this",[10,60,61,62,65,66,73,74,77,78,73,84,87,88,91,92,91,95,91,98,91,101,91,104,91,107,91,110,91,113,91,116,119,120,123],{},"The rule calls ",[27,63,64],{},"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. ",[13,67,68,69,72],{},"Path 1 — ",[27,70,71],{},"consent-needed-no-cmp",":"," active tags where ",[27,75,76],{},"t.consent === 'NEEDED'"," exist but nothing inside GTM can grant that consent. ",[13,79,80,81,72],{},"Path 2 — ",[27,82,83],{},"unconfigured-ad-tags-no-cmp",[27,85,86],{},"t.consent === 'NOT_SET'"," match known ad tag types (",[27,89,90],{},"awct",", ",[27,93,94],{},"sp",[27,96,97],{},"flc",[27,99,100],{},"fls",[27,102,103],{},"pntr",[27,105,106],{},"crto",[27,108,109],{},"hjtc",[27,111,112],{},"qpx",[27,114,115],{},"bzi",[27,117,118],{},"baut",") or the tag name matches an ad-keyword pattern (Google Ads, LinkedIn, Meta Pixel, Clarity, and others). Each path produces a distinct ",[27,121,122],{},"subType"," property used during page-scan-merge reclassification. Paused tags are excluded from both checks.",[55,125,127],{"id":126},"why-it-matters","Why it matters",[10,129,130,131,134,135,138,139,142],{},"GTM is not the only place to deploy a CMP. OneTrust, Cookiebot, and similar platforms are often loaded via inline ",[27,132,133],{},"\u003Cscript>"," in the page ",[27,136,137],{},"\u003Chead>"," 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 ",[27,140,141],{},"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).",[55,144,146],{"id":145},"example","Before \u002F after",[148,149,150,164],"compare",{},[151,152,154],"compare-col",{"label":153},"Before — flagged",[155,156,162],"pre",{"className":157,"code":159,"language":160,"meta":161},[158],"language-text","Container has 4 tags with consent = NEEDED (e.g. \"GA4 - Page View\",\n\"LinkedIn Insight Tag\") and 3 ad tags with consent = NOT_SET\n(e.g. \"Google Ads Conversion\", \"Meta Pixel - Purchase\").\nNo CMP tag found inside GTM.\nResult: two findings raised — consent-needed-no-cmp + unconfigured-ad-tags-no-cmp.\n","text","",[27,163,159],{"__ignoreMap":161},[151,165,167],{"label":166},"After — resolved",[155,168,171],{"className":169,"code":170,"language":160,"meta":161},[158],"Option A (external CMP): OneTrust script in page \u003Chead> fires\ngtag('consent', 'default', {...}) before GTM loads.\nPage scan detects the CMP; both findings are softened on merge.\n\nOption B (GTM CMP): CookieBot Community tag added to container,\nfiring on Consent Initialization. detectCMP() returns true;\nrule exits immediately with no issues.\n",[27,172,170],{"__ignoreMap":161},[55,174,176],{"id":175},"remediation","Remediation",[178,179,180,196,207,210,217,224],"ol",{},[20,181,182,183,185,186,91,189,91,192,195],{},"Check the page source for CMP initialization scripts in ",[27,184,137],{}," before the GTM snippet. Look for ",[27,187,188],{},"otBannerSdk",[27,190,191],{},"CookieConsent",[27,193,194],{},"Cookiebot",", or similar identifiers.",[20,197,198,199,202,203,206],{},"If a page-level CMP exists, verify it calls ",[27,200,201],{},"gtag('consent', 'default', {...})"," and ",[27,204,205],{},"gtag('consent', 'update', {...})"," with the visitor's choices. No GTM changes are needed.",[20,208,209],{},"If no CMP exists anywhere, determine whether your site serves visitors in GDPR or CCPA jurisdictions.",[20,211,212,213,216],{},"If compliance is required, select a CMP (OneTrust, CookieBot, Usercentrics) and deploy it to fire on Consent Initialization with an appropriate ",[27,214,215],{},"waitForUpdate"," value.",[20,218,219,220,223],{},"For path 1 tags (",[27,221,222],{},"consent = NEEDED","): confirm each tag fires only after the CMP grants the required consent type.",[20,225,226,227,230],{},"For path 2 tags (",[27,228,229],{},"consent = NOT_SET","): set the consent type on each ad\u002Ftracking tag in GTM and test with deny and accept scenarios.",[55,232,234],{"id":233},"metadata","Metadata",[236,237,240,241,246,240,250,254,240,257,261,240,264,267,240,270,274,240,277,281,240,287,290,240,293,297],"dl",{"className":238},[239],"spec-list","\n  ",[242,243,245],"dt",{"id":244},"severity","Severity",[247,248,249],"dd",{},"high",[242,251,253],{"id":252},"tier","Tier",[247,255,256],{},"warning",[242,258,260],{"id":259},"category","Category",[247,262,263],{},"consent",[242,265,266],{"id":46},"Layer",[247,268,269],{},"container",[242,271,273],{"id":272},"version","Version",[247,275,276],{},"1",[242,278,280],{"id":279},"effort","Effort",[247,282,283,286],{},[27,284,285],{},"strategic"," (no fixed time; needs a plan)",[242,288,289],{"id":52},"Reversibility",[247,291,292],{},"non-destructive",[242,294,296],{"id":295},"regulatory","Regulatory",[247,298,299],{},"GDPR Art. 6 (lawful basis), GDPR Art. 7 (consent)",[55,301,303],{"id":302},"see-also","See also",[17,305,306,314,321],{},[20,307,308,313],{},[309,310,312],"a",{"href":311},"\u002Fcategories\u002Fconsent\u002F","Consent rules"," — other rules in this category",[20,315,316,320],{},[309,317,319],{"href":318},"\u002Fhealth-score\u002F","Health score"," — how this rule contributes to the score",[20,322,323,327],{},[309,324,326],{"href":325},"\u002Frules\u002F","Rules catalog"," — browse all rules",{"title":161,"searchDepth":329,"depth":329,"links":330},2,[331,332,333,334,335,336],{"id":57,"depth":329,"text":58},{"id":126,"depth":329,"text":127},{"id":145,"depth":329,"text":146},{"id":175,"depth":329,"text":176},{"id":233,"depth":329,"text":234},{"id":302,"depth":329,"text":303},[338,341,343],{"label":339,"href":340},"API Reference","\u002F",{"label":342,"href":325},"Rules",{"label":29},{"cards":345,"onpage":356},[346],{"title":347,"tabs":348},"Evaluate",[349,353],{"label":350,"language":351,"code":352},"cURL","bash","curl https:\u002F\u002Fdeveloper.tagmanifest.com\u002Fv1\u002Fevaluate-rule \\\n  -H \"Authorization: Bearer $TM_API_KEY\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\"rule_id\":\"consent-no-cmp\",\"url\":\"https:\u002F\u002Fexample.com\"}'\n",{"label":354,"language":160,"code":355},"MCP","User: Run consent-no-cmp on https:\u002F\u002Fexample.com\n\n# Tool call\n{\n  \"tool\": \"evaluate_rule\",\n  \"arguments\": {\n    \"rule_id\": \"consent-no-cmp\",\n    \"url\": \"https:\u002F\u002Fexample.com\"\n  }\n}\n",[357,358,359,360,361],{"id":57,"label":58},{"id":126,"label":127},{"id":145,"label":146},{"id":175,"label":176},{"id":233,"label":234},null,"Tags require consent but no Consent Management Platform is detected in the container.","md",{},true,"\u002Frules\u002Fconsent-no-cmp","TechArticle",{"title":5,"description":363},"rules\u002Fconsent-no-cmp",false,"IqRD2LF12lnG9_GIateYd9Po_irY-mqTMEJxyeuwAzg",1796069483351]