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
NOTE
The patch might become applicable to other versions with new Quality Patches Tool releases. To check if the patch is compatible with your Adobe Commerce version, update the 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:

  1. Log in to the Admin of your Commerce store.

  2. On the Admin sidebar, go to Stores > Settings > Configuration.

  3. In the left panel, expand Sales and choose Google API.

  4. 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.
  5. Add a product to the cart and complete an order through checkout.

  6. On the success page, inspect the OrderTrackingData object 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:

To learn more about Quality Patches Tool, refer to:

recommendation-more-help
commerce-operations-help-tools