[{"data":1,"prerenderedAt":347},["ShallowReactive",2],{"rule-ga4-ecommerce-separate-tags":3},{"id":4,"title":5,"body":6,"breadcrumb":310,"coderail":317,"dateModified":336,"datePublished":336,"description":337,"extension":338,"meta":339,"navigation":340,"next":336,"path":341,"prev":336,"schemaType":342,"seo":343,"stem":344,"wide":345,"__hash__":346},"docs\u002Frules\u002Fga4-ecommerce-separate-tags.md","Ecommerce events in too many separate tags",{"type":7,"value":8,"toc":300},"minimark",[9,16,54,59,102,106,116,120,172,176,210,214,272,276],[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-ecommerce-separate-tags",[20,31,32,35],{},[13,33,34],{},"purpose"," — Detect GA4 ecommerce events spread across six or more separate tags with duplicate event names",[20,37,38,41],{},[13,39,40],{},"effect"," — Fragmented ecommerce tagging that is harder to maintain and prone to measurement drift",[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,69,73,69,76,69,79,69,82,69,85,69,88,69,91,69,94,97,98,101],{},"The rule collects all active GA4 event tags whose ",[27,63,64],{},"ga4.eventName"," matches one of eleven standard ecommerce events: ",[27,67,68],{},"view_item",", ",[27,71,72],{},"view_item_list",[27,74,75],{},"select_item",[27,77,78],{},"add_to_cart",[27,80,81],{},"remove_from_cart",[27,83,84],{},"view_cart",[27,86,87],{},"begin_checkout",[27,89,90],{},"add_shipping_info",[27,92,93],{},"add_payment_info",[27,95,96],{},"purchase",", and ",[27,99,100],{},"refund",". Event name matching is case-insensitive. If the matching set contains fewer than six tags, the rule passes — four distinct events is the correct full-funnel pattern. If six or more tags are found but each tag handles a unique event name, the rule also passes, treating that as a deliberate architecture. The rule fires only when six or more tags exist and at least one event name appears on more than one tag.",[55,103,105],{"id":104},"why-it-matters","Why it matters",[10,107,108,109,111,112,115],{},"Each separate ecommerce tag needs its own trigger, its own parameters, and its own maintenance path. When the same event (for example, ",[27,110,96],{},") lives in multiple tags, changes must be applied to every copy — and they rarely stay in sync. Duplicate event tags on the same event also inflate reported conversions because both fire on the same dataLayer push. A single GA4 event tag with ",[27,113,114],{},"{{Event}}"," as the event name and \"Send Ecommerce Data\" enabled reads all ecommerce fields from the dataLayer in one shot, covers the full funnel, and eliminates the duplication surface.",[55,117,119],{"id":118},"example","Before \u002F after",[121,122,123,150],"compare",{},[124,125,127,130,147],"compare-col",{"label":126},"Before — flagged",[10,128,129],{},"Container has 8 separate GA4 event tags:",[17,131,132,135,138,141,144],{},[20,133,134],{},"Tag \"GA4 - view_item\" → fires on CE - view_item",[20,136,137],{},"Tag \"GA4 - add_to_cart\" → fires on CE - add_to_cart",[20,139,140],{},"Tag \"GA4 - purchase\" → fires on CE - purchase",[20,142,143],{},"Tag \"GA4 - purchase (backup)\" → fires on CE - purchase",[20,145,146],{},"… (4 more, including a duplicate add_to_cart)",[10,148,149],{},"Duplicate event names across tags; parameters maintained separately in each.",[124,151,153,156,169],{"label":152},"After — consolidated",[10,154,155],{},"One GA4 event tag:",[17,157,158,163,166],{},[20,159,160,161],{},"Event name: ",[27,162,114],{},[20,164,165],{},"\"Send Ecommerce Data\" enabled, source: Data Layer",[20,167,168],{},"Trigger: custom event regex matching all ecommerce event names",[10,170,171],{},"All eleven ecommerce events route through one tag. Parameters update in one place.",[55,173,175],{"id":174},"remediation","Remediation",[177,178,179,182,185,188,194,197,204,207],"ol",{},[20,180,181],{},"Open the GTM (Google Tag Manager) container and filter tags by type \"Google Analytics: GA4 Event\".",[20,183,184],{},"Identify all tags whose event name matches a standard ecommerce event.",[20,186,187],{},"Audit for duplicate event names across tags — these are the consolidation targets.",[20,189,190,191,193],{},"Create one GA4 event tag with ",[27,192,114],{}," as the event name and \"Send Ecommerce Data\" enabled (source: Data Layer).",[20,195,196],{},"Set a single trigger using a Custom Event regex that matches all ecommerce event names.",[20,198,199,200,203],{},"Verify each ecommerce dataLayer push includes the standard ",[27,201,202],{},"ecommerce"," object.",[20,205,206],{},"Run Tag Assistant to confirm each ecommerce event fires exactly once per user action.",[20,208,209],{},"Remove or pause the replaced individual tags once verification passes.",[55,211,213],{"id":212},"metadata","Metadata",[215,216,219,220,225,219,229,233,219,236,240,219,243,246,219,249,253,219,256,260,219,266,269],"dl",{"className":217},[218],"spec-list","\n  ",[221,222,224],"dt",{"id":223},"severity","Severity",[226,227,228],"dd",{},"medium",[221,230,232],{"id":231},"tier","Tier",[226,234,235],{},"optimization",[221,237,239],{"id":238},"category","Category",[226,241,242],{},"ga4",[221,244,245],{"id":46},"Layer",[226,247,248],{},"container",[221,250,252],{"id":251},"version","Version",[226,254,255],{},"1",[221,257,259],{"id":258},"effort","Effort",[226,261,262,265],{},[27,263,264],{},"2wk"," (about 2 weeks)",[221,267,268],{"id":52},"Reversibility",[226,270,271],{},"non-destructive",[55,273,275],{"id":274},"see-also","See also",[17,277,278,286,293],{},[20,279,280,285],{},[281,282,284],"a",{"href":283},"\u002Fcategories\u002Fga4\u002F","GA4 rules"," — other rules in this category",[20,287,288,292],{},[281,289,291],{"href":290},"\u002Fhealth-score\u002F","Health score"," — how this rule contributes to the score",[20,294,295,299],{},[281,296,298],{"href":297},"\u002Frules\u002F","Rules catalog"," — browse all rules",{"title":301,"searchDepth":302,"depth":302,"links":303},"",2,[304,305,306,307,308,309],{"id":57,"depth":302,"text":58},{"id":104,"depth":302,"text":105},{"id":118,"depth":302,"text":119},{"id":174,"depth":302,"text":175},{"id":212,"depth":302,"text":213},{"id":274,"depth":302,"text":275},[311,314,316],{"label":312,"href":313},"API Reference","\u002F",{"label":315,"href":297},"Rules",{"label":29},{"cards":318,"onpage":330},[319],{"title":320,"tabs":321},"Evaluate",[322,326],{"label":323,"language":324,"code":325},"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-ecommerce-separate-tags\",\"url\":\"https:\u002F\u002Fexample.com\"}'\n",{"label":327,"language":328,"code":329},"MCP","text","User: Run ga4-ecommerce-separate-tags on https:\u002F\u002Fexample.com\n\n# Tool call\n{\n  \"tool\": \"evaluate_rule\",\n  \"arguments\": {\n    \"rule_id\": \"ga4-ecommerce-separate-tags\",\n    \"url\": \"https:\u002F\u002Fexample.com\"\n  }\n}\n",[331,332,333,334,335],{"id":57,"label":58},{"id":104,"label":105},{"id":118,"label":119},{"id":174,"label":175},{"id":212,"label":213},null,"Many separate GA4 tags handle individual ecommerce events instead of consolidating with the ecommerce data layer.","md",{},true,"\u002Frules\u002Fga4-ecommerce-separate-tags","TechArticle",{"title":5,"description":337},"rules\u002Fga4-ecommerce-separate-tags",false,"SUCYpV5HeO8Y1jnIT_Nfvz-VYoJWYWn26-uC2s-829Q",1796069483692]