[{"data":1,"prerenderedAt":435},["ShallowReactive",2],{"rule-consent-missing-ad-user-data":3},{"id":4,"title":5,"body":6,"breadcrumb":398,"coderail":405,"dateModified":424,"datePublished":424,"description":425,"extension":426,"meta":427,"navigation":428,"next":424,"path":429,"prev":424,"schemaType":430,"seo":431,"stem":432,"wide":433,"__hash__":434},"docs\u002Frules\u002Fconsent-missing-ad-user-data.md","Ad tags missing ad_user_data consent",{"type":7,"value":8,"toc":390},"minimark",[9,16,65,70,111,115,133,137,246,250,289,293,358,362,386],[10,11,12],"p",{},[13,14,15],"strong",{},"Summary",[17,18,19,30,44,53,59],"ul",{},[20,21,22,25,26],"li",{},[13,23,24],{},"rule_id"," — ",[27,28,29],"code",{},"consent-missing-ad-user-data",[20,31,32,35,36,39,40,43],{},[13,33,34],{},"purpose"," — Detect ad tags that declare ",[27,37,38],{},"ad_storage"," consent but omit the DMA-required ",[27,41,42],{},"ad_user_data"," type",[20,45,46,49,50,52],{},[13,47,48],{},"effect"," — EEA conversion tracking may silently fail without ",[27,51,42],{}," consent",[20,54,55,58],{},[13,56,57],{},"layer"," — container",[20,60,61,64],{},[13,62,63],{},"reversibility"," — non-destructive",[66,67,69],"h2",{"id":68},"what-fires-this","What fires this",[10,71,72,73,76,77,80,81,80,84,80,87,80,90,80,93,96,97,100,101,104,105,107,108,110],{},"The rule filters active tags where ",[27,74,75],{},"consent === 'NEEDED'",", then excludes analytics-only types (",[27,78,79],{},"ua",", ",[27,82,83],{},"ga",[27,85,86],{},"gas",[27,88,89],{},"gaawc",[27,91,92],{},"gaawe",[27,94,95],{},"googtag",") because the DMA requirement targets advertising tags, not analytics. It also excludes any tag where ",[27,98,99],{},"hasBuiltInCoverage(t, 'ad_user_data')"," returns true — native Google Ads Conversion and Remarketing tags carry Built-In coverage and are never flagged. For remaining tags, the rule checks ",[27,102,103],{},"t.consentTypes",": if the array contains ",[27,106,38],{}," but not ",[27,109,42],{},", the tag is flagged. Paused tags are excluded.",[66,112,114],{"id":113},"why-it-matters","Why it matters",[10,116,117,118,120,121,123,124,126,127,129,130,132],{},"The EU Digital Markets Act (DMA), effective March 2024, requires explicit ",[27,119,42],{}," consent before sending user identifiers to Google advertising services in the European Economic Area. Without it, enhanced conversions and customer match features stop working for EEA users — even when those users granted ",[27,122,38],{},". The two signals are distinct: ",[27,125,38],{}," covers cookie access, while ",[27,128,42],{}," covers permission to use hashed identifiers for attribution. A container configured before March 2024 almost certainly lacks ",[27,131,42],{},". Regulatory: GDPR Art. 6 (lawful basis), GDPR Art. 7 (consent), EU Digital Markets Act.",[66,134,136],{"id":135},"example","Before \u002F after",[138,139,140,203],"compare",{},[141,142,144],"compare-col",{"label":143},"Before — flagged",[145,146,151],"pre",{"className":147,"code":148,"language":149,"meta":150,"style":150},"language-json shiki shiki-themes github-light github-dark","\"consentSettings\": {\n  \"consentStatus\": \"NEEDED\",\n  \"consentType\": [\"ad_storage\"]\n}\n","json","",[27,152,153,166,182,197],{"__ignoreMap":150},[154,155,158,162],"span",{"class":156,"line":157},"line",1,[154,159,161],{"class":160},"sZZnC","\"consentSettings\"",[154,163,165],{"class":164},"sVt8B",": {\n",[154,167,169,173,176,179],{"class":156,"line":168},2,[154,170,172],{"class":171},"sj4cs","  \"consentStatus\"",[154,174,175],{"class":164},": ",[154,177,178],{"class":160},"\"NEEDED\"",[154,180,181],{"class":164},",\n",[154,183,185,188,191,194],{"class":156,"line":184},3,[154,186,187],{"class":171},"  \"consentType\"",[154,189,190],{"class":164},": [",[154,192,193],{"class":160},"\"ad_storage\"",[154,195,196],{"class":164},"]\n",[154,198,200],{"class":156,"line":199},4,[154,201,202],{"class":164},"}\n",[141,204,206],{"label":205},"After — fixed",[145,207,209],{"className":147,"code":208,"language":149,"meta":150,"style":150},"\"consentSettings\": {\n  \"consentStatus\": \"NEEDED\",\n  \"consentType\": [\"ad_storage\", \"ad_user_data\"]\n}\n",[27,210,211,217,227,242],{"__ignoreMap":150},[154,212,213,215],{"class":156,"line":157},[154,214,161],{"class":160},[154,216,165],{"class":164},[154,218,219,221,223,225],{"class":156,"line":168},[154,220,172],{"class":171},[154,222,175],{"class":164},[154,224,178],{"class":160},[154,226,181],{"class":164},[154,228,229,231,233,235,237,240],{"class":156,"line":184},[154,230,187],{"class":171},[154,232,190],{"class":164},[154,234,193],{"class":160},[154,236,80],{"class":164},[154,238,239],{"class":160},"\"ad_user_data\"",[154,241,196],{"class":164},[154,243,244],{"class":156,"line":199},[154,245,202],{"class":164},[66,247,249],{"id":248},"remediation","Remediation",[251,252,253,256,259,268,274,280],"ol",{},[20,254,255],{},"Open each flagged tag in GTM and navigate to its Advanced Settings → Consent settings.",[20,257,258],{},"Confirm the tag sends user data to a Google advertising service (not analytics only).",[20,260,261,262,264,265,267],{},"Add ",[27,263,42],{}," to the consent type list alongside ",[27,266,38],{},".",[20,269,270,271,273],{},"Verify your consent management platform (CMP) surfaces ",[27,272,42],{}," as a distinct consent signal via the Consent Mode API.",[20,275,276,277,279],{},"If your CMP does not support ",[27,278,42],{}," as a separate category, contact your CMP vendor to add it.",[20,281,282,283,285,286,288],{},"Test in GTM Preview mode that both ",[27,284,38],{}," and ",[27,287,42],{}," are granted before the tag fires.",[66,290,292],{"id":291},"metadata","Metadata",[294,295,298,299,304,298,308,312,298,315,319,298,322,325,298,328,332,298,335,339,298,345,348,298,351,355],"dl",{"className":296},[297],"spec-list","\n  ",[300,301,303],"dt",{"id":302},"severity","Severity",[305,306,307],"dd",{},"high",[300,309,311],{"id":310},"tier","Tier",[305,313,314],{},"optimization",[300,316,318],{"id":317},"category","Category",[305,320,321],{},"consent",[300,323,324],{"id":57},"Layer",[305,326,327],{},"container",[300,329,331],{"id":330},"version","Version",[305,333,334],{},"1",[300,336,338],{"id":337},"effort","Effort",[305,340,341,344],{},[27,342,343],{},"15min"," (about 15 minutes)",[300,346,347],{"id":63},"Reversibility",[305,349,350],{},"non-destructive",[300,352,354],{"id":353},"regulatory","Regulatory",[305,356,357],{},"GDPR Art. 6 (lawful basis), GDPR Art. 7 (consent), EU Digital Markets Act (DMA)",[66,359,361],{"id":360},"see-also","See also",[17,363,364,372,379],{},[20,365,366,371],{},[367,368,370],"a",{"href":369},"\u002Fcategories\u002Fconsent\u002F","Consent rules"," — other rules in this category",[20,373,374,378],{},[367,375,377],{"href":376},"\u002Fhealth-score\u002F","Health score"," — how this rule contributes to the score",[20,380,381,385],{},[367,382,384],{"href":383},"\u002Frules\u002F","Rules catalog"," — browse all rules",[387,388,389],"style",{},"html pre.shiki code .sZZnC, html code.shiki .sZZnC{--shiki-default:#032F62;--shiki-dark:#9ECBFF}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 .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":150,"searchDepth":168,"depth":168,"links":391},[392,393,394,395,396,397],{"id":68,"depth":168,"text":69},{"id":113,"depth":168,"text":114},{"id":135,"depth":168,"text":136},{"id":248,"depth":168,"text":249},{"id":291,"depth":168,"text":292},{"id":360,"depth":168,"text":361},[399,402,404],{"label":400,"href":401},"API Reference","\u002F",{"label":403,"href":383},"Rules",{"label":29},{"cards":406,"onpage":418},[407],{"title":408,"tabs":409},"Evaluate",[410,414],{"label":411,"language":412,"code":413},"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-missing-ad-user-data\",\"url\":\"https:\u002F\u002Fexample.com\"}'\n",{"label":415,"language":416,"code":417},"MCP","text","User: Run consent-missing-ad-user-data on https:\u002F\u002Fexample.com\n\n# Tool call\n{\n  \"tool\": \"evaluate_rule\",\n  \"arguments\": {\n    \"rule_id\": \"consent-missing-ad-user-data\",\n    \"url\": \"https:\u002F\u002Fexample.com\"\n  }\n}\n",[419,420,421,422,423],{"id":68,"label":69},{"id":113,"label":114},{"id":135,"label":136},{"id":248,"label":249},{"id":291,"label":292},null,"Ad tags have ad_storage but are missing the ad_user_data consent type required by the EU Digital Markets Act. Tags with Built-In ad_user_data coverage (Google Ads Conversion, Remarketing) are excluded from this check.","md",{},true,"\u002Frules\u002Fconsent-missing-ad-user-data","TechArticle",{"title":5,"description":425},"rules\u002Fconsent-missing-ad-user-data",false,"Ab2qI3iTJQ4l6GvJ7EFGaUEz-PU5AFgj0XkftXN32t8",1796069483337]