Send Feature Experimentation Event to Google Analytics
PreviousGoogle Analytics - Feature Experimentation IntegrationNextImport Google Analytics Audience to Feature Experimentation
Last updated
Was this helpful?
The AB Tasty > GA4 Push Connector enables you to automatically send server-side experiment data from AB Tasty’s Feature Experimentation platform to Google Analytics 4 (GA4). This integration allows you to analyse how specific feature flags and variations impact your key metrics directly within GA4, without requiring client-side tracking.
Once configured, the connector pushes campaign and variation identifiers as custom events in GA4 whenever a decision is made for a visitor. This ensures consistent experiment tracking across both platforms, enabling more unified reporting and deeper behavioural insights.
Visitor ID requirement To make this integration work, you must pass the correct GA4 user identifier when calling the Decision API.
What you must do
• Set a user ID in GA4 if you use your own identifier, for example:
gtag('set', { 'user_id': '12345' });
• Or retrieve the GA4 client ID using:
gtag('get', 'G-XXXXXXX', 'client_id', (clientId) => { console.log('Client ID:', clientId); });
• Call the Decision API with this same visitor ID, otherwise, the hit won’t be sent to the third party

Create a GA4 push instance
Enter API secret and Measurement ID
Measurement ID : It is the unique ID of a data stream (i.e. one of the data sources that provides data to your property). To retrieve your GA Measurement ID go to the Google Analytics interface and click Admin>Property>Data Streams> Web and choose your data stream. GA Measurement ID appears at upper right. More information here.

Last updated
Was this helpful?
Was this helpful?

