Skip to content

Commit 57f187f

Browse files
authored
Update computed-traits.md
1 parent 5249045 commit 57f187f

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

src/unify/Traits/computed-traits.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ plan: unify-plus
44
redirect_from:
55
- "/personas/computed-traits"
66
- "/engage/audiences/computed-traits"
7-
---
7+
88

99
> info ""
1010
> Beginning August 18, 2023, new Unify Plus users can access Computed Traits in Unify.
@@ -32,6 +32,7 @@ Segment currently supports the following types of computed traits:
3232
- [Predictions](/docs/unify/traits/predictions/)
3333
- [Recommended Items](/docs/unify/traits/recommended-items/)
3434
- [Conditions](#conditions)
35+
- [Understanding Windows in Computed Traits](#understanding-windows-in-computed-traits)
3536
- [Connecting your Computed Trait to a Destination](#connecting-your-computed-trait-to-a-destination)
3637
- [Editing Realtime Traits](#editing-realtime-traits)
3738
- [Accessing your Computed Traits using the Profiles API](#accessing-your-computed-traits-using-the-profiles-api)
@@ -162,6 +163,15 @@ The following operators are available:
162163
- equals one of
163164
- contains one of
164165

166+
## Understanding Windows in Computed Traits
167+
168+
Computed Traits support windows, giving you control over how user activity is evaluated over time. You can choose between sliding windows and session windows, depending on how you want to define recency or engagement.
169+
- **Sliding Window:** Use this when you want to track actions over a rolling time frame, such as “Orders Completed in the Last 30 Days” or “Emails Opened in the Past Week.” This is ideal for measuring ongoing engagement or recent behavior trends.
170+
- **Session Window:** Use this to capture activity during a user’s most recent session, for example, “Count of Page Viewed events in Current Session” or “Total Purchase Amount in Current Session.” Session windows are especially useful for measuring bursts of engagement and driving personalization based on the user's current session on your site or app. Since session windows reset automatically after the defined inactivity period, the computed trait always reflects behavior from the most recent or current session.
171+
172+
> info "Real-time support for windows"
173+
> Computed traits that use session windows are always created as real-time computations. Those that use sliding windows are created as batch-based computations and do not receive real-time updates.
174+
165175
## Connecting your computed trait to a destination
166176

167177
Segment 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.

0 commit comments

Comments
 (0)