Setting up Google Analytics 4 integration with AB Tasty
Google Analytics is a service that helps you measure traffic and engagement across your websites and apps. Google Analytics 4 (GA4) is the latest version of the platform.
AB Tasty Google Analytics 4 integration lets you send AB Tasty campaign data directly to your GA4 dashboard. AB Tasty campaign data is pushed to GA4 as an event with the following parameters:
- Event name: - abtasty
- Event parameter - abtasty_campaign: contains the campaign ID and name, formatted as- [campaign_id] campaign_name
- Event parameter - abtasty_variation: contains the variation ID and name, formatted as- [variation_id] variation_name
Prerequisites
- An AB Tasty account 
- A GA4 account 
Setting up Google Analytics 4 integration
Retrieve your GA4 Measurement ID
The Measurement ID is the unique identifier of your GA4 data stream (format: G-XXXXXXX).
To find it:
- In Google Analytics, go to Admin > Property > Data Streams > Web. 
- Select your data stream. 
- Copy the Measurement ID from the top right. More info here 
Configure the integration in AB Tasty
- In AB Tasty, go to Integrations > Integration Hub. 
- Under PUSH, select Google Analytics 4 and click Create. 
- Name your connector (to identify it easily). 
- Enter your Measurement ID and click Connect. 
- (Optional) Enter your API secret if you use Measurement Protocol. More info here. 
- (Optional) Enter your Property ID for automatic audience creation. More info here. 
- (Optional) Check the box to add this connector automatically to all future campaigns. 
- Click Save. 
- Update your AB Tasty tag to make changes live. 
GA4 custom dimension setup
To access AB Tasty event parameters in GA4 reports, create custom dimensions for abtasty_campaign and abtasty_variation.
- In GA4, go to Admin > Property > Custom definitions. 
- Under Custom dimensions, click Create custom dimension. 
- Fill in: - Dimension name: unique name (use underscores/spaces, not hyphens). 
- Scope: select the desired scope. 
- Description: meaningful description. 
- Event parameter/User property: choose the data source. 
 
- Click Save. 

Check integration
Using browser console
- Join a campaign where the GA4 integration is enabled. 
- Open your browser console > Network tab. 
- Search for your GA4 Measurement ID. 
- Check payloads containing the event - abtastyand its parameters. If you see them, the integration is working.

In GA4 dashboard
- Real-time report : shows currently received AB Tasty events. 
- Events report : shows processed events after collection. 

Learn more
Check out the following videos and articles to learn more on how to integrate GA4 with AB Tasty:
Last updated
Was this helpful?

