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

1

Retrieve your GA4 Measurement ID

The Measurement ID is the unique identifier of your GA4 data stream (format: G-XXXXXXX).

To find it:

  1. In Google Analytics, go to Admin > Property > Data Streams > Web.

  2. Select your data stream.

  3. Copy the Measurement ID from the top right. More info here

2

Configure the integration in AB Tasty

  1. In AB Tasty, go to Integrations > Integration Hub.

  2. Under PUSH, select Google Analytics 4 and click Create.

  3. Name your connector (to identify it easily).

  4. Enter your Measurement ID and click Connect.

  5. (Optional) Enter your API secret if you use Measurement Protocol. More info here.

  6. (Optional) Enter your Property ID for automatic audience creation. More info here.

  7. (Optional) Check the box to add this connector automatically to all future campaigns.

  8. Click Save.

  9. Update your AB Tasty tag to make changes live.

If you checked the auto-apply option, the connector will appear in the Advanced step of all future campaigns. It won’t apply retroactively to existing campaigns. You can always add it manually per campaign in Advanced options.

3

GA4 custom dimension setup

To access AB Tasty event parameters in GA4 reports, create custom dimensions for abtasty_campaign and abtasty_variation.

  1. In GA4, go to Admin > Property > Custom definitions.

  2. Under Custom dimensions, click Create custom dimension.

  3. 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.

  4. Click Save.

4

Check integration

Using browser console

  1. Join a campaign where the GA4 integration is enabled.

  2. Open your browser console > Network tab.

  3. Search for your GA4 Measurement ID.

  4. Check payloads containing the event abtasty and 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?