[{"data":1,"prerenderedAt":360},["ShallowReactive",2],{"rule-ga4-reserved-event-names":3},{"id":4,"title":5,"body":6,"breadcrumb":323,"coderail":330,"dateModified":349,"datePublished":349,"description":350,"extension":351,"meta":352,"navigation":353,"next":349,"path":354,"prev":349,"schemaType":355,"seo":356,"stem":357,"wide":358,"__hash__":359},"docs\u002Frules\u002Fga4-reserved-event-names.md","Reserved event names used",{"type":7,"value":8,"toc":315},"minimark",[9,16,54,59,87,91,94,98,192,196,221,225,283,287,311],[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",{},"ga4-reserved-event-names",[20,31,32,35],{},[13,33,34],{},"purpose"," — Detect GA4 event tags whose event name collides with a GA4 reserved name",[20,37,38,41],{},[13,39,40],{},"effect"," — Custom events conflict with built-in GA4 automatic tracking, corrupting those event streams",[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],{},"The rule calls ",[27,63,64],{},"getGA4EventTags(data)"," to collect all active GA4 event tags, then checks each tag's ",[27,67,68],{},"ga4.eventName"," against a fixed set of 34 reserved names. The comparison is case-insensitive. Names in the reserved set include ",[27,71,72],{},"first_visit",", ",[27,75,76],{},"session_start",[27,78,79],{},"screen_view",[27,81,82],{},"error",[27,84,85],{},"user_engagement",", and all Firebase Analytics automatic events. If any tag's event name matches, that tag is added to the affected list and a single issue is returned. Paused tags are excluded.",[55,88,90],{"id":89},"why-it-matters","Why it matters",[10,92,93],{},"GA4 fires reserved events automatically via its SDK. When a custom event tag uses the same name, two data sources write to the same event bucket. GA4 does not merge them cleanly — the result is inflated counts, broken deduplication, and unreliable attribution for the affected event. The collision is silent: no console error appears in GTM, no validation warning surfaces in GA4. It can persist undetected through multiple reporting cycles. Renaming the custom event eliminates the conflict with no data loss.",[55,95,97],{"id":96},"example","Before \u002F after",[99,100,101,157],"compare",{},[102,103,105],"compare-col",{"label":104},"Before — flagged",[106,107,112],"pre",{"className":108,"code":109,"language":110,"meta":111,"style":111},"language-json shiki shiki-themes github-light github-dark","{\n  \"tag\": \"GA4 Event - First Visit Bonus\",\n  \"eventName\": \"first_visit\"\n}\n","json","",[27,113,114,123,140,151],{"__ignoreMap":111},[115,116,119],"span",{"class":117,"line":118},"line",1,[115,120,122],{"class":121},"sVt8B","{\n",[115,124,126,130,133,137],{"class":117,"line":125},2,[115,127,129],{"class":128},"sj4cs","  \"tag\"",[115,131,132],{"class":121},": ",[115,134,136],{"class":135},"sZZnC","\"GA4 Event - First Visit Bonus\"",[115,138,139],{"class":121},",\n",[115,141,143,146,148],{"class":117,"line":142},3,[115,144,145],{"class":128},"  \"eventName\"",[115,147,132],{"class":121},[115,149,150],{"class":135},"\"first_visit\"\n",[115,152,154],{"class":117,"line":153},4,[115,155,156],{"class":121},"}\n",[102,158,160],{"label":159},"After — fixed",[106,161,163],{"className":108,"code":162,"language":110,"meta":111,"style":111},"{\n  \"tag\": \"GA4 Event - First Visit Bonus\",\n  \"eventName\": \"custom_first_visit_bonus\"\n}\n",[27,164,165,169,179,188],{"__ignoreMap":111},[115,166,167],{"class":117,"line":118},[115,168,122],{"class":121},[115,170,171,173,175,177],{"class":117,"line":125},[115,172,129],{"class":128},[115,174,132],{"class":121},[115,176,136],{"class":135},[115,178,139],{"class":121},[115,180,181,183,185],{"class":117,"line":142},[115,182,145],{"class":128},[115,184,132],{"class":121},[115,186,187],{"class":135},"\"custom_first_visit_bonus\"\n",[115,189,190],{"class":117,"line":153},[115,191,156],{"class":121},[55,193,195],{"id":194},"remediation","Remediation",[197,198,199,202,205,212,215,218],"ol",{},[20,200,201],{},"Open each flagged GA4 event tag in GTM.",[20,203,204],{},"Identify the reserved name in the \"Event name\" field.",[20,206,207,208,211],{},"Rename the event to a non-reserved string. Prefix with ",[27,209,210],{},"custom_"," if no other name is available.",[20,213,214],{},"Update any Custom Event triggers, GA4 conversion definitions, or audience conditions that reference the old name.",[20,216,217],{},"Publish a new container version.",[20,219,220],{},"Confirm the renamed event appears under the correct name in GA4 DebugView without interference from auto-collected events.",[55,222,224],{"id":223},"metadata","Metadata",[226,227,230,231,236,230,240,244,230,247,251,230,254,257,230,260,264,230,267,271,230,277,280],"dl",{"className":228},[229],"spec-list","\n  ",[232,233,235],"dt",{"id":234},"severity","Severity",[237,238,239],"dd",{},"high",[232,241,243],{"id":242},"tier","Tier",[237,245,246],{},"optimization",[232,248,250],{"id":249},"category","Category",[237,252,253],{},"ga4",[232,255,256],{"id":46},"Layer",[237,258,259],{},"container",[232,261,263],{"id":262},"version","Version",[237,265,266],{},"1",[232,268,270],{"id":269},"effort","Effort",[237,272,273,276],{},[27,274,275],{},"15min"," (about 15 minutes)",[232,278,279],{"id":52},"Reversibility",[237,281,282],{},"non-destructive",[55,284,286],{"id":285},"see-also","See also",[17,288,289,297,304],{},[20,290,291,296],{},[292,293,295],"a",{"href":294},"\u002Fcategories\u002Fga4\u002F","GA4 rules"," — other rules in this category",[20,298,299,303],{},[292,300,302],{"href":301},"\u002Fhealth-score\u002F","Health score"," — how this rule contributes to the score",[20,305,306,310],{},[292,307,309],{"href":308},"\u002Frules\u002F","Rules catalog"," — browse all rules",[312,313,314],"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":111,"searchDepth":125,"depth":125,"links":316},[317,318,319,320,321,322],{"id":57,"depth":125,"text":58},{"id":89,"depth":125,"text":90},{"id":96,"depth":125,"text":97},{"id":194,"depth":125,"text":195},{"id":223,"depth":125,"text":224},{"id":285,"depth":125,"text":286},[324,327,329],{"label":325,"href":326},"API Reference","\u002F",{"label":328,"href":308},"Rules",{"label":29},{"cards":331,"onpage":343},[332],{"title":333,"tabs":334},"Evaluate",[335,339],{"label":336,"language":337,"code":338},"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\":\"ga4-reserved-event-names\",\"url\":\"https:\u002F\u002Fexample.com\"}'\n",{"label":340,"language":341,"code":342},"MCP","text","User: Run ga4-reserved-event-names on https:\u002F\u002Fexample.com\n\n# Tool call\n{\n  \"tool\": \"evaluate_rule\",\n  \"arguments\": {\n    \"rule_id\": \"ga4-reserved-event-names\",\n    \"url\": \"https:\u002F\u002Fexample.com\"\n  }\n}\n",[344,345,346,347,348],{"id":57,"label":58},{"id":89,"label":90},{"id":96,"label":97},{"id":194,"label":195},{"id":223,"label":224},null,"Event names conflict with GA4 reserved names for automatic tracking (e.g., first_visit, session_start).","md",{},true,"\u002Frules\u002Fga4-reserved-event-names","TechArticle",{"title":5,"description":350},"rules\u002Fga4-reserved-event-names",false,"dJsep0ZxWvqF7NsOtY8qtlJ351q7hf8jak3FDVkhtfQ",1796069483969]