LogoLogo
PlatformsPricingRessources
  • Home
  • Onboarding
  • User documentation
  • Release Notes
  • Help Center
  • User documentation
  • Dashboard
    • Global Experience Dashboard discovery
    • How to filter the Global Experience Dashboard
    • How to customize your Global Experience Dashboard
    • Uplift card
  • Web Experimentation and Personalization
    • Campaign creation and dashboard
      • Types of campaigns
        • Choosing the right type of campaign with Ally, our assistant
      • How to create a campaign
        • Experimentations
          • How to create an A/B Test
          • How to create a Multipage Test
          • How to create a Split Test/Test by Redirection
          • How to create an A/A Test
          • How to create a Patch / Multipage Patch
          • How to create a Multivariate Test
        • Personalizations
          • How to create a Multi-Experience Personalization
          • How to create a Multipage Personalization
          • How to create a Simple Personalization
      • Campaign duplication
        • How to duplicate a campaign
      • How to set-up Main Information step
      • Understanding campaign duration
      • Campaign loading (deferred/ instant)
      • The "Comment" section of the campaign creation flow
      • Campaign statuses
      • How to exclude IP addresses from your campaigns
      • How to use MDE Calculator
      • Campaigns Dashboard
      • Campaign Scheduler
      • Mutually Exclusive Experiments
      • How to use Campaign Prioritization
        • Prioritization of Personalizations
    • Editors and Widget
      • How to create and edit content in the visual editor
      • How to use our Visual Editor - Interactive demo
      • Discovering the Visual Editor
      • Visual editor - History and review of modifications
      • Code Editor
      • Using the Editor Copilot
      • Prompt Inspiration library for Visual Editor Copilot
      • How to create an Action Tracker in the editor
      • How to use redirection option
      • How to create trackers in the editor
      • Widgets
        • Widgets configuration in the visual editor
        • AB Tasty prebuilt Widgets
          • Action Button Widget
          • Banner Widget
          • Before-After Image Widget
          • CSAT Widget
          • Celebrate Widget
          • Countdown widget
          • Drawer Widget
          • Dwell Time Tracking Widget
          • Element Visible Tracking Widget
          • Iframe Click Tracking Widget
          • IFrame Widget
          • Image Pop-in Widget
          • NPS® (Net Promoter Score) Widget
          • Progress Bar Widget
          • Scratch card Widget
          • Scroll Rate Tracking Widget
          • Search & Replace Widget
          • Simple Popin Widget
          • Snowflake Animation Widget
          • Social proof Widget
          • Social Sharing Widget
          • Spotlight Widget
          • Sticky Element Widget
          • Tooltip Widget
          • Video Pop-in Widget
          • Virtual Click Widget
        • Custom widget
          • Custom Widgets: List of propname Fields and Their Specificities
          • Custom widgets: Global usage and information
        • Custom code widget
      • Chrome extension
      • Shadow DOMs & iFrames
        • Understanding Shadow DOM
        • How to edit Shadow DOM in the visual editor
        • Understanding iframes
        • How to edit Iframes in the visual editor
    • Goals step
    • Targeting step
      • How to set up a campaign Targeting
      • How to create a Segment (Who section)
        • Segments Recommendations
        • Inspiration with Engagement Level segmentation
      • How to define Targeted Pages (Where section)
      • How to create a Trigger (How section)
        • Geolocation criterion
        • Device criterion
        • Screen size criterion
        • IP address criterion
        • Weather criterion
        • Landing Page criterion
        • Source & source type criterion
        • Previous Page criterion
        • URL Parameter criterion
        • Minimum Pages viewed criterion
        • Visited Pages criterion
        • Same day visit criterion
        • Browser language criterion
        • Browser criterion
        • Adblocker criterion
        • JS Variable criterion
        • Code-based criterion
        • CSS Selector criterion
        • DataLayer criterion
        • Visitor attributes criterion
      • How to define a Targeting Frequency (When section)
      • How to set-up targeting verifications
      • How to use the replicate targeting option
      • How to use URL operators to build URL patterns
    • Traffic allocation step
      • Campaign flow: Traffic Allocation step
      • Dynamic allocation
      • Even allocation
    • Advanced Options step
      • Sequential Testing Alerts
    • QA step
      • QA Mode & QA Assistant
        • How to use the QA mode
        • How to use the QA Assistant on desktop
        • How to use the QA Assistant on mobile
      • How to use the browser console to QA a campaign
  • Feature Experimentation & Roll-Out
    • How to create server-side A/B tests
    • How to create feature toggles and manage rollouts
    • How to create server-side personalization
    • FE&R Glossary
    • Managing Flags
    • Managing Context Keys
  • Recommendations & Merchandising
    • Recommendations
      • Web recommendation
        • Most popular recommendation filters
        • Variables by placement
        • Placement
        • Products groups
        • Filters
        • Exceptions
        • Options
      • Recommendation Banner
        • Recommendation banner with tag and custom JS
          • Adding Recos Tag to a website
          • Enriching Recommendations Banner HTML to send events to DataLayer through Recos Tag
          • Setting up GTM to send Recos Datalayer Events
          • Connect Tag Assistant from GTM
          • Check that the events arrive correctly in GA
          • Check the display of recommendations
          • Retrieving recos products from a RECO_ID with Recos Tag
        • Deploying a Recommendations Banner Custom Widget
        • Retrieving a Recommendation RECO_ID
        • How to push recommendations with Adobe Campaign
        • How to build recommendations (recommendation builder variant)
      • Mail recommendations
        • How to push recommendations into your Brevo emails
        • Brevo Feed
        • Products groups
        • Filters
        • Products highlights
        • Exceptions
        • Options
        • Parameters
        • Preview
        • Most popular recommendation filters
    • Merchandising
      • Introduction
      • Category
      • Products groups
      • Filters
      • Products highlights
      • Exceptions
      • Result to refine
      • How to deploy a merchandised product list through Algolia
    • Recos & Merch analytics
      • How to track performances
      • Recos Analytics Event format
      • The impact of BigQuery exports in terms of cost
      • Setup analytics retrieve events with Recos Tag
      • Key indicators over the period & Segment
      • Overview data
      • Evolution metrics
    • Recos & Merch API
      • Getting a product list
      • Accessing Recos API (endpoint)
      • Accessing Recommendations API (only specific accounts)
    • Recos & Merch account management
      • How to manage users in Recommandation & Merchandising module
      • How to manage roles
      • How to manage synchronisations
      • How to manage invoices
    • Security and GDPR
      • Procedure for Reporting Personal Data Breaches
      • Backup Policy
      • Security Configuration of Our Servers
      • PSSI
    • Recos & Merch Algorythms
      • How to manage algorithms
      • How to create your algorithms
      • Better understanding
      • Default algorithms
      • Data used to train Algorithms
    • Recos & Merch integrations
      • Integrations with Recos & Merch
      • Brevo Integration
      • Analytic integrations
        • Google Analytics integration
        • Matomo integration
        • Random data integration
      • Recos & Merch CMS integration
        • PrestaShop integration
        • Shopify Integration
        • Custom integration
  • Emotions AI
    • Understand EmotionsAI
      • EmotionsAI in a nutshell
      • Leverage EmotionsAI to get more value from A/B tests
      • Leverage EmotionsAI to get high-potential A/B test ideas
    • First steps with EmotionsAI
      • Onboarding
      • EmotionsAI functioning
      • Navigating the interface
      • FAQ about EmotionsAI
    • Using EmotionsAI
      • How to activate EmotionsAI features
      • EmotionsAI Website Mapping configuration
      • EmotionsAI Journey Analysis
      • EmotionsAI Page Analysis
      • Target EmotionsAI segments
      • QA a campaign on Desktop with EmotionsAI Chrome Extension
      • Use EmotionsAI targeting on hard-coded personalizations
      • Usage of EmotionsAI in some Push integrations
    • Read EmotionsAI campaigns’ report
  • Library
    • How to set-up your libraries
    • Widget library
      • Creating and managing Widgets
      • How to create a preset Widget
      • How to create a Custom Widget
        • How to configure Custom Widgets Custom Forms
      • How to declare your Widget Theme
    • Assets Library
    • Trackers library
      • Action Trackers
        • How to create and manage Action Trackers
      • How to create a Custom Tracker with custom JavaScript code
      • How to create a Custom Tracker via the DataLayer
    • Creating and managing Segments
      • List of Segment criteria
        • CSAT criterion (Customer Satisfaction)
        • NPS® criterion (Customer Satisfaction)
        • Engagement Level criterion
        • EmotionsAI criterion
        • Content Interest criterion
        • Page interest criterion
        • Device criterion
        • Cookie criterion
        • New/Returning visitors criterion
        • Campaign Exposure criterion
        • Number of sessions criterion
        • Day(s) Since Last Session criterion
        • Day(s) Since First Session criterion
        • Action Tracker criterion
        • Cart Abandonment criterion
        • Last Purchase criterion
        • Purchase Frequency criterion
        • Geolocation criterion
        • DMP, CDP, rd party tool criterion
      • Segments Library - Metrics
    • Creating and managing Triggers
      • List of Trigger criteria
    • Creating and managing Saved Pages
  • Integrations
    • Integrations general information
    • Push integrations
      • Adobe Analytics
      • Air
      • Amplitude (analytics browser)
      • Amplitude
      • AT Internet Smart Tag
      • Contentsquare
      • Google Analytics (Audience creation)
      • Google Analytics (UA)
      • Google Analytics (event only)
      • FullStory
      • Heap Analytics
      • Hubspot
      • Matomo
      • Mixpanel
      • Piano Analytics
      • SalesForce Marketing Cloud (Push)
      • Segment
      • Tealium
    • Pull integrations
      • Air
      • Commander Act
      • EmotionsAI
      • Fullstory
      • Google Analytics
      • Heap Analytics
      • Mixpanel
      • mParticle
      • Piano Analytics (Pull)
      • SalesForce Marketing Cloud (Pull)
      • Segment
      • Tealium : Import Audiences
      • Weborama
    • Other integrations
      • Productivity
        • Microsoft Dynamics Commerce
        • Setting up Microsoft Clarity Integration with AB Tasty
        • Didomi
        • How to Set Up the AB Tasty Connector with Notion
        • How to connect AB Tasty to Google Sheets
        • Connect your Slack Workspace to AB Tasty
      • Data Warehouse
        • Data Warehouse integrations: General information
        • Big Query - Daily exports from AB Tasty to Big Query
        • Snowflake - Daily exports from AB Tasty to Snowflake
        • Redshift - Daily exports from AB Tasty to Redshift
    • Custom integrations
      • Universal Data Connector
      • Custom Integration Connector with a rd party tool (Push data)
      • AB Tasty public API
  • Reporting & Performances
    • Data Explorer
      • How to analyze page traffic via Data Explorer
      • How to get metrics breakdown by multiple dimensions via Data Explorer
      • How to get a list of recent hits via Data Explorer
      • Data Explorer - List of Metrics and Dimensions
    • ROI dashboard
    • Performance Center
      • List of Performance Guidelines
    • Reporting
      • Campaign reporting
        • Reporting Copilot
        • Analysis Copilot
      • Data & reports: generalities and definitions
      • AB Tasty reports Metrics
        • Live hits of the reporting
        • Metrics based on tracking widgets
        • Navigation metrics
        • Metrics based on pageviews
        • Metrics based on clicks
        • Metrics based on transactions
      • Reporting Filters
        • General Reporting filters
        • EmotionsAI Reporting filter templates
      • Using the NPS®️ report
        • How does Feedback Analysis Copilot work
      • Sample ratio mismatch
      • Refresh reporting data using Refresh On Demand
      • Data export from the reporting
      • Frequentist Analysis mode
      • Understand the statistics behind your Reports
        • Statistics for the reporting
        • Statistical metrics
        • Avoiding Pitfalls in AOV Analysis for Conversion Rate optimization
        • Conversion mechanisms & concepts
        • Reporting Readiness
  • Account
    • Tag integration
      • All About Tags
      • How to implement the Generic Tag
        • AB Tasty hosted tag implementation
        • Tag Domain Delegation
          • Tag domain delegation implementation
      • How-to QA the Generic Tag
      • How to implement the Generic Tag via Google Tag Manager
      • How-to join the Next tag program
      • AB Tasty integration with Shopify
        • Understanding Shopify App features
        • How to implement the AB Tasty tag via Shopify
        • How to set-up Shopify Custom Pixel App
      • AB Tasty tag compilation
      • How the AB Tasty tag is designed to handle Single Page Apps (SPA)
    • Technical implementation
      • How to choose your cookies deposit method
      • How to declare my Account Domain?
      • JavaScript in AB Tasty
        • How to configure JavaScript
        • Javascript files execution
        • Campaign JavaScript Execution
      • How to configure jQuery loading
      • How to integrate Product hits
      • Product Hits integration principles
        • How to set-up segment criteria "Content Interest" and "Cart Abandonment"
    • Transaction Tag integration
      • How to implement the Transaction tag
      • How to create a Transaction Tracker via DataLayer
      • How to use the Transaction Tag Generator
      • How to QA the Transaction tag
    • Performance and security
      • How to manage visitor identity
      • How to deactivate AB Tasty
      • Consent policy - cookies, storage and privacy
    • Account management
      • The organization page
      • Subscription page
      • How to manage users?
Powered by GitBook
LogoLogo

AB Tasty Website

  • Home page AB Tasty
  • Blog
  • Sample size calculator
  • Release note

AB Tasty Plateform

  • Login

© Copyright 2025 AB Tasty, Inc, All rights reserved

On this page
  • Google Analytics 4 & AB Tasty
  • Events
  • Audiences
  • Integration
  • GA4 custom dimension setup
  • Integration check
  • Implementing EmotionsAI Audience
  • Requirements
  • Sending data
  • External resources

Was this helpful?

Edit on GitLab
Export as PDF
  1. Integrations
  2. Push integrations

Google Analytics (Audience creation)

PreviousContentsquareNextGoogle Analytics (UA)

Last updated 10 days ago

Was this helpful?

Google Analytics is an analytics service that enables you to measure traffic and engagement across your websites and apps. Google Analytics 4 is the latest version of Google Analytics.

The Google Analytics 4 integration allows you to send the AB Tasty campaign data to your Google Analytics property.

This integration includes deeper interaction with Google Analytics 4 allowing you to better analyze data (i.e. audience creation) whereas the other only sends events.

If you use this connector, there is no need to use the . This connector sends an abtasty event, as the does. Using both connectors within the same campaign will duplicate the events sent to Google Analytics.

Google Analytics 4 & AB Tasty

This integration sends an event to Google Analytics 4 and also automatically creates audiences.

Events

AB Tasty campaign data is sent as an event with event parameters:

  • Event name is “abtasty”

  • Event parameter abtasty_campaign contains the Campaign ID and Campaign Name formatted as [campaign_id] campaign_name

  • Event parameter abtasty_variation contains the Variation ID and Variation Name formatted as [variation_id] variation_name

  • A third event parameter which contains the Campaign ID and Variation ID formatted as ABT-campaign_id-variation_id (this parameter is used to create the GA4 audiences). If your test ID is lower than 1100190 (test launched before November 2023) , the name is Experience_Variant_ID. Otherwise, the name is exp_variant_string

Audiences

Audiences in Google Analytics 4 will allow you to build custom templates to analyze the result of your campaign and compare the results of each variation.

.

What audiences are automatically created

AB Tasty will create one audience for each variation of your AB Tasty campaigns.

For each variation of an AB Tasty campaign, an Experience Variant ID is assigned and is sent to Google Analytics 4. This Experience Variant ID is used to create an audience that will include the users that have been assigned to each variation. This Experience Variant ID will also be exported to BigQuery if you have an active connection.

Audiences created by AB Tasty are named as follows: Campaign_name - Variation_name

How it works

  • At the launch of the campaign (i.e. play button), audiences corresponding to each variation are automatically created in Google Analytics 4.

  • During the campaign run, data is sent to Google Analytics 4 and audiences are collecting the data.

  • When the campaign is archived, audiences are automatically deleted on Google Analytics 4 so you don't reach the limit. The Experience Variant ID is not deleted and can be retrieved in Explore reports and BigQuery exports.

Integration

Before setting up the Google Analytics 4 (Audience creation) integration within AB Tasty, you will need to find your Google Analytics 4 Measurement ID and Property ID

The Google Analytics 4 Measurement ID is the unique identifier of the property.

Now that you have your Measurement ID and Property ID, you can set up the integration in AB Tasty:

  1. Access Integrations > Integration Hub.

  2. Search for and select Google Analytics 4 (Audience creation).

  3. Click Setup connector.

  4. Give a name to your connector so you can easily retrieve it.

  5. Input the Measurement ID and Property ID.

  6. Click Authorize and Create.

  7. Fill in the Property ID and Measurement ID fields.

  8. [Optional] Check the box to automatically add the connector to your future campaigns.

  9. Click Save and create connector. You'll be redirected to the AB Tasty platform.

If you have checked the box, the connector will be automatically added to the Advanced step of your future campaigns. However, it is not applied retroactively to previously created campaigns.

You can also modify this behavior from the Integration hub, by editing your connector configuration (check or uncheck box).

You must update the AB Tasty tag to make your changes live.

GA4 custom dimension setup

Once you have the AB Tasty events flowing into your GA4 property, you have to set up custom dimensions for the abtasty_campaign and abtasty_variation event parameters so you can easily access them in the GA4 reports.

To create a custom dimension in GA4:

  1. Click Admin.

  2. In the Properties column, click Custom definitions.

  3. In the Custom dimensions tab, click Create custom dimensions.

  4. Complete the following information:

    • Dimension name: Enter a unique name for the dimension. You can't use hyphens in the name, but you can use underscores and spaces instead.

    • Scope: Choose a scope for the custom dimension.

    • Description: Enter a memorable description for the custom dimension.

    • Event parameter/User property: Choose the source of data.

  5. Click Save.

Here are examples of how you can set up the custom dimension for the AB Tasty event parameters:

Integration check

Once you have set up the Google Analytics 4 integration and activated it in an AB Tasty campaign, you may want to verify that data is sent correctly to your Google Analytics property.

To QA the integration, you must be affected by a campaign where the integration has been configured.

  1. Open the console and click the Network tab

  2. In the search bar, type in your Google Analytics 4 Measurement ID (the one you used to set up the integration). You will normally see several lines containing your Measurement ID, which corresponds to the different data that is sent to Google Analytics (not only from AB Tasty but also by the Google Analytics tag)

You can also see the AB Tasty campaign data within Google Analytics 4:

Implementing EmotionsAI Audience

AB Tasty gives you the possibility to export the EmotionsAI audience of the visitors by the time we push the campaign hit. Thanks to this information, you will be able to segment all visitors exposed to an AB Tasty campaign.

This is currently part of an EA program. Please contact your CSM to benefit from it.

Requirements

In AB tasty

Without this activation, we are not able to send the EmotionsAI audience to GA4. For more information on how to activate EmotionsAI, please contact your CSM.

In the GA4 dashboard

The campaign hit we send by default is included inside an event called “abtasty”. We want to send the EmotionsAI audience at the same time as this event, but it’s linked to a user.

That’s why you need to create a custom dimension as a user to retrieve this information.

  1. Click Admin.

  2. In the Properties column, click Custom definitions.

  3. In the Custom dimensions tab, click Create custom dimensions.

  4. Complete the following information: Dimension name: Enter a unique name for the dimension. You can't use hyphens in the name, but you can use underscores and spaces instead. We recommend entering “Audience Emotion AI” Scope: Choose User Description: Enter a memorable description for the custom dimension. Event parameter/User property: Please enter “audience_emotion_ai”

  5. Click Save.

If your custom dimension is not set correctly, even if we’re sending the EmotionsAI audience, you won’t be able to retrieve it. We’re sending this information as a user property.

Sending data

Please refer to the Integration check section to check whether data has been sent correctly or not. For the EmotionsAI audience specifically, information is available inside up.audience_emotion_ai

Sometimes, the EmotionsAI audience is not set before the sending of the AB Tasty campaign hit. That’s why, even if you have activated the EmotionsAI audience, the value will be empty. Indeed, when a new visitor is coming to your website, the campaign hit is sent once AB Tasty is triggered; while 30 seconds are necessary to detect to which EmotionsAI audience the visitor belongs.

External resources

Please consult these two videos that explain how to integrate GA4 with AB tasty:

When creating an AB Tasty campaign, the Google Analytics 4 (Audience creation) push connector should be setup. More information on how to link a campaign is can be found in the article.

More information on the audience workflow .

The Google Analytics 4 Measurement ID is the unique identifier of the data stream that sends data to your Google Analytics property. The Measurement ID uses the format G-XXXXXXX. To retrieve your GA Measurement ID, access the Google Analytics interface and click Admin > Property > Data Streams > Web, and choose your data stream. GA Measurement ID appears at the upper right. More info .

To retrieve your GA Property ID, access the Google Analytics interface and click Admin > Property > Property Settings. GA Property ID appears at the upper right.

You are redirected to a Google auth workflow. You need to select a Google account that has edit access to the GA4 property you want to connect to AB Tasty, then click Allow. This will allow AB Tasty to automatically create audiences in GA4.

If you left the box unchecked (default behavior), your connector won't be added automatically. You can still decide to send campaign data to your connector by selecting it from the Advanced options step of your campaign. More information on how to link a campaign is can be found in the article.

Capture_d_e_cran_2023-05-30_a__15.18.28.png
Capture_d_e_cran_2023-05-30_a__15.18.41.png

Look for the line that contains the AB Tasty event and event parameters in the payload. If you find it, it means that AB Tasty campaign data is sent to Google Analytics.

In the Real-Time report (only the events that are currently received are displayed here)

In the event report (you will need to wait for the events to be collected and processed by Google Analytics).

You must activate EmotionsAI from your AB tasty account .

"Google Analytics 4 (event only)" integration
"Google Analytics 4 (event only)" connector
"Google Analytics 4 (event only)" connector
More information on Google Analytics 4 audiences in the dedicated article
Advanced Options Step
here
here
Advanced Options Step
here
New user (how to create with your measurementID)
Current User (only how to integrate EmotionAI Audience)