[{"data":1,"prerenderedAt":467},["ShallowReactive",2],{"rule-ecommerce-no-send-data":3},{"id":4,"title":5,"body":6,"breadcrumb":430,"coderail":437,"dateModified":456,"datePublished":456,"description":457,"extension":458,"meta":459,"navigation":460,"next":456,"path":461,"prev":456,"schemaType":462,"seo":463,"stem":464,"wide":465,"__hash__":466},"docs\u002Frules\u002Fecommerce-no-send-data.md","Ecommerce events without Send Ecommerce data",{"type":7,"value":8,"toc":422},"minimark",[9,16,54,59,78,82,89,92,107,111,289,293,329,333,390,394,418],[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",{},"ecommerce-no-send-data",[20,31,32,35],{},[13,33,34],{},"purpose"," — Detect GA4 event tags that use ecommerce event names without the Send Ecommerce data toggle enabled",[20,37,38,41],{},[13,39,40],{},"effect"," — Items array, transaction_id, value, and currency are not forwarded to GA4; revenue reports show $0",[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,77],{},"The rule iterates all GA4 event tags via ",[27,63,64],{},"getGA4EventTags()"," and checks two conditions: the tag's ",[27,67,68],{},"ga4.eventName"," must appear in the ",[27,71,72],{},"ECOMMERCE_EVENTS"," set (purchase, add_to_cart, view_item, begin_checkout, and related names), and ",[27,75,76],{},"ga4.sendEcommerceData"," must be falsy. Tags matching both conditions are flagged. Paused tags are excluded.",[55,79,81],{"id":80},"why-it-matters","Why it matters",[10,83,84,85,88],{},"The Send Ecommerce data toggle tells the GA4 event tag to read the ",[27,86,87],{},"ecommerce"," object from the current dataLayer state. Without it, the tag fires the event name to GA4 but sends none of the ecommerce payload. Revenue appears as $0. The items array is empty. Transaction IDs are absent from reports.",[10,90,91],{},"There is a second path worth noting. Even with the toggle off, you can still send ecommerce fields manually by mapping them as individual event parameters in the tag's parameter table. That approach works, but it requires maintaining every field by hand — items array serialization is not automatic, and nested objects are commonly dropped. The toggle is the intended path for dataLayer-driven ecommerce.",[10,93,94,95,98,99,102,103,106],{},"If you're using the manual-parameter approach, verify that ",[27,96,97],{},"items"," is correctly serialized and that ",[27,100,101],{},"value"," and ",[27,104,105],{},"currency"," are mapped before treating the toggle as optional.",[55,108,110],{"id":109},"example","Before \u002F after",[112,113,114,211],"compare",{},[115,116,118],"compare-col",{"label":117},"Before — flagged",[119,120,125],"pre",{"className":121,"code":122,"language":123,"meta":124,"style":124},"language-json shiki shiki-themes github-light github-dark","{\n  \"type\": \"googtag\",\n  \"name\": \"GA4 - purchase\",\n  \"ga4\": {\n    \"eventName\": \"purchase\",\n    \"sendEcommerceData\": false\n  }\n}\n","json","",[27,126,127,136,153,166,175,188,199,205],{"__ignoreMap":124},[128,129,132],"span",{"class":130,"line":131},"line",1,[128,133,135],{"class":134},"sVt8B","{\n",[128,137,139,143,146,150],{"class":130,"line":138},2,[128,140,142],{"class":141},"sj4cs","  \"type\"",[128,144,145],{"class":134},": ",[128,147,149],{"class":148},"sZZnC","\"googtag\"",[128,151,152],{"class":134},",\n",[128,154,156,159,161,164],{"class":130,"line":155},3,[128,157,158],{"class":141},"  \"name\"",[128,160,145],{"class":134},[128,162,163],{"class":148},"\"GA4 - purchase\"",[128,165,152],{"class":134},[128,167,169,172],{"class":130,"line":168},4,[128,170,171],{"class":141},"  \"ga4\"",[128,173,174],{"class":134},": {\n",[128,176,178,181,183,186],{"class":130,"line":177},5,[128,179,180],{"class":141},"    \"eventName\"",[128,182,145],{"class":134},[128,184,185],{"class":148},"\"purchase\"",[128,187,152],{"class":134},[128,189,191,194,196],{"class":130,"line":190},6,[128,192,193],{"class":141},"    \"sendEcommerceData\"",[128,195,145],{"class":134},[128,197,198],{"class":141},"false\n",[128,200,202],{"class":130,"line":201},7,[128,203,204],{"class":134},"  }\n",[128,206,208],{"class":130,"line":207},8,[128,209,210],{"class":134},"}\n",[115,212,214],{"label":213},"After — fixed",[119,215,217],{"className":121,"code":216,"language":123,"meta":124,"style":124},"{\n  \"type\": \"googtag\",\n  \"name\": \"GA4 - purchase\",\n  \"ga4\": {\n    \"eventName\": \"purchase\",\n    \"sendEcommerceData\": true,\n    \"ecommerceDataSource\": \"dataLayer\"\n  }\n}\n",[27,218,219,223,233,243,249,259,270,280,284],{"__ignoreMap":124},[128,220,221],{"class":130,"line":131},[128,222,135],{"class":134},[128,224,225,227,229,231],{"class":130,"line":138},[128,226,142],{"class":141},[128,228,145],{"class":134},[128,230,149],{"class":148},[128,232,152],{"class":134},[128,234,235,237,239,241],{"class":130,"line":155},[128,236,158],{"class":141},[128,238,145],{"class":134},[128,240,163],{"class":148},[128,242,152],{"class":134},[128,244,245,247],{"class":130,"line":168},[128,246,171],{"class":141},[128,248,174],{"class":134},[128,250,251,253,255,257],{"class":130,"line":177},[128,252,180],{"class":141},[128,254,145],{"class":134},[128,256,185],{"class":148},[128,258,152],{"class":134},[128,260,261,263,265,268],{"class":130,"line":190},[128,262,193],{"class":141},[128,264,145],{"class":134},[128,266,267],{"class":141},"true",[128,269,152],{"class":134},[128,271,272,275,277],{"class":130,"line":201},[128,273,274],{"class":141},"    \"ecommerceDataSource\"",[128,276,145],{"class":134},[128,278,279],{"class":148},"\"dataLayer\"\n",[128,281,282],{"class":130,"line":207},[128,283,204],{"class":134},[128,285,287],{"class":130,"line":286},9,[128,288,210],{"class":134},[55,290,292],{"id":291},"remediation","Remediation",[294,295,296,299,302,305,308,314,326],"ol",{},[20,297,298],{},"Open each flagged GA4 event tag in GTM (Google Tag Manager).",[20,300,301],{},"Locate the \"Ecommerce\" section within the tag configuration.",[20,303,304],{},"Enable the \"Send Ecommerce data\" toggle.",[20,306,307],{},"Set the data source to \"Data Layer\".",[20,309,310,311,313],{},"Confirm the site pushes an ",[27,312,87],{}," object to the dataLayer before the event fires. If not, coordinate with the development team to add it.",[20,315,316,317,319,320,322,323,325],{},"Preview in GTM and verify in GA4 DebugView that the hit includes ",[27,318,97],{},", ",[27,321,101],{},", and ",[27,324,105],{},".",[20,327,328],{},"Publish the container and confirm revenue appears in GA4 Ecommerce reports.",[55,330,332],{"id":331},"metadata","Metadata",[334,335,338,339,344,338,348,352,338,355,359,338,361,364,338,367,371,338,374,378,338,384,387],"dl",{"className":336},[337],"spec-list","\n  ",[340,341,343],"dt",{"id":342},"severity","Severity",[345,346,347],"dd",{},"critical",[340,349,351],{"id":350},"tier","Tier",[345,353,354],{},"warning",[340,356,358],{"id":357},"category","Category",[345,360,87],{},[340,362,363],{"id":46},"Layer",[345,365,366],{},"container",[340,368,370],{"id":369},"version","Version",[345,372,373],{},"1",[340,375,377],{"id":376},"effort","Effort",[345,379,380,383],{},[27,381,382],{},"15min"," (about 15 minutes)",[340,385,386],{"id":52},"Reversibility",[345,388,389],{},"non-destructive",[55,391,393],{"id":392},"see-also","See also",[17,395,396,404,411],{},[20,397,398,403],{},[399,400,402],"a",{"href":401},"\u002Fcategories\u002Fecommerce\u002F","Ecommerce rules"," — other rules in this category",[20,405,406,410],{},[399,407,409],{"href":408},"\u002Fhealth-score\u002F","Health score"," — how this rule contributes to the score",[20,412,413,417],{},[399,414,416],{"href":415},"\u002Frules\u002F","Rules catalog"," — browse all rules",[419,420,421],"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":124,"searchDepth":138,"depth":138,"links":423},[424,425,426,427,428,429],{"id":57,"depth":138,"text":58},{"id":80,"depth":138,"text":81},{"id":109,"depth":138,"text":110},{"id":291,"depth":138,"text":292},{"id":331,"depth":138,"text":332},{"id":392,"depth":138,"text":393},[431,434,436],{"label":432,"href":433},"API Reference","\u002F",{"label":435,"href":415},"Rules",{"label":29},{"cards":438,"onpage":450},[439],{"title":440,"tabs":441},"Evaluate",[442,446],{"label":443,"language":444,"code":445},"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\":\"ecommerce-no-send-data\",\"url\":\"https:\u002F\u002Fexample.com\"}'\n",{"label":447,"language":448,"code":449},"MCP","text","User: Run ecommerce-no-send-data on https:\u002F\u002Fexample.com\n\n# Tool call\n{\n  \"tool\": \"evaluate_rule\",\n  \"arguments\": {\n    \"rule_id\": \"ecommerce-no-send-data\",\n    \"url\": \"https:\u002F\u002Fexample.com\"\n  }\n}\n",[451,452,453,454,455],{"id":57,"label":58},{"id":80,"label":81},{"id":109,"label":110},{"id":291,"label":292},{"id":331,"label":332},null,"GA4 event tags use ecommerce event names but don't have \"Send Ecommerce data\" enabled. Without this setting, the items array, transaction_id, value, and currency from the dataLayer ecommerce object are NOT sent to GA4 — revenue will show as $0 and no product data will appear in reports.","md",{},true,"\u002Frules\u002Fecommerce-no-send-data","TechArticle",{"title":5,"description":457},"rules\u002Fecommerce-no-send-data",false,"qXIWHUVyRJfpBxrj6tO1X3oAOwbC24lxdpG8hdyx5lU",1796069483555]