Okendo's integration with Google Tag Manager (GTM) allows you to create tags, triggers, and variables to capture events in analytics platforms, specifically Google Analytics 4 (GA4).
You'll gain direct insights into the impact of customer reviews and customer-generated content on key metrics such as conversion rates, average order values, and revenue. You can also see how many transactions result from your customers' interactions with your reviews widget.
βοΈGoogle Tag Manager integration requires the Widget Plus reviews widget. Please contact customer support for help migrating to Widget Plus. Learn more about Widget Plus.
π‘ The Google Tag Manager integration currently works with the following products: Reviews.
In this article, you will learn about;
Before you begin
π‘ Learn about integrating Google Analytics with Global Site Tag (gtag.js).
The Okendo + GTM integration uses your existing Google Tag Manager setup with Shopify. Click the button below to learn more.
β
Enabling Google Tag Manager support in Okendo
From your admin panel, go to Settings > Widgets > General
Select Google Tag Manager (gtm.js - Advanced Implementations) in the Google Analytics Provider drop-down list.
Click Save.
β
β
Setting up Google Tag Manager for Google Analytics
You'll need to set up the following configuration in your Google Tag Manager container to support the collection of events in Google Analytics 4.
Google Tag setup
Create a new Google Tag called GA4 Tag
. Find your GA4 Measurement ID by following these instructions.
Triggers setup
1. Go to Workspace > Triggers.
2. Click New under Triggers.
3. Click Trigger Configuration and select Custom Event.
4. Set the Event name to ^okendo_.*
and enable Use regex matching.
5. Select All Custom Events.
6. Name the trigger Okendo Event
and click Save.
Variable Setup
1. Go to Workspace > Variables.
2. Click New under User-Defined Variables.
3. Click Variable Configuration and select Data Layer Variable.
4. Create a new variable for each of the variables shown in the table below with the specified naming:
Variable Name | Data Layer Variable Name |
Event Label | event_label |
Search Query | search_query |
Filter Value | filter_value |
Product Label | product_label |
Timer Interval | timer_interval_msec |
Event Type | event_type |
Okendo Product | okendo_product |
5. Click Save after you have configured each variable.
Tags setup
1. Navigate to Tags (Workspace > Tags).
2. Click New under Tags.
3. Click Tag Configuration and select Google Analytics: GA4 Event.
4. Set the Measurement ID to your GA4 Measurement ID.
5. Set the Event Name to {{Event}}
.
6. Click Add Row under Event Parameters and add the following Event Parameters:
Parameter Name | Value |
event_label | {{Event Label}} |
search_query | {{Search Query}} |
filter_value | {{Filter Value}} |
product_label | {{Product Label}} |
event_category | Okendo |
timer_interval_msec | {{Timer Interval}} |
event_type | {{Event Type}} |
okendo_product | {{Okendo Product}} |
7. Click Triggering and select Okendo Event.
8. Name the tag Okendo - GA4 Event
and click Save.
β οΈ Make sure to publish your Workspace Changes once you are ready.
Viewing captured events
An interaction event happens whenever a customer engages with the review widgets in some way, including:
Clicks Show More reviews
Filters or sorts through your reviews
Clicks the star icons at the top of the product or collection page
Clicks an image or video to enlarge it
Clicks up-vote or down-vote on a review
Google Analytics
You can view captured events for Okendo widgets directly in Google Analytics when viewing your property in the Google Analytics dashboard.
In Google Analytics, go to Reports > Engagement > Events
Search for okendo_
in the search box and press Enter.