Learn how to set up granular tracking in Google Tag Manager (GTM) and check the results in Google Analytics 4 (GA4).
If you decided to measure the performance of your Aqurate Personalize and want a deeper overview, in this article you’ll learn how to set up granular tracking in Google Tag Manager (GTM) and check the results in Google Analytics 4 (GA4).
Expected duration: 30 minutes ⏳
Technical complexity: medium
➡️ Prerequisites
Track click events on the product recommendation widgets
This event helps you track the clicks visitors make on any of the product recommendation widgets installed on your shop. In order to correctly track the events, we suggest you configure one event for each type of product recommendation widget displayed on your shop (substitutes/cross-sell).
💡 There are 3 main steps you will go through:
- Set up the Tag
- Set up the Trigger
- Get your unique Click ID code from your shop
Step 1 - Set up the Tag
- Go to “Tags” menu and click on the “New” button
- Add a relevant event name. For example, “GA Event – Click Substitutes”
- Click on “Tag Configuration” and choose “Google Analytics: GA4 Event”
- Enter the Measurement ID in the Configuration Tag field
- Enter the Event Name. For example, “click_substitutes” - this is the name you will then see in GA4
Step 2 - Set up the Trigger
- Click on “Triggering” and choose to add a new trigger from the upper right plus icon
- Add a relevant name for this trigger (“click substitutes”)
- Click on “Trigger Configuration” and choose Click -> All elements
- Select the trigger to fire on “Some clicks”
- Select “Click ID” from the dropdown menu
- Select “equals” from the dropdown menu
- In the empty field, enter the specific ID Code you are getting in Step 3 - Get your unique Click ID code from your shop
- Save the newly added Tag and Trigger and you’re done!
Step 3 - Get your unique Click ID code from your shop
Enter a page on your shop where product recommendations widgets are displayed. Right-click on the widget, then click “Inspect”. Now you’ll need to find a specific ID code, at the very top of the widget <div> line, as in the picture below:
⚠️ Please note that in your case, the value will probably be different from our example (“aqurateListSubstitutes”).
💡 Follow the steps above for all product recommendation widgets you displayed on your shop, as long as they have different IDs.
Check the events in GA4
After you finished configuring these events, you can inspect various metrics in GA4: the number of clicks for each event, the total users that clicked on recommendations, the average number of clicks a user made, and the revenue each event has generated.
Follow these steps to access the Events reports:
- Access your GA4 account
- Go to “Reports”, on the left side menu
- Go to “Engagement”, then “Events”
- Find the events name you previously created for Aqurate Recommendations (e.g. click_substitutes / click_cross-sell)
Curious about how Aqurate Personalize is performing on your shop? Learn how to set up an A/B test to measure its efficiency here.
Questions about getting started? We're excited to help: support@aqurate.ai