[{"data":1,"prerenderedAt":273},["ShallowReactive",2],{"rule-multiple-googtag-configs":3},{"id":4,"title":5,"body":6,"breadcrumb":236,"coderail":243,"dateModified":262,"datePublished":262,"description":263,"extension":264,"meta":265,"navigation":266,"next":262,"path":267,"prev":262,"schemaType":268,"seo":269,"stem":270,"wide":271,"__hash__":272},"docs\u002Frules\u002Fmultiple-googtag-configs.md","Multiple googtag configs with same ID prefix",{"type":7,"value":8,"toc":226},"minimark",[9,16,54,59,77,81,84,88,111,115,136,140,198,202],[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",{},"multiple-googtag-configs",[20,31,32,35],{},[13,33,34],{},"purpose"," — Detect duplicate Google Tag (googtag) configurations sharing the same measurement ID and firing triggers",[20,37,38,41],{},[13,39,40],{},"effect"," — Duplicate configs send two configuration hits per page load, doubling pageview and event counts in GA4",[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 collects all active ",[27,63,64],{},"googtag"," tags (paused tags are excluded) and groups them by a composite key of measurement ID (",[27,67,68],{},"parameters.tagId",") and sorted ",[27,71,72],{},"firingTriggerIds"," joined as a string. Any group containing two or more tags with the same composite key is flagged. Containers with multiple ",[27,75,64],{}," tags for different measurement IDs, or the same ID on different triggers, are not flagged — those are intentional multi-property setups. The finding detail lists each duplicate tag by ID, name, and measurement ID.",[55,78,80],{"id":79},"why-it-matters","Why it matters",[10,82,83],{},"Two Google Tag configurations for the same measurement ID on the same trigger each send a configuration hit to GA4 on every page load. Every subsequent event receives two configuration contexts, which doubles session counts and event counts in GA4 reports. Session-based metrics are hit hardest because each configuration hit can initialize a new session context. The duplication is not visible in the GTM container UI without explicitly comparing tag configurations. Typically introduced during container migrations or agency handoffs.",[55,85,87],{"id":86},"example","Before \u002F after",[89,90,91,102],"compare",{},[92,93,95],"compare-col",{"label":94},"Before — flagged",[10,96,97,98,101],{},"Container has two active Google Tag (gtag config) tags, both configured for ",[27,99,100],{},"G-XXXXXXX"," and both firing on the All Pages trigger. The duplicate was added during a migration and never removed.",[92,103,105],{"label":104},"After — fixed",[10,106,107,108,110],{},"One Google Tag configured for ",[27,109,100],{}," firing on All Pages. All unique config parameters from the removed duplicate are merged into the remaining tag's settings variables.",[55,112,114],{"id":113},"remediation","Remediation",[116,117,118,121,124,127,130,133],"ol",{},[20,119,120],{},"Open the finding detail and identify which tags share the same measurement ID and triggers.",[20,122,123],{},"Compare the configuration parameters of each duplicate — check for differences in consent settings, tag sequencing, or config variables.",[20,125,126],{},"Merge any unique parameters from the duplicate into the tag you intend to keep.",[20,128,129],{},"Pause then delete the duplicate tag.",[20,131,132],{},"If sending data to multiple GA4 properties, use a single Google Tag with linked destinations rather than separate config tags.",[20,134,135],{},"Test in GTM Preview and GA4 DebugView to confirm only one configuration hit appears per page load.",[55,137,139],{"id":138},"metadata","Metadata",[141,142,145,146,151,145,155,159,145,162,166,145,169,172,145,175,179,145,182,186,145,192,195],"dl",{"className":143},[144],"spec-list","\n  ",[147,148,150],"dt",{"id":149},"severity","Severity",[152,153,154],"dd",{},"high",[147,156,158],{"id":157},"tier","Tier",[152,160,161],{},"optimization",[147,163,165],{"id":164},"category","Category",[152,167,168],{},"quality",[147,170,171],{"id":46},"Layer",[152,173,174],{},"container",[147,176,178],{"id":177},"version","Version",[152,180,181],{},"1",[147,183,185],{"id":184},"effort","Effort",[152,187,188,191],{},[27,189,190],{},"15min"," (about 15 minutes)",[147,193,194],{"id":52},"Reversibility",[152,196,197],{},"non-destructive",[55,199,201],{"id":200},"see-also","See also",[17,203,204,212,219],{},[20,205,206,211],{},[207,208,210],"a",{"href":209},"\u002Fcategories\u002Fquality\u002F","Quality rules"," — other rules in this category",[20,213,214,218],{},[207,215,217],{"href":216},"\u002Fhealth-score\u002F","Health score"," — how this rule contributes to the score",[20,220,221,225],{},[207,222,224],{"href":223},"\u002Frules\u002F","Rules catalog"," — browse all rules",{"title":227,"searchDepth":228,"depth":228,"links":229},"",2,[230,231,232,233,234,235],{"id":57,"depth":228,"text":58},{"id":79,"depth":228,"text":80},{"id":86,"depth":228,"text":87},{"id":113,"depth":228,"text":114},{"id":138,"depth":228,"text":139},{"id":200,"depth":228,"text":201},[237,240,242],{"label":238,"href":239},"API Reference","\u002F",{"label":241,"href":223},"Rules",{"label":29},{"cards":244,"onpage":256},[245],{"title":246,"tabs":247},"Evaluate",[248,252],{"label":249,"language":250,"code":251},"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\":\"multiple-googtag-configs\",\"url\":\"https:\u002F\u002Fexample.com\"}'\n",{"label":253,"language":254,"code":255},"MCP","text","User: Run multiple-googtag-configs on https:\u002F\u002Fexample.com\n\n# Tool call\n{\n  \"tool\": \"evaluate_rule\",\n  \"arguments\": {\n    \"rule_id\": \"multiple-googtag-configs\",\n    \"url\": \"https:\u002F\u002Fexample.com\"\n  }\n}\n",[257,258,259,260,261],{"id":57,"label":58},{"id":79,"label":80},{"id":86,"label":87},{"id":113,"label":114},{"id":138,"label":139},null,"Multiple Google Tag configurations for the same platform can cause double-counting of pageviews and events.","md",{},true,"\u002Frules\u002Fmultiple-googtag-configs","TechArticle",{"title":5,"description":263},"rules\u002Fmultiple-googtag-configs",false,"6CqVXDZtspq_nUV6hIlEqhREnpCya4zZrBIe8667jCs",1796069484246]