Google Analytics is not tracking conversion data

This article provides a patch for the known Adobe Commerce 2.2.4 issue related to Google Analytics not tracking the conversion data.

NOTE
The issue was fixed in Adobe Commerce 2.2.6.

Issue

The conversion data was not tracked by Google Analytics due to an error in the Google Analytics component code.

Steps to reproduce:

  1. Enable and configure the Google Analytics functionality in the Commerce Admin under Stores > Settings > Configuration > Sales > Google API > Google Analytics.
  2. Click Save Config.
  3. Place an order on the storefront.
  4. Go to Google Analytics Dashboard > Conversions > Overview.
  5. Set the date range to the current date.

Expected result:

The order appears in the conversion data.

Actual result:

The order does not appear in the conversion data.

Solution

The patch fixes the error in the Google Analytics component code. After applying the patch conversion data will be tracked by Google Analytics.

Patch

The patch is attached to this article. To download it, scroll down to the end of the article and click the file name or click the following link:

Download MDVA-11263_EE_2.2.4_v1.composer.patch

Compatible Adobe Commerce versions:

The patch was created for:

  • Adobe Commerce on-premises 2.2.4

The patch is also compatible (but might not solve the issue) with the following Adobe Commerce versions and editions:

  • Adobe Commerce on-premises 2.2.5
  • Adobe Commerce on cloud infrastructure 2.2.4, 2.2.5

How to apply the patch

See How to apply a composer patch provided by Adobe Commerce for instructions.

Attached Files

recommendation-more-help
8bd06ef0-b3d5-4137-b74e-d7b00485808a