Skip to content

Commit 30c91f4

Browse files
authored
Merge pull request #2348 from segmentio/journeys_historical_data
Journeys Historical Data updates
2 parents 760b8e4 + e6df38a commit 30c91f4

File tree

1 file changed

+22
-4
lines changed

1 file changed

+22
-4
lines changed

src/personas/journeys/faq-best-practices.md

Lines changed: 22 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,13 +37,31 @@ To edit the steps within a published Journey, make a copy of the Journey you wis
3737

3838
When you do this, the key used for syncing to destinations will be different from the copied Journey. Make sure you change the reference key used in the downstream destinations accordingly.
3939

40-
### Use Traits for conditions based on historical data
40+
### Know how to incorporate historical data
4141

42-
Aside from the entry condition, all Journey step conditions are triggered by future events and existing trait memberships. This means that event-based conditions evaluate events that have occurred *after* the Journey is published.
42+
Aside from the entry condition, all Journey step conditions are triggered by future events and existing trait memberships. Event-based conditions only evaluate events that occur *after* the Journey is published.
4343

44-
As a result, if you want to include historical events that may have occurred *before* the Journey was published, create conditions based on traits, instead of events.
44+
When you [include historical data](/docs/personas/journeys/build-journey/#using-historical-data-for-the-entry-step) in a Journey's entry condition, Personas backfills entry with users who previously satisfied the entry condition. For example, to evaluate if a user has ever used a discount code mid-Journey, create and configure a [Computed Trait](/docs/personas/computed-traits/#conditions) to select for `discount_used = true` to use in your Journey.
4545

46-
For example, to evaluate if a user has ever used a discount code mid-Journey, create and configure a [Computed Trait](/docs/personas/computed-traits/#conditions) to select for `discount_used = true` to use in your Journey.
46+
This historical backfill has no impact on any additional Journey steps, however. To include historical data in post-entry conditions, use the following table to identify which conditions will automatically backfill historical data:
47+
48+
| Condition Type | Automatic Historical Data Backfill |
49+
| ------------------ | ---------------------------------- |
50+
| Computed Trait | Yes |
51+
| Audience Reference | Yes |
52+
| Event | No |
53+
| Custom Trait | No |
54+
55+
56+
To include historical data based on custom traits or events that predate the Journey, first build an Audience that includes the targeted data by following these steps:
57+
58+
1. Create a standard Personas Audience **outside of the Journeys builder**.
59+
2. Add conditions that include the historical event or custom trait you want to include in the Journey.
60+
3. After you've created the Audience, return to Journeys and create a **Part of an Audience** condition that references the audience you created in Step 2.
61+
62+
For example, to include `custom trait = ABC` in a Journey, create an Audience called `ABC` that includes that custom trait, then add the Journey condition **Part of Audience** `ABC`.
63+
64+
Using the **Part of Audience** condition, Journeys then populates the custom trait as if it were a backfill.
4765

4866
### Use dev spaces and data warehouse destinations to test journeys
4967

0 commit comments

Comments
 (0)