[{"data":1,"prerenderedAt":291},["ShallowReactive",2],{"rule-ga4-duplicate-event-names":3},{"id":4,"title":5,"body":6,"breadcrumb":254,"coderail":261,"dateModified":280,"datePublished":280,"description":281,"extension":282,"meta":283,"navigation":284,"next":280,"path":285,"prev":280,"schemaType":286,"seo":287,"stem":288,"wide":289,"__hash__":290},"docs\u002Frules\u002Fga4-duplicate-event-names.md","Duplicate event names across tags",{"type":7,"value":8,"toc":244},"minimark",[9,16,54,59,77,81,84,88,126,130,154,158,216,220],[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-duplicate-event-names",[20,31,32,35],{},[13,33,34],{},"purpose"," — Detect multiple active tags sending identical GA4 event names",[20,37,38,41],{},[13,39,40],{},"effect"," — Each duplicate tag fires independently, inflating event counts in reports",[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,76],{},"The rule calls ",[27,63,64],{},"getGA4EventTags()"," to collect all active GA4 event tags, then groups them by ",[27,67,68],{},"t.ga4.eventName",". Any event name held by two or more tags is a duplicate. Tags with no resolved event name and tags whose name starts with ",[27,71,72],{},"{{"," (unresolved variable references) are skipped. The rule returns a single issue listing all affected tags and all duplicate event names. Paused tags are excluded by ",[27,75,64],{},".",[55,78,80],{"id":79},"why-it-matters","Why it matters",[10,82,83],{},"When two tags fire the same event name on the same trigger, GA4 records both hits. The event appears twice in reports, audiences, and conversion counts. No GA4 deduplication layer merges them. Reports become unreliable and any downstream decision — bid adjustments, funnel analysis, quota monitoring — acts on inflated numbers. Because the tags fire independently, the inflation scales with trigger frequency.",[55,85,87],{"id":86},"example","Before \u002F after",[89,90,91,111],"compare",{},[92,93,95,105],"compare-col",{"label":94},"Before — flagged",[10,96,97,98,101,102,104],{},"Tag \"GA4 - form_submit (contact)\" fires ",[27,99,100],{},"form_submit"," on All Pages trigger.\nTag \"GA4 - form_submit (demo)\" fires ",[27,103,100],{}," on All Pages trigger.",[10,106,107,108,110],{},"Both tags are active. GA4 receives two ",[27,109,100],{}," hits per submission.",[92,112,114,119],{"label":113},"After — fixed",[10,115,116,117,104],{},"Tag \"GA4 - form_submit\" fires ",[27,118,100],{},[10,120,121,122,125],{},"A Lookup Table variable sets ",[27,123,124],{},"form_type"," to \"contact\" or \"demo\"\nbased on the page URL.\nOne hit reaches GA4 per form submission.",[55,127,129],{"id":128},"remediation","Remediation",[131,132,133,136,139,142,145,148,151],"ol",{},[20,134,135],{},"Open the TagManifest issue detail to see which event names are duplicated and which tags share them.",[20,137,138],{},"Open each flagged tag in GTM (Google Tag Manager) and compare trigger conditions and parameter sets.",[20,140,141],{},"Determine whether the tags cover the same logical event or distinct events with a shared name by mistake.",[20,143,144],{},"If the same event: merge into one tag and use trigger conditions or a Lookup Table variable to carry differentiating parameters.",[20,146,147],{},"If distinct events: rename one to a unique event name that reflects its purpose.",[20,149,150],{},"Verify in GA4 DebugView that only one hit arrives per user action.",[20,152,153],{},"Publish the container and confirm event counts stabilize in reports.",[55,155,157],{"id":156},"metadata","Metadata",[159,160,163,164,169,163,173,177,163,180,184,163,187,190,163,193,197,163,200,204,163,210,213],"dl",{"className":161},[162],"spec-list","\n  ",[165,166,168],"dt",{"id":167},"severity","Severity",[170,171,172],"dd",{},"medium",[165,174,176],{"id":175},"tier","Tier",[170,178,179],{},"optimization",[165,181,183],{"id":182},"category","Category",[170,185,186],{},"ga4",[165,188,189],{"id":46},"Layer",[170,191,192],{},"container",[165,194,196],{"id":195},"version","Version",[170,198,199],{},"1",[165,201,203],{"id":202},"effort","Effort",[170,205,206,209],{},[27,207,208],{},"2hr"," (about 2 hours)",[165,211,212],{"id":52},"Reversibility",[170,214,215],{},"non-destructive",[55,217,219],{"id":218},"see-also","See also",[17,221,222,230,237],{},[20,223,224,229],{},[225,226,228],"a",{"href":227},"\u002Fcategories\u002Fga4\u002F","GA4 rules"," — other rules in this category",[20,231,232,236],{},[225,233,235],{"href":234},"\u002Fhealth-score\u002F","Health score"," — how this rule contributes to the score",[20,238,239,243],{},[225,240,242],{"href":241},"\u002Frules\u002F","Rules catalog"," — browse all rules",{"title":245,"searchDepth":246,"depth":246,"links":247},"",2,[248,249,250,251,252,253],{"id":57,"depth":246,"text":58},{"id":79,"depth":246,"text":80},{"id":86,"depth":246,"text":87},{"id":128,"depth":246,"text":129},{"id":156,"depth":246,"text":157},{"id":218,"depth":246,"text":219},[255,258,260],{"label":256,"href":257},"API Reference","\u002F",{"label":259,"href":241},"Rules",{"label":29},{"cards":262,"onpage":274},[263],{"title":264,"tabs":265},"Evaluate",[266,270],{"label":267,"language":268,"code":269},"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-duplicate-event-names\",\"url\":\"https:\u002F\u002Fexample.com\"}'\n",{"label":271,"language":272,"code":273},"MCP","text","User: Run ga4-duplicate-event-names on https:\u002F\u002Fexample.com\n\n# Tool call\n{\n  \"tool\": \"evaluate_rule\",\n  \"arguments\": {\n    \"rule_id\": \"ga4-duplicate-event-names\",\n    \"url\": \"https:\u002F\u002Fexample.com\"\n  }\n}\n",[275,276,277,278,279],{"id":57,"label":58},{"id":79,"label":80},{"id":86,"label":87},{"id":128,"label":129},{"id":156,"label":157},null,"Multiple active tags send the same event name, causing double-counting of events in reports.","md",{},true,"\u002Frules\u002Fga4-duplicate-event-names","TechArticle",{"title":5,"description":281},"rules\u002Fga4-duplicate-event-names",false,"c1JpsDGkeK0OC2AbsFMHOHgMfD2NBWMXTk8uHOmfv-k",1796069483645]