{"data":{"id":"magento2-37349","source":"github-pr","sourceRef":"magento/magento2#37349","title":"GTag not send transaction prices and totals.","pr":{"number":37349,"url":"https://github.com/magento/magento2/pull/37349","author":"Bashev","mergedAt":"2024-07-04T16:37:36Z","mergeCommit":"dcc8a618f7fc109c68d70cc8641e867ad0220f2f","headCommit":"9e06503a3962b3ec1724d50204d8f5a7eef1cc89","baseRef":"2.4-develop","diffSha256":"9e3d61428e4f119bd73fb3c7c15d6dff5de40ecf36530e0c86166313597a6a42"},"issues":[{"number":37348,"url":"https://github.com/magento/magento2/issues/37348","title":"GTag not send transaction prices and totals.","labels":["Area: Cart & Checkout","Issue: Confirmed","Priority: P2","Progress: done","Reported on 2.4.6","Reproduced on 2.4.x"],"kind":"human"}],"fixedIn":"2.4.8","containingTags":["2.4.8","2.4.8-p1","2.4.8-p2","2.4.8-p3","2.4.8-p4","2.4.8-p5","2.4.9"],"reportedOn":"2.4.6","codeMatch":{"2.4.6":"conflict","2.4.6-p1":"conflict","2.4.6-p2":"conflict","2.4.6-p3":"conflict","2.4.6-p4":"conflict","2.4.6-p5":"conflict","2.4.6-p6":"conflict","2.4.6-p7":"conflict","2.4.6-p8":"conflict","2.4.6-p9":"conflict","2.4.6-p10":"conflict","2.4.6-p11":"conflict","2.4.6-p12":"conflict","2.4.6-p13":"conflict","2.4.6-p14":"conflict","2.4.6-p15":"conflict","2.4.7":"clean","2.4.7-p1":"clean","2.4.7-p2":"clean","2.4.7-p3":"clean","2.4.7-p4":"clean","2.4.7-p5":"clean","2.4.7-p6":"clean","2.4.7-p7":"clean","2.4.7-p8":"clean","2.4.7-p9":"clean","2.4.7-p10":"clean","2.4.8":"conflict","2.4.8-p1":"conflict","2.4.8-p2":"conflict","2.4.8-p3":"conflict","2.4.8-p4":"conflict","2.4.8-p5":"conflict","2.4.9":"conflict"},"affectedVersions":["2.4.7","2.4.7-p1","2.4.7-p2","2.4.7-p3","2.4.7-p4","2.4.7-p5","2.4.7-p6","2.4.7-p7","2.4.7-p8","2.4.7-p9","2.4.7-p10"],"components":["magento/module-google-gtag"],"files":[{"path":"app/code/Magento/GoogleGtag/Block/Ga.php","change":"modified","package":"magento/module-google-gtag"},{"path":"app/code/Magento/GoogleGtag/view/frontend/web/js/google-analytics.js","change":"modified","package":"magento/module-google-gtag"}],"stripped":{"tests":["app/code/Magento/GoogleGtag/Test/Unit/Block/GaTest.php"],"docs":["app/code/Magento/GoogleGtag/README.md"],"outsideCode":[]},"linesChanged":32,"mergeBatched":false,"excluded":null,"sections":{"description":"![](https://user-images.githubusercontent.com/1854269/230713395-90d2cac1-c3a2-4295-a5c6-7d9d69991f8e.png)","stepsToReproduce":"1. Enable Gtag (Store - Configuration - Sales - Google API - GTag - Enable and add Gtag Key\n1. Add product to cart and finish an order.\n1. On success page you need capture OrderTrackingData which was send to Google Tag.","expectedResult":"Currency need to be part of the order, not part of the \"all\" orders provided. Reference from Google Analytics docs: https://developers.google.com/analytics/devguides/collection/ga4/ecommerce?client*type=gtag#make_a_purchase_or_issue_a*refund\n\n![](https://user-images.githubusercontent.com/1854269/230713701-3d4ba69a-7c8a-4aa2-a3ab-22beca7cc2c6.png)","actualResult":"![](https://user-images.githubusercontent.com/1854269/230713395-90d2cac1-c3a2-4295-a5c6-7d9d69991f8e.png)","source":"issue"},"signatures":[],"labels":{"area":["Cart & Checkout"],"component":[],"priority":"P2","severity":null,"reportedOn":["2.4.6"]},"categories":["Order/Checkout"],"triage":{"model":"@cf/cloudflare/clef","requestHash":"174cb827c8ff2afbc9615fa9503014c1ee3f169043b9860338bf08e5137551ad","isBugfix":0.9633,"changeKind":{"choice":"bugfix","probabilities":{"bugfix":0.9522,"feature":0.0053,"refactor":0.0174,"tests_only":0.0054,"docs_only":0.0031,"dependency":0.004,"cleanup":0.0126},"confidence":0.8918},"scope":{"score":1.0385,"probabilities":{"0":0.1008,"1":0.76,"2":0.1392},"confidence":0.4107},"risk":{"score":0.609,"probabilities":{"0":0.503,"1":0.3851,"2":0.1119},"confidence":0.1207},"area":{"choice":"checkout","probabilities":{"catalog":0.0099,"checkout":0.3954,"customer":0.0079,"admin":0.0202,"graphql_api":0.0083,"framework":0.0131,"frontend":0.2706,"other":0.2746},"confidence":0.2067},"securityRelevant":0.2776,"reportedVersion":{"choice":"2.4.6","probabilities":{"2.4.0":0.0023,"2.4.0-p1":0.0023,"2.4.1":0.0023,"2.4.1-p1":0.0023,"2.4.2":0.0027,"2.4.2-p1":0.0033,"2.4.2-p2":0.0037,"2.4.3":0.0029,"2.4.3-p1":0.0038,"2.4.3-p2":0.0045,"2.4.3-p3":0.0036,"2.4.4":0.0037,"2.4.4-p1":0.0031,"2.4.4-p10":0.0034,"2.4.4-p11":0.0035,"2.4.4-p12":0.0041,"2.4.4-p13":0.0037,"2.4.4-p14":0.0038,"2.4.4-p15":0.0034,"2.4.4-p16":0.0042,"2.4.4-p17":0.0031,"2.4.4-p18":0.0031,"2.4.4-p2":0.0022,"2.4.4-p3":0.002,"2.4.4-p4":0.0025,"2.4.4-p5":0.0032,"2.4.4-p6":0.0036,"2.4.4-p7":0.0028,"2.4.4-p8":0.0035,"2.4.4-p9":0.0028,"2.4.5":0.0111,"2.4.5-p1":0.016,"2.4.5-p10":0.0046,"2.4.5-p11":0.0052,"2.4.5-p12":0.0075,"2.4.5-p13":0.0065,"2.4.5-p14":0.0062,"2.4.5-p15":0.0052,"2.4.5-p16":0.0075,"2.4.5-p17":0.0045,"2.4.5-p2":0.0313,"2.4.5-p3":0.0041,"2.4.5-p4":0.0038,"2.4.5-p5":0.0037,"2.4.5-p6":0.0067,"2.4.5-p7":0.0062,"2.4.5-p8":0.0056,"2.4.5-p9":0.0033,"2.4.6":0.4797,"2.4.6-p1":0.0205,"2.4.6-p10":0.0076,"2.4.6-p11":0.0091,"2.4.6-p12":0.0076,"2.4.6-p13":0.0086,"2.4.6-p14":0.0061,"2.4.6-p15":0.0074,"2.4.6-p2":0.009,"2.4.6-p3":0.0169,"2.4.6-p4":0.0122,"2.4.6-p5":0.0136,"2.4.6-p6":0.0141,"2.4.6-p7":0.0102,"2.4.6-p8":0.0082,"2.4.6-p9":0.0056,"2.4.7":0.0032,"2.4.7-p1":0.0029,"2.4.7-p10":0.0035,"2.4.7-p2":0.0031,"2.4.7-p3":0.0053,"2.4.7-p4":0.005,"2.4.7-p5":0.0047,"2.4.7-p6":0.007,"2.4.7-p7":0.0047,"2.4.7-p8":0.0039,"2.4.7-p9":0.0028,"2.4.8":0.0033,"2.4.8-p1":0.0038,"2.4.8-p2":0.0046,"2.4.8-p3":0.0064,"2.4.8-p4":0.0065,"2.4.8-p5":0.0055,"2.4.9":0.0038,"unspecified":0.0492},"confidence":0.2277},"backportWorthy":{"score":1.5863,"probabilities":{"0":0.0817,"1":0.2503,"2":0.668},"confidence":0.2733}},"curated":{"title":"Fixes Google Gtag purchase event missing transaction prices and totals","description":"GTag does not send transaction prices and totals: currency is part of the \"all\" orders data, not part of the order. The GoogleGtag Ga block now has currency only in each order, uses round, not number_format, for price, value, tax and shipping, and has affiliation per product, and google-analytics.js uses hasOwnProperty(orders), not currency, for the purchase event.","categories":["Order/Checkout"],"author":"claude-code/opus-5.5","date":"2026-10-06","reviewedBy":null},"tests":{"2.4.7-p10":{"before":"fail","after":"pass","adapted":false,"runAt":"2026-10-06T09:29:10.461Z","releaseCommit":"72561bf80652f57cc642a03e2c9a51d74a285b14","suites":{"unit":{"before":"fail","after":"pass","runAt":"2026-10-06T09:29:10.461Z"}}}}},"_documentation":"https://magento.watch/api","_description":"Upstream fix magento2-37349 details"}