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