Direct integration with Google Analytics 4
Table of contents
In short
Important Notice: This guide is only applicable if you are not using Google Tag Manager and GA4 directly is integrated on your website. If you have the Google Tag Manager in use, please see the section Tracking with GTM .
In the section Analytics Connection under the item A/B Testing Options you must select the "Google Analytics 4" setting.
Step-by-Step Tutorial
Direct integration with Google Analytics 4
Setup of the custom dimension in GA4
1. Open your GA4 settings and select the "Custom Dimensions" menu item
2. Create a new custom dimension
Choose a dimension name e.g. "Varify_abTest_event_scope" and select the event parameter "varify_abTestShort". Make sure that you specify the event parameter in the correct notation.
Important note: You will be able to select the event parameter "varify_abTestShort" under the custom dimension only after GA4 has received the first test data from you. After that it can take up to 24 hours until you find the value in the dropdown.
Then save your dimension.
Viewing the A/B test data in GA4
You can analyze the data of the variations of your A/B test in GA4 with the Explorative Data Analysis. You can find more information here: Evaluation of results in GA4