[{"data":1,"prerenderedAt":442},["ShallowReactive",2],{"rule-consent-nonstandard-type":3},{"id":4,"title":5,"body":6,"breadcrumb":405,"coderail":412,"dateModified":431,"datePublished":431,"description":432,"extension":433,"meta":434,"navigation":435,"next":431,"path":436,"prev":431,"schemaType":437,"seo":438,"stem":439,"wide":440,"__hash__":441},"docs\u002Frules\u002Fconsent-nonstandard-type.md","Non-standard consent types used",{"type":7,"value":8,"toc":397},"minimark",[9,16,54,59,101,105,111,115,248,252,296,300,365,369,393],[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-nonstandard-type",[20,31,32,35],{},[13,33,34],{},"purpose"," — Detect tags using consent type strings outside the Consent Mode v2 specification",[20,37,38,41],{},[13,39,40],{},"effect"," — Non-standard types are not evaluated by GTM's consent logic; tags may fire when they should not",[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,69,70,73,74,73,77,73,80,73,83,86,87,90,91,73,94,86,97,100],{},"The rule iterates over active tags where ",[27,63,64],{},"consent === 'NEEDED'"," and checks each tag's ",[27,67,68],{},"consentTypes"," array against a fixed allowlist of six Consent Mode v2 strings: ",[27,71,72],{},"ad_storage",", ",[27,75,76],{},"ad_user_data",[27,78,79],{},"ad_personalization",[27,81,82],{},"analytics_storage",[27,84,85],{},"functionality_storage",", and ",[27,88,89],{},"security_storage",". Any value not in that set is flagged. Findings are grouped by the non-standard type name and report how many tags use each one. Paused tags are excluded. Common observed values include CMP category labels such as ",[27,92,93],{},"performance_cookies",[27,95,96],{},"targeting_cookies",[27,98,99],{},"dg-category-marketing",".",[55,102,104],{"id":103},"why-it-matters","Why it matters",[10,106,107,108,110],{},"GTM's (Google Tag Manager's) Consent Mode API evaluates only the six standard type strings. A tag requiring ",[27,109,93],{}," is not blocked or allowed by consent state — GTM has no record of that string. The tag may fire without consent, or be permanently blocked even after a user grants permission. Both outcomes break the consent model. The root cause is almost always a CMP (consent management platform) that maps its own category names directly to GTM instead of translating to the Consent Mode v2 vocabulary. Regulatory: GDPR Art. 6 (lawful basis), GDPR Art. 7 (consent).",[55,112,114],{"id":113},"example","Before \u002F after",[116,117,118,196],"compare",{},[119,120,122],"compare-col",{"label":121},"Before — flagged",[123,124,129],"pre",{"className":125,"code":126,"language":127,"meta":128,"style":128},"language-json shiki shiki-themes github-light github-dark","{\n  \"tagName\": \"Google Analytics 4\",\n  \"consent\": \"NEEDED\",\n  \"consentTypes\": [\"performance_cookies\", \"targeting_cookies\"]\n}\n","json","",[27,130,131,140,157,170,190],{"__ignoreMap":128},[132,133,136],"span",{"class":134,"line":135},"line",1,[132,137,139],{"class":138},"sVt8B","{\n",[132,141,143,147,150,154],{"class":134,"line":142},2,[132,144,146],{"class":145},"sj4cs","  \"tagName\"",[132,148,149],{"class":138},": ",[132,151,153],{"class":152},"sZZnC","\"Google Analytics 4\"",[132,155,156],{"class":138},",\n",[132,158,160,163,165,168],{"class":134,"line":159},3,[132,161,162],{"class":145},"  \"consent\"",[132,164,149],{"class":138},[132,166,167],{"class":152},"\"NEEDED\"",[132,169,156],{"class":138},[132,171,173,176,179,182,184,187],{"class":134,"line":172},4,[132,174,175],{"class":145},"  \"consentTypes\"",[132,177,178],{"class":138},": [",[132,180,181],{"class":152},"\"performance_cookies\"",[132,183,73],{"class":138},[132,185,186],{"class":152},"\"targeting_cookies\"",[132,188,189],{"class":138},"]\n",[132,191,193],{"class":134,"line":192},5,[132,194,195],{"class":138},"}\n",[119,197,199],{"label":198},"After — fixed",[123,200,202],{"className":125,"code":201,"language":127,"meta":128,"style":128},"{\n  \"tagName\": \"Google Analytics 4\",\n  \"consent\": \"NEEDED\",\n  \"consentTypes\": [\"analytics_storage\", \"ad_storage\"]\n}\n",[27,203,204,208,218,228,244],{"__ignoreMap":128},[132,205,206],{"class":134,"line":135},[132,207,139],{"class":138},[132,209,210,212,214,216],{"class":134,"line":142},[132,211,146],{"class":145},[132,213,149],{"class":138},[132,215,153],{"class":152},[132,217,156],{"class":138},[132,219,220,222,224,226],{"class":134,"line":159},[132,221,162],{"class":145},[132,223,149],{"class":138},[132,225,167],{"class":152},[132,227,156],{"class":138},[132,229,230,232,234,237,239,242],{"class":134,"line":172},[132,231,175],{"class":145},[132,233,178],{"class":138},[132,235,236],{"class":152},"\"analytics_storage\"",[132,238,73],{"class":138},[132,240,241],{"class":152},"\"ad_storage\"",[132,243,189],{"class":138},[132,245,246],{"class":134,"line":192},[132,247,195],{"class":138},[55,249,251],{"id":250},"remediation","Remediation",[253,254,255,258,287,290,293],"ol",{},[20,256,257],{},"Open the finding and note each non-standard consent type and which tags use it.",[20,259,260,261],{},"Map each non-standard type to its Consent Mode v2 equivalent:\n",[17,262,263,270,280],{},[20,264,265,267,268],{},[27,266,93],{}," → ",[27,269,82],{},[20,271,272,274,275,267,278],{},[27,273,96],{}," \u002F ",[27,276,277],{},"marketing_cookies",[27,279,72],{},[20,281,282,267,285],{},[27,283,284],{},"functional_cookies",[27,286,85],{},[20,288,289],{},"Update the consent type on each affected tag in GTM to use the standard name.",[20,291,292],{},"Check whether the CMP integration offers a native Consent Mode v2 mode that outputs standard type names — enable it if available.",[20,294,295],{},"Test in GTM Preview with the CMP in each consent state to confirm tag behavior matches the granted permissions.",[55,297,299],{"id":298},"metadata","Metadata",[301,302,305,306,311,305,315,319,305,322,326,305,329,332,305,335,339,305,342,346,305,352,355,305,358,362],"dl",{"className":303},[304],"spec-list","\n  ",[307,308,310],"dt",{"id":309},"severity","Severity",[312,313,314],"dd",{},"medium",[307,316,318],{"id":317},"tier","Tier",[312,320,321],{},"optimization",[307,323,325],{"id":324},"category","Category",[312,327,328],{},"consent",[307,330,331],{"id":46},"Layer",[312,333,334],{},"container",[307,336,338],{"id":337},"version","Version",[312,340,341],{},"1",[307,343,345],{"id":344},"effort","Effort",[312,347,348,351],{},[27,349,350],{},"15min"," (about 15 minutes)",[307,353,354],{"id":52},"Reversibility",[312,356,357],{},"non-destructive",[307,359,361],{"id":360},"regulatory","Regulatory",[312,363,364],{},"GDPR Art. 6 (lawful basis), GDPR Art. 7 (consent)",[55,366,368],{"id":367},"see-also","See also",[17,370,371,379,386],{},[20,372,373,378],{},[374,375,377],"a",{"href":376},"\u002Fcategories\u002Fconsent\u002F","Consent rules"," — other rules in this category",[20,380,381,385],{},[374,382,384],{"href":383},"\u002Fhealth-score\u002F","Health score"," — how this rule contributes to the score",[20,387,388,392],{},[374,389,391],{"href":390},"\u002Frules\u002F","Rules catalog"," — browse all rules",[394,395,396],"style",{},"html pre.shiki code .sVt8B, html code.shiki .sVt8B{--shiki-default:#24292E;--shiki-dark:#E1E4E8}html pre.shiki code .sj4cs, html code.shiki .sj4cs{--shiki-default:#005CC5;--shiki-dark:#79B8FF}html pre.shiki code .sZZnC, html code.shiki .sZZnC{--shiki-default:#032F62;--shiki-dark:#9ECBFF}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}",{"title":128,"searchDepth":142,"depth":142,"links":398},[399,400,401,402,403,404],{"id":57,"depth":142,"text":58},{"id":103,"depth":142,"text":104},{"id":113,"depth":142,"text":114},{"id":250,"depth":142,"text":251},{"id":298,"depth":142,"text":299},{"id":367,"depth":142,"text":368},[406,409,411],{"label":407,"href":408},"API Reference","\u002F",{"label":410,"href":390},"Rules",{"label":29},{"cards":413,"onpage":425},[414],{"title":415,"tabs":416},"Evaluate",[417,421],{"label":418,"language":419,"code":420},"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-nonstandard-type\",\"url\":\"https:\u002F\u002Fexample.com\"}'\n",{"label":422,"language":423,"code":424},"MCP","text","User: Run consent-nonstandard-type on https:\u002F\u002Fexample.com\n\n# Tool call\n{\n  \"tool\": \"evaluate_rule\",\n  \"arguments\": {\n    \"rule_id\": \"consent-nonstandard-type\",\n    \"url\": \"https:\u002F\u002Fexample.com\"\n  }\n}\n",[426,427,428,429,430],{"id":57,"label":58},{"id":103,"label":104},{"id":113,"label":114},{"id":250,"label":251},{"id":298,"label":299},null,"Tags use consent types not in the Consent Mode v2 specification (ad_storage, analytics_storage, etc.).","md",{},true,"\u002Frules\u002Fconsent-nonstandard-type","TechArticle",{"title":5,"description":432},"rules\u002Fconsent-nonstandard-type",false,"o_sNIj7JY_YMEeyTHbXqOI8aZKogmU9wGJ3IeQB6vYc",1796069483358]