Skip to content

Commit b1da1ad

Browse files
authored
Merge pull request #7723 from wilwong-segment/patch-2
Update to audience trait operators
2 parents 9cd4464 + 1c0994d commit b1da1ad

File tree

1 file changed

+27
-13
lines changed

1 file changed

+27
-13
lines changed

src/engage/audiences/index.md

Lines changed: 27 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -68,18 +68,32 @@ When you build an audience based on audience membership, you use existing audien
6868

6969
To see which audiences reference a particular audience in their definitions, select the **Consumers** tab when viewing a classic or linked audience. This tab lists all dependent audiences, to help you understand and manage relationships between your audience segments.
7070

71-
### Time comparison
72-
73-
You can use the following time comparison operators in your audience definition:
74-
- `before date`
75-
- `after date`
76-
- `within last`
77-
- `within next`
78-
- `before last`
79-
- `after next`
80-
81-
Only ISO timestamps can be used with these operators. Additionally, these time comparison operators exclusively apply to custom traits.
82-
If the timestamp is not a valid ISO timestamp (for example, a trailing `Z` is missing), Segment won't process the audience in real-time. Learn more about [real-time compute compared to batch](/docs/engage/audiences/#real-time-compute-compared-to-batch).
71+
### Trait operators
72+
73+
| Operator | Description |
74+
|--------------------------- |---------------------------------------|
75+
| equals | Matches exact value. |
76+
| not equals | Does not match exact value. |
77+
| less than | Value is less than specified. |
78+
| greater than | Value is greater than specified. |
79+
| less than or equal to | Value is less than or equal to specified. |
80+
| greater than or equal to | Value is greater than or equal to specified. |
81+
| equals any of | Matches any of specified values. |
82+
| contains any of | Includes any of specified values. |
83+
| contains | Includes specified substring or value. |
84+
| does not contain | Excludes specified substring or value. |
85+
| starts with | Begins with specified substring. |
86+
| ends with | Ends with specified substring. |
87+
| exists | Value is present (not null). |
88+
| not exists | Value is absent (null). |
89+
| before date | Dates before specified date. |
90+
| after date | Dates after specified date. |
91+
| within last | Dates between X days ago and today. |
92+
| within next | Dates between today and X days from now. |
93+
| before last | All dates older than X days from today. |
94+
| after next | All dates beyond X days from today. |
95+
96+
Only ISO timestamps can be used with time comparison operators. If the timestamp is not a valid ISO timestamp (for example, a trailing `Z` is missing), Segment won't process the audience in real-time. Learn more about [real-time compute compared to batch](/docs/engage/audiences/#real-time-compute-compared-to-batch).
8397

8498
**Note**: Timezones seen in the UI are based on your local timezone, but are converted to UTC on the backend.
8599

@@ -409,4 +423,4 @@ This error occurs when creating audiences that reference each other, meaning aud
409423
No. Traits located in the `context.traits` object of a Track event aren’t available in the Event Properties section of the Audience Builder. You can only use top-level event properties to define event-based audience conditions.
410424

411425
### How does the historical data flag work?
412-
The **Include Historical Event Data** option lets you take past event data into account and control how much of it is considered when creating real-time audiences. You can set a lookback window (for example, the “last 90 days”) to limit the processed event data, or disable it entirely to use only data arriving after creation. For batch audiences, Segment includes historical data by default.
426+
The **Include Historical Event Data** option lets you take past event data into account and control how much of it is considered when creating real-time audiences. You can set a lookback window (for example, the “last 90 days”) to limit the processed event data, or disable it entirely to use only data arriving after creation. For batch audiences, Segment includes historical data by default.

0 commit comments

Comments
 (0)