How to enable EmotionsAI audience for GA4
AB Tasty can export a visitor’s EmotionsAI audience alongside the campaign hit. This allows segmentation of exposed visitors.
This feature is part of our Early Adopters program. Contact your CSM to join.
Create user-scoped custom dimension in GA4
Since EmotionsAI audiences are linked to a user, you must create a user-scoped custom dimension:
Go to Admin > Property > Custom definitions.
Create a custom dimension:
Dimension name: e.g.,
Audience Emotion AI
Scope:
User
Description: any meaningful description
Event parameter/User property:
audience_emotion_ai
Click Save.
If the dimension is not configured correctly, GA4 will not display the EmotionsAI audience, even though AB Tasty is sending it as a user property (up.audience_emotion_ai
).
Check Data availability
Sometimes, an EmotionsAI audience is not yet defined when the campaign hit is sent. In such cases, the field may remain empty. This occurs because the campaign hit is triggered immediately when AB Tasty loads, while audience detection takes about 30 seconds for a new visitor.

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.
Check integration
Verify if data has been sent correctly. For EmotionsAI audience specifically, information is available inside up.audience_emotion_ai

Sometimes, an EmotionsAI audience is not yet defined when the AB Tasty campaign hit is sent. As a result, even if an EmotionsAI audience is activated, the value may remain empty. This happens because, when a new visitor arrives on your website, the campaign hit is triggered as soon as AB Tasty loads, whereas it takes about 30 seconds to determine which EmotionsAI audience the visitor belongs to.
Last updated
Was this helpful?