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/audiences/index.md
+7-1Lines changed: 7 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -55,6 +55,9 @@ See [Account-level Audiences](/docs/personas/audiences/account-audiences) for mo
55
55
56
56
## Connecting your Audience to a Destination
57
57
58
+
> warning "Audience Keys"
59
+
> Avoid using the same Audience key twice, even if you've deleted the original Audience.
60
+
58
61
Once you have previewed your audience, you can choose to connect a destination, or simply keep the audience in Segment and download a csv. If you already have destinations set up in Segment, you can import the configuration from one of your existing sources to Personas. Note that you can only connect one destination configuration per destination type.
@@ -108,7 +111,10 @@ To edit a realtime Trait or Audience, follow these steps:
108
111
3. Select the **Builder** tab and make your edits.
109
112
4. Select **Save Audience** to confirm your edits.
110
113
111
-
Personas then processes your realtime Audience or Trait edits. Once Personas has finished incorporating your changes, you'll be able to access your updated Audience or Trait.
114
+
Personas then processes your realtime Audience or Trait edits. While the edit task runs, the audience remains locked and you can't make further changes. Once Personas has finished incorporating your changes, you'll be able to access your updated Audience or Trait.
115
+
116
+
> warning ""
117
+
> If your audience includes historical data (Historical Backfill is enabled), editing an audience creates a new backfill task. The backfill task, and therefore the edit task, take longer to process if the audience is connected to a destination with rate limits. Rate-limited destinations dictate how fast Personas can backfill. View a list of [rate-limited destinations](/docs/personas/using-personas-data/#rate-limits-on-personas-event-destinations).
112
118
113
119
## Accessing your Audiences using the Profiles API
Copy file name to clipboardExpand all lines: src/engage/profiles/computed-traits.md
+31-19Lines changed: 31 additions & 19 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -36,7 +36,7 @@ Account-level examples:
36
36
- Total Logins by Account 30 Days
37
37
- Emails Opened by Account 90 Days
38
38
39
-

39
+

40
40
41
41
### Aggregation
42
42
@@ -50,27 +50,27 @@ Account-level use cases
50
50
- Total Minutes Watched 30 Days
51
51
- Avg Order Size Last 180 Days
52
52
53
-

53
+

54
54
55
55
### Most Frequent
56
56
57
-
A most frequent user-level computed trait will return the **most common value** for an **event property**. This is helpful to create traits like `preferred_product_viewed` or `most_commonly_viewed_category` that tell you what a user's preferred product, or content category might be. Note that the most frequent computed trait requires the event property to have been tracked at least twice. In the case of a tie, we return the first alphabetical value. For account-level computed traits, you can also return the most frequent **user trait**. This is helpful when you want to determine which user has performed an event the most frequently. For example, you might to return the email of the user in an account most actively viewing your app.
57
+
A most frequent user-level computed trait will return the **most common value** for an **event property**. This is helpful to create traits like `preferred_product_viewed` or `most_commonly_viewed_category` that tell you what a user's preferred product, or content category might be. Note that the most frequent computed trait requires the event property to have been tracked at least twice. In the case of a tie, Segment returns the first alphabetical value. For account-level computed traits, you can also return the most frequent **user trait**. This is helpful when you want to determine which user has performed an event the most frequently. For example, you might to return the email of the user in an account most actively viewing your app.
58
58
59
59
User-level examples:
60
60
- Favorite Blog Post
61
61
- Top Purchase Category
62
62
63
-

63
+

64
64
65
65
Account-level examples:
66
66
- Most frequent product viewed
67
67
- Most active user
68
68
69
-

69
+

70
70
71
71
### First
72
72
73
-
The first user-level trait returns the first event property value we have seen. This is common for creating traits like `first_page_visited` based on the page name. For accounts, the first computed trait could also return a trait like `first_user_signup`, to calculate the first user to use your product.
73
+
The first user-level trait returns the first event property value Segment has seen. This is common for creating traits like `first_page_visited` based on the page name. For accounts, the first computed trait could also return a trait like `first_user_signup`, to calculate the first user to use your product.
74
74
75
75
User-level examples:
76
76
- First seen timestamp
@@ -80,23 +80,23 @@ Account-level examples:
80
80
- First email opened
81
81
- First user signup
82
82
83
-

83
+

84
84
85
85
### Last
86
86
87
-
The last trait returns the last event property value we have seen. This is common for creating traits like `last_utm_campaign` to help you calculate last-touch attribution for paid advertising.
87
+
The last trait returns the last event property value Segment has seen. This is common for creating traits like `last_utm_campaign` to help you calculate last-touch attribution for paid advertising.
88
88
89
89
User-level examples:
90
90
- Last seen at
91
91
- Last utm parameter
92
92
93
-

93
+

94
94
95
95
Account-level examples:
96
96
- Last unsubscribe timestamp
97
97
- Last user active
98
98
99
-

99
+

100
100
101
101
### Unique List
102
102
@@ -107,7 +107,7 @@ Example use cases:
107
107
- Unique categories
108
108
- Unique games played
109
109
110
-

110
+

111
111
112
112
113
113
### Unique List Count
@@ -118,13 +118,13 @@ User-level examples:
118
118
- Unique products viewed count
119
119
- Unique categories count
120
120
121
-

121
+

122
122
123
123
Account-level examples:
124
124
- Unique products viewed
125
125
- Unique visitors count
126
126
127
-

127
+

128
128
129
129
## Conditions
130
130
@@ -150,14 +150,26 @@ The following operators are available.
150
150
151
151
Personas sends user-level computed Traits to destinations using the [Identify call](/docs/connections/spec/identify/) for user traits, or using the [Track call](/docs/connections/spec/track/) for event properties. Segment includes the trait value and property in the identify and track calls.
152
152
153
-
For example, the name of a computed trait is added to the user profile as a trait, and the trait's value is set to the value of the computed trait. Segment sends an identify or track call when the trait is computed, depending on the destination configuration. If a computed trait counts the number of times a user visits your pricing page, and the user visits your pricing page five times, Segment sends an identify call with the property `pricing_page_visits: 5`.
153
+
For example, the name of a computed trait is added to the user profile as a trait, and the trait's value is set to the value of the computed trait. Segment sends an identify or track call when the trait is computed, depending on the destination configuration. If a computed trait counts the number of times a user visits your pricing page, and the user visits your pricing page five times, Segment sends an identify call with the property `pricing_page_visits: 5`.
154
154
155
155
Learn more about [Computed trait generated events here](/docs/personas/using-personas-data/#computed-trait-generated-events). The trait name corresponds to the snake cased name that you see in the trait settings, for example `most_viewed_page_category`. See the [list of Personas-compatible destinations](/docs/personas/using-personas-data/#compatible-personas-destinations)
156
156
157
-

157
+

158
158
159
-
For account-level computed traits, you have the option to send either a [group](/docs/connections/spec/group/) call and/or [identify](/docs/connections/spec/identify/) call. Group calls will send one event per account, whereas identify calls will send an identify call for each user in the account. This means that even if a user hasn't performed an event, we will still set the account-level computed trait on that user. Because most marketing tools are still based at the user level, it is often important to map this account-level trait onto each user within an account. See [Account-level Audiences](/docs/personas/audiences/account-audiences) for more information.
159
+
For account-level computed traits, you have the option to send either a [group](/docs/connections/spec/group/) call and/or [identify](/docs/connections/spec/identify/) call. Group calls will send one event per account, whereas identify calls will send an identify call for each user in the account. This means that even if a user hasn't performed an event, Segment will still set the account-level computed trait on that user. Because most marketing tools are still based at the user level, it is often important to map this account-level trait onto each user within an account. See [Account-level Audiences](/docs/personas/audiences/account-audiences) for more information.
160
160
161
+
## Editing Realtime Traits
162
+
163
+
Personas supports the editing of realtime Traits, which allows you to make nuanced changes to existing Traits in situations where cloning or building from scratch may not suit your use case.
164
+
165
+
To edit a realtime Trait, follow these steps:
166
+
167
+
1. In your Personas Space, select the **Computed Traits** tab.
168
+
2. Select the realtime Trait you want to edit.
169
+
3. Select the **Builder** tab and make your edits.
170
+
4. Select **Save Computed Trait** to confirm your edits.
171
+
172
+
Personas then processes your Trait edits. While the edit task runs, the trait remains locked and you can't make further changes. Once Personas has finished incorporating your changes, you'll be able to access your updated Trait.
161
173
162
174
## Accessing your Computed Traits using the Profiles API
163
175
@@ -184,17 +196,17 @@ returns:
184
196
185
197
You can read the [full Profile API docs](/docs/personas/profile-api/) to learn more.
186
198
187
-
## Downloading your Computed Trait as a CSV
199
+
## Downloading your Computed Trait as a CSV file
188
200
189
201
You can download a copy of your trait by visiting the the computed trait overview page.
190
-

202
+

191
203
Computed Trait CSVs are generated on demand. Before you can download the CSV, you will need to generate it. There are three different options for formatting:
192
204
-**Unformatted:** Contains three columns. The first contains the user or account key, the second contains the trait value and the third is a JSON object containing the external IDs. Generating this CSV is by far the fastest of the three options. [Download example unformatted CSV](files/trait_csv_format_a.csv)
193
205
-**Distinct columns for unique external IDs (with indexed columns for ID types with multiple values):** Contains the same first three columns as the unformatted CSV. Additional columns are added for each distinct external ID type. When a single row has more than one value for a given external ID type, for example a user with three email addresses, _additional columns with indexed headers are added_, (`email`, `email_1`, `email_2`). [Download example formatted CSV with indexed columns](files/trait_csv_format_b.csv)
194
206
-**Distinct columns for unique external IDs (with additional rows for ID types with multiple values):** Contains the same first three columns as the unformatted CSV. Additional columns are added for each distinct external ID type. When a single row has more than one value for a given external ID type, for example a user with two email addresses, _additional rows are added with the first three columns repeated (user or account key, trait value and external IDs JSON)._[Download example formatted CSV with additional rows](files/trait_csv_format_c.csv)
195
207
<table>
196
208
<tr>
197
-
<td></td>
209
+
<td></td>
198
210
<td width="45%">Generating a CSV can take a substantial amount of time for large traits (around 30 seconds for a formatted CSV with 1 million rows). For CSVs that are expected to take over 20 seconds, the Segment app displays an estimated generation time. After clicking Generate, it is recommended that you leave the modal and page open while the CSV is created.
199
211
(If the trait recalculates between when you click Generate and when you download the file, you might want to regenerate the file. The CSV is a snapshot from when you clicked Generate, and could be outdated.)</td>
Copy file name to clipboardExpand all lines: src/personas/computed-traits.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -198,7 +198,7 @@ You can read the [full Profile API docs](/docs/personas/profile-api/) to learn m
198
198
## Downloading your Computed Trait as a CSV file
199
199
200
200
You can download a copy of your trait by visiting the the computed trait overview page.
201
-

201
+

202
202
Computed Trait CSVs are generated on demand. Before you can download the CSV, you will need to generate it. There are three different options for formatting:
203
203
-**Unformatted:** Contains three columns. The first contains the user or account key, the second contains the trait value and the third is a JSON object containing the external IDs. Generating this CSV is by far the fastest of the three options. [Download example unformatted CSV](files/trait_csv_format_a.csv)
204
204
-**Distinct columns for unique external IDs (with indexed columns for ID types with multiple values):** Contains the same first three columns as the unformatted CSV. Additional columns are added for each distinct external ID type. When a single row has more than one value for a given external ID type, for example a user with three email addresses, _additional columns with indexed headers are added_, (`email`, `email_1`, `email_2`). [Download example formatted CSV with indexed columns](files/trait_csv_format_b.csv)
0 commit comments