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.

1

Create user-scoped custom dimension in GA4

Since EmotionsAI audiences are linked to a user, you must create a user-scoped custom dimension:

  1. Go to Admin > Property > Custom definitions.

  2. Create a custom dimension:

    • Dimension name: e.g., Audience Emotion AI

    • Scope: User

    • Description: any meaningful description

    • Event parameter/User property: audience_emotion_ai

  3. Click Save.

2

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.

3

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?