Skip to content

GA4 integration

Ask your account manager to enable the GA4 integration for your account. Once it is on, Shuttlebase sends an event to your GA4 property every time a visitor is assigned to an experiment variant, so you can analyze experiment exposure alongside the rest of your analytics.

The event is named abtest_user_bucketed and carries four parameters:

ParameterContains
abtest_exp_idExperiment ID
abtest_exp_nameExperiment name
abtest_var_idVariant ID
abtest_var_nameVariant name

GA4 collects every parameter on the event as soon as the integration is on, but you’ll have to go through a one-time setup in order to see the figures inside Google Analytics, each dimension applies from the moment you create it onward.

  1. In Google Analytics, open Admin, then Data display, then Custom definitions.
  2. Click Create custom dimension.
  3. Set Scope to Event.
  4. Fill in the dimension name and event parameter from the table below.
  5. Repeat for each of the four parameters.
Dimension nameScopeEvent parameter
Experiment NameEventabtest_exp_name
Variant NameEventabtest_var_name
Experiment IDEventabtest_exp_id
Variant IDEventabtest_var_id

Allow up to 24 hours for the dimensions to begin populating. After that you can break reports down by experiment and variant. The quickest place to start is Explore: build a free-form exploration with abtest_exp_name and abtest_var_name as rows and your own metrics as columns.

If your GA4 property exports to BigQuery, no setup is needed. Every parameter on the event is written to the export as it arrives — including data collected before you create the custom dimensions — and is queryable from the event_params field.