How to track AI recommendations conversion in Google Analytics 4? MAX

The feature described in this article is available only in MAX plans.

Here you can learn more about AI Product Recommendations.

You can track the performance of AI recommendations in Google Analytics 4 using Google Tag Manager.

Before you begin

When a recommendation banner is generated, a view_promotion event is pushed to the dataLayer in accordance with the Google Analytics 4 documentation. The handling of this event will occur on the client side.

To send ecommerce events and parameters to your Google Analytics property:

  1. Open Google Tag Manager.
  2. In your workspace, open the Tags menu.
  3. Create a new tag. In Tag Configuration, select Google Analytics: GA4 Event and enter your GA4 Measurement ID.
  4. As the Event Name, enter view_promotion.



  5. Under More Settings > Ecommerce, enable Send Ecommerce data.
  6. For Data Source, select Data Layer.



  7. Configure a trigger for the GA4 event. Create a new trigger, select Custom Event as the trigger type, and enter view_promotion as the Event name.



  8. Save the tag configuration and publish your container changes.

Full documentation can be found on the following website.

Popular resources