[{"data":1,"prerenderedAt":449},["ShallowReactive",2],{"rule-consent-ga4-not-needed":3},{"id":4,"title":5,"body":6,"breadcrumb":412,"coderail":419,"dateModified":438,"datePublished":438,"description":439,"extension":440,"meta":441,"navigation":442,"next":438,"path":443,"prev":438,"schemaType":444,"seo":445,"stem":446,"wide":447,"__hash__":448},"docs\u002Frules\u002Fconsent-ga4-not-needed.md","GA4 events with consent NOT_NEEDED",{"type":7,"value":8,"toc":404},"minimark",[9,16,54,59,74,78,89,93,263,267,303,307,372,376,400],[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-ga4-not-needed",[20,31,32,35],{},[13,33,34],{},"purpose"," — Detect GA4 event tags where Additional consent is set to NOT_NEEDED",[20,37,38,41],{},[13,39,40],{},"effect"," — Distinguishes safe native-tag configs from non-native tags that bypass consent enforcement",[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],{},"The rule filters active tags where ",[27,63,64],{},"t.type === 'gaawe'"," (GA4 Event) and ",[27,67,68],{},"t.consent === 'NOT_NEEDED'",". Paused tags are excluded. If every matched tag passes ",[27,71,72],{},"hasBuiltInCoverage(t, 'analytics_storage')",", the rule emits a low-severity reassurance finding — Built-In consent is active and handles Consent Mode v2 automatically. If any matched tag lacks Built-In coverage, the rule emits a high-severity finding indicating the tag fires without consent enforcement.",[55,75,77],{"id":76},"why-it-matters","Why it matters",[10,79,80,81,84,85,88],{},"Native GA4 event tags in GTM (Google Tag Manager) carry a Built-In ",[27,82,83],{},"analytics_storage"," consent signal. When consent is denied, GA4 sends cookieless pings instead of full tracking — NOT_NEEDED as the Additional setting is correct in that case. Non-native implementations (Custom HTML tags using ",[27,86,87],{},"gtag()",", third-party templates without Built-In consent) have no such fallback. A NOT_NEEDED tag without Built-In coverage fires unconditionally, collecting behavioral data regardless of the user's consent choice. Regulatory: GDPR Art. 6 (lawful basis), GDPR Art. 7 (consent).",[55,90,92],{"id":91},"example","Before \u002F after",[94,95,96,176],"compare",{},[97,98,100],"compare-col",{"label":99},"Before — flagged",[101,102,107],"pre",{"className":103,"code":104,"language":105,"meta":106,"style":106},"language-json shiki shiki-themes github-light github-dark","{\n  \"type\": \"gaawe\",\n  \"name\": \"GA4 - page_view\",\n  \"consent\": \"NOT_NEEDED\",\n  \"builtInConsent\": []\n}\n","json","",[27,108,109,118,135,148,161,170],{"__ignoreMap":106},[110,111,114],"span",{"class":112,"line":113},"line",1,[110,115,117],{"class":116},"sVt8B","{\n",[110,119,121,125,128,132],{"class":112,"line":120},2,[110,122,124],{"class":123},"sj4cs","  \"type\"",[110,126,127],{"class":116},": ",[110,129,131],{"class":130},"sZZnC","\"gaawe\"",[110,133,134],{"class":116},",\n",[110,136,138,141,143,146],{"class":112,"line":137},3,[110,139,140],{"class":123},"  \"name\"",[110,142,127],{"class":116},[110,144,145],{"class":130},"\"GA4 - page_view\"",[110,147,134],{"class":116},[110,149,151,154,156,159],{"class":112,"line":150},4,[110,152,153],{"class":123},"  \"consent\"",[110,155,127],{"class":116},[110,157,158],{"class":130},"\"NOT_NEEDED\"",[110,160,134],{"class":116},[110,162,164,167],{"class":112,"line":163},5,[110,165,166],{"class":123},"  \"builtInConsent\"",[110,168,169],{"class":116},": []\n",[110,171,173],{"class":112,"line":172},6,[110,174,175],{"class":116},"}\n",[97,177,179],{"label":178},"After — corrected",[101,180,182],{"className":103,"code":181,"language":105,"meta":106,"style":106},"{\n  \"type\": \"gaawe\",\n  \"name\": \"GA4 - page_view\",\n  \"consent\": \"NEEDED\",\n  \"consentSettings\": {\n    \"consentTypes\": [\"analytics_storage\"]\n  },\n  \"builtInConsent\": [\"analytics_storage\"]\n}\n",[27,183,184,188,198,208,219,227,241,247,258],{"__ignoreMap":106},[110,185,186],{"class":112,"line":113},[110,187,117],{"class":116},[110,189,190,192,194,196],{"class":112,"line":120},[110,191,124],{"class":123},[110,193,127],{"class":116},[110,195,131],{"class":130},[110,197,134],{"class":116},[110,199,200,202,204,206],{"class":112,"line":137},[110,201,140],{"class":123},[110,203,127],{"class":116},[110,205,145],{"class":130},[110,207,134],{"class":116},[110,209,210,212,214,217],{"class":112,"line":150},[110,211,153],{"class":123},[110,213,127],{"class":116},[110,215,216],{"class":130},"\"NEEDED\"",[110,218,134],{"class":116},[110,220,221,224],{"class":112,"line":163},[110,222,223],{"class":123},"  \"consentSettings\"",[110,225,226],{"class":116},": {\n",[110,228,229,232,235,238],{"class":112,"line":172},[110,230,231],{"class":123},"    \"consentTypes\"",[110,233,234],{"class":116},": [",[110,236,237],{"class":130},"\"analytics_storage\"",[110,239,240],{"class":116},"]\n",[110,242,244],{"class":112,"line":243},7,[110,245,246],{"class":116},"  },\n",[110,248,250,252,254,256],{"class":112,"line":249},8,[110,251,166],{"class":123},[110,253,234],{"class":116},[110,255,237],{"class":130},[110,257,240],{"class":116},[110,259,261],{"class":112,"line":260},9,[110,262,175],{"class":116},[55,264,266],{"id":265},"remediation","Remediation",[268,269,270,273,279,285,291,297],"ol",{},[20,271,272],{},"Open each flagged GA4 event tag in GTM and check the Consent Settings panel.",[20,274,275,276,278],{},"Confirm whether the tag is a native GA4 Event tag or a Custom HTML tag using ",[27,277,87],{},".",[20,280,281,282,284],{},"If native with Built-In ",[27,283,83],{}," already active, no change is needed — NOT_NEEDED is correct.",[20,286,287,288,290],{},"If native but Built-In consent is missing, enable the Built-In ",[27,289,83],{}," consent signal in the tag's Advanced Settings.",[20,292,293,294,296],{},"If Custom HTML or a non-native template, change the consent setting to NEEDED and add ",[27,295,83],{}," to the required consent types.",[20,298,299,300,302],{},"Migrate Custom HTML ",[27,301,87],{}," implementations to native GTM GA4 Event tags when the timeline allows.",[55,304,306],{"id":305},"metadata","Metadata",[308,309,312,313,318,312,322,326,312,329,333,312,336,339,312,342,346,312,349,353,312,359,362,312,365,369],"dl",{"className":310},[311],"spec-list","\n  ",[314,315,317],"dt",{"id":316},"severity","Severity",[319,320,321],"dd",{},"high",[314,323,325],{"id":324},"tier","Tier",[319,327,328],{},"optimization",[314,330,332],{"id":331},"category","Category",[319,334,335],{},"consent",[314,337,338],{"id":46},"Layer",[319,340,341],{},"container",[314,343,345],{"id":344},"version","Version",[319,347,348],{},"1",[314,350,352],{"id":351},"effort","Effort",[319,354,355,358],{},[27,356,357],{},"15min"," (about 15 minutes)",[314,360,361],{"id":52},"Reversibility",[319,363,364],{},"non-destructive",[314,366,368],{"id":367},"regulatory","Regulatory",[319,370,371],{},"GDPR Art. 6 (lawful basis), GDPR Art. 7 (consent)",[55,373,375],{"id":374},"see-also","See also",[17,377,378,386,393],{},[20,379,380,385],{},[381,382,384],"a",{"href":383},"\u002Fcategories\u002Fconsent\u002F","Consent rules"," — other rules in this category",[20,387,388,392],{},[381,389,391],{"href":390},"\u002Fhealth-score\u002F","Health score"," — how this rule contributes to the score",[20,394,395,399],{},[381,396,398],{"href":397},"\u002Frules\u002F","Rules catalog"," — browse all rules",[401,402,403],"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":106,"searchDepth":120,"depth":120,"links":405},[406,407,408,409,410,411],{"id":57,"depth":120,"text":58},{"id":76,"depth":120,"text":77},{"id":91,"depth":120,"text":92},{"id":265,"depth":120,"text":266},{"id":305,"depth":120,"text":306},{"id":374,"depth":120,"text":375},[413,416,418],{"label":414,"href":415},"API Reference","\u002F",{"label":417,"href":397},"Rules",{"label":29},{"cards":420,"onpage":432},[421],{"title":422,"tabs":423},"Evaluate",[424,428],{"label":425,"language":426,"code":427},"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-not-needed\",\"url\":\"https:\u002F\u002Fexample.com\"}'\n",{"label":429,"language":430,"code":431},"MCP","text","User: Run consent-ga4-not-needed on https:\u002F\u002Fexample.com\n\n# Tool call\n{\n  \"tool\": \"evaluate_rule\",\n  \"arguments\": {\n    \"rule_id\": \"consent-ga4-not-needed\",\n    \"url\": \"https:\u002F\u002Fexample.com\"\n  }\n}\n",[433,434,435,436,437],{"id":57,"label":58},{"id":76,"label":77},{"id":91,"label":92},{"id":265,"label":266},{"id":305,"label":306},null,"GA4 event tags have Additional consent set to NOT_NEEDED. Native GA4 tags have Built-In analytics_storage that automatically respects Consent Mode v2 — this is Google's recommended setup. Non-native GA4 implementations need explicit consent.","md",{},true,"\u002Frules\u002Fconsent-ga4-not-needed","TechArticle",{"title":5,"description":439},"rules\u002Fconsent-ga4-not-needed",false,"JaW3wQR8UPsPEECXfc_-xyUVqCfTeaQfbXC45zSH2BE",1796069483301]