{"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":"efa89dff023b527f6656a41aee6d9743cc9c47ab3302d79018a435856b9cc847","isBugfix":0.9668,"changeKind":{"choice":"bugfix","probabilities":{"bugfix":0.9611,"feature":0.0058,"refactor":0.0199,"tests_only":0.0055,"docs_only":0.0034,"dependency":0.0043},"confidence":0.909},"scope":{"score":1.0405,"probabilities":{"0":0.0998,"1":0.7598,"2":0.1404},"confidence":0.4105},"risk":{"score":0.6179,"probabilities":{"0":0.4955,"1":0.3911,"2":0.1134},"confidence":0.117},"area":{"choice":"checkout","probabilities":{"catalog":0.0083,"checkout":0.4151,"customer":0.0073,"admin":0.0206,"graphql_api":0.008,"framework":0.012,"frontend":0.289,"other":0.2397},"confidence":0.216},"securityRelevant":0.3704,"reportedVersion":{"choice":"2.4.6","probabilities":{"2.4.0":0.0021,"2.4.0-p1":0.0021,"2.4.1":0.0022,"2.4.1-p1":0.0022,"2.4.2":0.0026,"2.4.2-p1":0.0034,"2.4.2-p2":0.0033,"2.4.3":0.0027,"2.4.3-p1":0.0033,"2.4.3-p2":0.0039,"2.4.3-p3":0.0033,"2.4.4":0.0037,"2.4.4-p1":0.0032,"2.4.4-p10":0.0032,"2.4.4-p11":0.0034,"2.4.4-p12":0.0039,"2.4.4-p13":0.0039,"2.4.4-p14":0.004,"2.4.4-p15":0.0038,"2.4.4-p16":0.004,"2.4.4-p17":0.0029,"2.4.4-p18":0.0033,"2.4.4-p2":0.0021,"2.4.4-p3":0.002,"2.4.4-p4":0.003,"2.4.4-p5":0.0034,"2.4.4-p6":0.0038,"2.4.4-p7":0.0029,"2.4.4-p8":0.0039,"2.4.4-p9":0.0028,"2.4.5":0.0111,"2.4.5-p1":0.0192,"2.4.5-p10":0.0037,"2.4.5-p11":0.005,"2.4.5-p12":0.0085,"2.4.5-p13":0.0046,"2.4.5-p14":0.0055,"2.4.5-p15":0.0044,"2.4.5-p16":0.007,"2.4.5-p17":0.0043,"2.4.5-p2":0.0295,"2.4.5-p3":0.004,"2.4.5-p4":0.004,"2.4.5-p5":0.0035,"2.4.5-p6":0.0068,"2.4.5-p7":0.0066,"2.4.5-p8":0.0073,"2.4.5-p9":0.0033,"2.4.6":0.4513,"2.4.6-p1":0.0198,"2.4.6-p10":0.008,"2.4.6-p11":0.0086,"2.4.6-p12":0.0066,"2.4.6-p13":0.0094,"2.4.6-p14":0.0062,"2.4.6-p15":0.0089,"2.4.6-p2":0.0084,"2.4.6-p3":0.0161,"2.4.6-p4":0.0114,"2.4.6-p5":0.0128,"2.4.6-p6":0.0175,"2.4.6-p7":0.012,"2.4.6-p8":0.0088,"2.4.6-p9":0.0061,"2.4.7":0.0034,"2.4.7-p1":0.0031,"2.4.7-p10":0.0031,"2.4.7-p2":0.0037,"2.4.7-p3":0.0055,"2.4.7-p4":0.0052,"2.4.7-p5":0.0057,"2.4.7-p6":0.0076,"2.4.7-p7":0.0053,"2.4.7-p8":0.0046,"2.4.7-p9":0.0029,"2.4.8":0.0034,"2.4.8-p1":0.004,"2.4.8-p2":0.0049,"2.4.8-p3":0.0068,"2.4.8-p4":0.0062,"2.4.8-p5":0.0061,"2.4.9":0.004,"unspecified":0.07},"confidence":0.2035},"backportWorthy":{"score":1.5787,"probabilities":{"0":0.0839,"1":0.2536,"2":0.6625},"confidence":0.2654}},"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"}