With the process described in this article, you can capitalize on the dataLayer integration available in your Explore account to send events into your GA4 property whenever a user views experiment variations.
Step 1: Activate the dataLayer integration in your Explore account
Step 1.1: Click on the Website name in your Explore account
Step 1.2: Click on the Integrations button in the drop down menu
Step 1.3: Add in dataLayer under the DataLayer variable name and click Enable
Once this is done, you will begin seeing Omniconvert events in the dataLayer whenever the user sees a variation of an Explore Experiment.
As you can see in the above screenshot, the Event Name is “Omniconvert”.
Every such event also has the mktzExperiment and mktzVariation variables. These variables are populated in the following way:
mktzExperiment: “[ExperimentID]Experiment Name”
mktzVariation: “[VariationID]Variation Name”
In order to send the above events into GA4, these values can be picked up, and a variety of methods can then be used.
The most popular method is most likely Google Tag Manager (GTM):
Step 2: Send events into GA4 via Google Tag Manager
Step 2.1: Create DataLayer Variables for mktzExperiment and mktzVariation
Step 2.2: Create a custom event trigger for Omniconvert events
Step 2.3: Create a GA4 Event Tag, including the dataLayer variables previously created as event parameters
Step 3: Publish the GTM Workspace:
Step 4: Define “exp_name” and “exp_var” as custom dimensions in Google Analytics
Step 4.1: Go to “Admin” in your GA4 property
Step 4.2: Go to “Custom definitions”
Step 4.3: Click “Create custom dimension” and define it as below
Step 4.4: Click “Save” and do the same for “exp_var”
Step 5: Create a visualization, either in Looker Studio or in GA4 Explorations
Through this step, you can see the results after some data has been recorded.
The basic Exploration for this type of report would be something along these lines:
Or a more detailed type of report with this configuration:
Alternatively, the exp_name and exp_var parameters can also be used to create segments in GA4, used to identify only those users or sessions that have seen one or more specific variations.
IMPORTANT NOTE!!! If you perform all of the above implementations, while also having the GA Integration active in your Integrations section in Explore, you will be effectively sending each variation event into GA4 twice, once through the Explore Integration and once through the dataLayer and GTM integrations.h the Explore Integration and once through the dataLayer and GTM integrations.