AC-10698: Transaction prices and totals aren’t sent to Google Tag
The AC-10698 patch fixes the issue where the system sent the currency at the all-orders level instead of associating it with individual orders. Transaction prices and totals are now sent per order to Google Tag, improving ecommerce data tracking accuracy. This patch is available when the Quality Patches Tool (QPT) 1.1.79 is installed. The patch ID is AC-10698. Please note that this issue is scheduled to be fixed in Adobe Commerce 2.4.8.
Affected products and versions
The patch is created for Adobe Commerce version:
- Adobe Commerce (all deployment methods) 2.4.7-p3
Compatible with Adobe Commerce versions:
- Adobe Commerce (all deployment methods) 2.4.7 - 2.4.7-p9
magento/quality-patches package to the latest version and check the compatibility on the Quality Patches Tool: Search for patches page. Use the patch ID as a search keyword to locate the patch.Issue
The system sent the currency at the all-orders level instead of associating it with individual orders.
Steps to reproduce:
-
Log in to the Admin of your Commerce store.
-
On the Admin sidebar, go to Stores > Settings > Configuration.
-
In the left panel, expand Sales and choose Google API.
-
Expand Google Analytics and:
- Enable the integration.
- Select Google Tag Manager as the account type.
- Enter your GTM container ID (
GTM-xxxxxx). - (Optional) Enable content experiments.
- Leave remaining fields at their default values.
-
Add a product to the cart and complete an order through checkout.
-
On the success page, inspect the
OrderTrackingDataobject that is sent to Google Tag.
Expected results:
The currency is sent as part of each individual order, not at the top-level all-orders object. Transaction prices and totals are correctly associated with each order, matching the Google Analytics 4 ecommerce documentation expectation.
Actual results:
The currency is sent at the all-orders level rather than per order, so transaction prices and totals are not correctly associated with individual orders in Google Tag / Google Analytics ecommerce tracking.
Apply the patch
To apply individual patches, use the following links depending on your deployment method:
- Adobe Commerce or Magento Open Source on-premises: Quality Patches Tool > Usage in the Quality Patches Tool guide.
- Adobe Commerce on cloud infrastructure: Upgrades and Patches > Apply Patches in the Commerce on Cloud Infrastructure guide.
Related reading
To learn more about Quality Patches Tool, refer to:
- Quality Patches Tool: A self-service tool for quality patches in the Tools guide.