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/using-engage-data.md
+96-9Lines changed: 96 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -61,56 +61,98 @@ User-list destinations can have individual limits on how often Segment can sync
61
61
62
62
The payloads sent from your Engage space to your destinations will be different depending on if you configured the destination to receive identify or track calls, and whether the payload is coming from a computed trait or audience. As a reminder, identify calls usually update a trait on a user profile or table, whereas track calls send a point-in-time event that can be used as a campaign trigger or a detailed record of when a user's audience membership or computed trait value was calculated.
63
63
64
+
To view the events generated by an Engage Space's audience or computed traits, navigate to **Unify settings > Debugger** and view the list of sources that are configured to generate events per [each destination instance](/docs/engage/warehouses/#why-are-there-multiple-schemas-prefixed-with-engage_-in-my-warehouse-when-i-only-have-one-space:~:text=Segment%20currently%20can,schemas%20than%20spaces.). Each source will only generate events to connected destinations. From the source's Debugger tab, you'll find the most recent events generated by that source per the connected destinations' audiences and computed traits.
65
+
66
+
In the full json body of an audience, computed trait, or journey, you'll find specific details under the `context.personas` object. These fields can be useful when building out [Destination Filters](/docs/connections/destinations/destination-filters/), [Actions destination mappings](/docs/connections/destinations/actions/#set-up-a-destination-action), and [Functions](/docs/connections/functions/).
67
+
68
+
The integrations object in the payload displays as `{"All" : false,}` and only lists some destinations. This is due to the fact that each source has multiple destinations connected while each audience/trait may only have a subset of destinations connected to it. See [Filtering with the Integrations Object](/docs/guides/filtering-data/#filtering-with-the-integrations-object) for more information. The integrations object routing specific events to its specified destinations is also why a destination's [Delivery Overview](/docs/connections/delivery-overview/) tab will show a large number of events under the [Filtered at destination](/docs/connections/delivery-overview/#:~:text=Filtered%20at%20destination%3A%20Events,will%20be%20filtered%20out.) box, as that destination will only receive the events intended to be sent to it by audiences, traits, or journeys that are connected to that specific destination.
69
+
64
70
### Computed Trait generated events
65
71
66
-
`Identify` events generated by a computed trait have the trait name set to the computed trait value:
72
+
`Identify` events generated by a Computed Trait have the trait name set to the Computed Trait value:
67
73
68
74
```js
69
75
{
76
+
"context": {
77
+
"personas": {
78
+
"computation_class":"trait", // the type of computation
79
+
"computation_id":"tra_###", // the trait's id found in the URL
80
+
"computation_key":"aud_###", // the configured trait key that appears on user profile
81
+
"namespace":"spa_###", // the Engage Space's ID
82
+
"space_id":"spa_###"// the Engage Space's ID
83
+
}
84
+
},
70
85
"type":"identify",
71
-
"userId": u123,
86
+
"userId":"u123",
72
87
"traits": {
73
88
"total_revenue_180_days":450.00
74
89
}
75
90
}
76
91
```
77
92
78
-
`Track` events generated by a computed trait have a key for the trait name, and a key for the computed trait value. The default event name is `Trait Computed`, but you can change it.
93
+
`Track` events generated by a Computed Trait have a key for the trait name, and a key for the Computed Trait value. The default event name is `Trait Computed`, but you can change it.
79
94
80
95
```js
81
96
{
97
+
"context": {
98
+
"personas": {
99
+
"computation_class":"trait", // the type of computation
100
+
"computation_id":"tra_###", // the trait's id found in the URL
101
+
"computation_key":"aud_###", // the configured trait key that appears on user profile
102
+
"namespace":"spa_###", // the Engage Space's ID
103
+
"space_id":"spa_###"// the Engage Space's ID
104
+
}
105
+
},
82
106
"type":"track",
83
107
"event":"Trait Computed",
84
-
"userId": u123,
108
+
"userId":"u123",
85
109
"properties": {
86
110
"trait_key":"total_revenue_180_days",
87
111
"total_revenue_180_days":450.00
88
112
}
89
113
}
90
114
```
91
115
92
-
Engage only sends events to the destination if the computed trait value has changed for the user. Engage doesn't send a payload for every user in your trait every time the trait computes.
116
+
Engage only sends events to the destination if the Computed Trait value has changed for the user. Engage doesn't send a payload for every user in your trait every time the trait computes.
93
117
94
118
### Audience generated events
95
119
96
-
`Identify` events generated by an audience have the audience key set to `true` or `false` based on whether the user is entering or exiting the audience:
120
+
`Identify` events generated by an Audience have the Audience key set to `true` or `false` based on whether the user is entering or exiting the audience:
97
121
98
122
```js
99
123
{
124
+
"context": {
125
+
"personas": {
126
+
"computation_class":"audience", // the type of computation
127
+
"computation_id":"aud_###", // the audience's id found in the URL
128
+
"computation_key":"aud_###", // the configured audience key that appears on user profile
129
+
"namespace":"spa_###", // the Engage Space's ID
130
+
"space_id":"spa_###"// the Engage Space's ID
131
+
}
132
+
},
100
133
"type":"identify",
101
-
"userId": u123,
134
+
"userId":"u123",
102
135
"traits": {
103
136
"first_time_shopper":true// false when a user exits the audience
104
137
}
105
138
}
106
139
```
107
140
108
-
`Track` events generated by an audience have a key for the audience name, and a key for the audience value:
141
+
`Track` events generated by an Audience have a key for the Audience name, and for the Audience value:
109
142
110
143
```js
111
144
{
145
+
"context": {
146
+
"personas": {
147
+
"computation_class":"audience", // the type of computation
148
+
"computation_id":"aud_###", // the audience's id found in the URL
149
+
"computation_key":"aud_###", // the configured audience key that appears on user profile
150
+
"namespace":"spa_###", // the Engage Space's ID
151
+
"space_id":"spa_###"// the Engage Space's ID
152
+
}
153
+
},
112
154
"type":"track",
113
-
"userId": u123,
155
+
"userId":"u123",
114
156
"event":"Audience Entered", // "Audience Exited" when a user exits an audience
115
157
"properties": {
116
158
"audience_key":"first_time_shopper",
@@ -119,6 +161,51 @@ Engage only sends events to the destination if the computed trait value has chan
119
161
}
120
162
```
121
163
164
+
### Journey generated events
165
+
_See [this doc](https://segment.com/docs/engage/journeys/send-data/#what-do-i-send-to-destinations) for more information on Journeys events._
166
+
`Track` events generated by a journey have a key for the journey name "audience_key", and a key for the journey value:
167
+
168
+
```js
169
+
{
170
+
"context": {
171
+
"personas": {
172
+
"computation_class":"audience", // the type of computation
173
+
"computation_id":"aud_###", // the audience's id found in the URL
174
+
"computation_key":"j_o_###", // the configured journey key that appears on user profile
175
+
"namespace":"spa_###", // the Engage Space's ID
176
+
"space_id":"spa_###"// the Engage Space's ID
177
+
}
178
+
},
179
+
"type":"track",
180
+
"userId":"u123",
181
+
"event":"Audience Entered", // "Audience Exited" when a user exits an audience
182
+
"properties": {
183
+
"audience_key":"j_o_###",
184
+
"recent_buyer":true// false when a user exits the journey
185
+
}
186
+
}
187
+
```
188
+
189
+
`Identify` events generated by a Journey have the Journey key set to `true` or `false` based on whether the user is entering or exiting the Journey:
190
+
191
+
```js
192
+
{
193
+
"context": {
194
+
"personas": {
195
+
"computation_class":"audience", // the type of computation
196
+
"computation_id":"aud_###", // the audience's id found in the URL
197
+
"computation_key":"j_o_###", // the configured journey key that appears on user profile
198
+
"namespace":"spa_###", // the Engage Space's ID
199
+
"space_id":"spa_###"// the Engage Space's ID
200
+
}
201
+
},
202
+
"type":"identify",
203
+
"userId":"u123",
204
+
"traits": {
205
+
"recent_buyer":true// false when a user exits the journey
0 commit comments