You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/engage/event-mapping-configuration.md
+62-6
Original file line number
Diff line number
Diff line change
@@ -9,7 +9,7 @@ This guide explains how to configure mappings for Engage events in Actions Desti
9
9
10
10
Engage Mappings let you transform and send user data to downstream destinations. Engage events sent to destinations may need to be formatted or adjusted, though, to match the destination’s expected data structure. Without mapping, critical user information like audience membership or enriched traits may not sync correctly.
11
11
12
-
including:
12
+
This guide covers:
13
13
14
14
- The differences between [Identify](/docs/connections/spec/identify/) and [Track](/docs/connections/spec/track/) events.
15
15
- How to extract and map data from Engage event payloads.
@@ -63,7 +63,7 @@ Key characteristics:
63
63
64
64
- Identify events store user details in the `traits` object.
65
65
- Audience membership (for example, `browse_abandoners = true`) is also included in `traits`.
66
-
- Attributes like `email`, `first_name`, and any enriched traits all appear alongside audience flags.
66
+
- Attributes like `email`, `first_name`, and any enriched traits appear together with audience membership information.
67
67
68
68
Here's an example of an Engage Identify event payload:
69
69
@@ -83,8 +83,6 @@ Here's an example of an Engage Identify event payload:
83
83
84
84
In this example, a user just entered the `browse_abandoners` audience. If the value for the audience were `false`, it would mean the user just **exited** the audience.
85
85
86
-
<!-- PW: hm should I change this from "alongside audience flags!-->
87
-
88
86
### Track events: logging user actions
89
87
90
88
Track events, on the other hand, represent something the user did. These events capture user actions and log events and behaviors.
@@ -144,7 +142,7 @@ The following table summarizes the differences between Identify and Track events
144
142
145
143
## Configure mappings
146
144
147
-
To send Engage event data to a destination, you’ll need to configure a mapping. Mappings define Segment passes fields like `traits.email` or `properties.browse_abandoners` to the destination's API endpoint.
145
+
To send Engage event data to a destination, you’ll need to configure a mapping. A mapping defines how Segment passes fields from Engage events (like `traits.email` or `properties.browse_abandoners`) to the format your destination expects.
148
146
149
147
When you add a mapping, you’ll choose the event type (Identify or Track) and then define which fields to send and where to send them. The structure of the event payload depends on the type of event, which is why mapping an Identify event differs from mapping a Track event.
150
148
@@ -271,4 +269,62 @@ Trait Enrichment lets you pull Segment profile traits into mappings when syncing
271
269
To enable trait enrichment:
272
270
273
271
1. From your Segment workspace, go to **Engage > Audiences**.
274
-
2.
272
+
2. Choose an audience, then select a destination from the audience overview tab.
273
+
3. In the destination side panel, click **Traits and identifiers**.
274
+
4. Add identifiers and/or traits, then click **Save**.
275
+
276
+
Enriched Identify events include traits in the `traits` object, and enriched Track events include traits in the `properties` object, like in these examples:
#### Why can't I find the email in my Track event properties?
321
+
322
+
For Track events, `email` is located in context.traits.email, not in the `properties` object. Make sure to map `context.traits.email` to your destination's email field.
323
+
324
+
#### How do I know whether to use an Identify or Track event?
325
+
326
+
The event type you use depends on your destination. Some destinations work better with Identify events for updating user profiles, while others prefer Track events to trigger actions. Read the destination's documentation to learn more about what event types will work best for your use case.
327
+
328
+
#### My destination fields aren't being populated correctly. What should I check?
329
+
330
+
Verify that you're mapping from the correct location in the event. For Identify events, look in the `traits` object. For Track events, most fields are in the `properties` object, except for `email`, which is in `context.traits`.
0 commit comments