Google Analytics Split Test Configuration
Google Analytics 4 (GA4) split test events are now available on all paid AB Split Test plans.
What data is sent
We send an event to GA4 whenever a test is first seen (a visit) and when a test user reaches its goal (conversion)
gtag(‘event’, ‘ab_split_test’, {
‘test_name’: Your Test name,
‘test_variation’: Your variation Name,
‘test_event’: ‘visit’ or ‘conversion’
});
Example Data
After activating AB Split test and creating a test, you will see the “ab_split_test”+” event showing up in your realtime dashboard.

‘ab_split_test’ Custom event type
In the above screenshot you see the “test_name”, test_event” and “test_variation” data. You need to follow the below steps to capture that information and enable in depth reporting on Google Analytics 4.
How to configure custom events in GA4
Go to settings
Go to settings

Click on Custom definitions

Click on Create custom dimension

create first parameter test_name

Whatever name you like for test_name

Select Event parameter
test_name as the event parameter

Click on Save

Click on Create custom dimension

Click on Dimension name

enter test_variation

Click on Event parameter

enter test_variation

Click on Save

Click on Create custom dimension

Click on Dimension name

enter test_event

Click on Event parameter

Enter test_event

Click on Save

Go home and create reports as you li

Click on test_name
