Skip to content

Commit 22eeca3

Browse files
Update sessionization.md
1 parent fd40780 commit 22eeca3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sessionization.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,13 @@ Whereas, timeseries analysis, usually uses "Gaps and Islands" - if there are no
1010
|:--:|
1111
|_Figure 1._ A session, for example, can be defined by threshold time such as if the next action is in a range of time greater than `T=50`, it defines the start of a new session.
1212

13-
## Why do you nee sessionization?
13+
## Why do you need sessionization?
1414

1515
Sessionization has many use cases: web traffic patterns, cohort analysis, attribution, etc. Sessions make it easier to group and analyze events and actions users take which helps us understand the customer journey and their interactions with your product. This allows you to optimize your marketing campaigns and user flows to increase conversion rates and bring in more business.
1616

1717
## How do you sessionize in SQL?
1818

19-
You can use the `CONDITIONAL_TRUE_EVENT` function to easily sessionize events in one line of SQL code.
19+
You can use the [CONDITIONAL_TRUE_EVENT](conditional_true_event.md) function to easily sessionize events in one line of SQL code.
2020

2121
1. First, you'll need to structure your data so there is one row per event.
2222
2. Next, you'll need to get the timestamp of the previous event for each event, partitioned by _visitor identifier_ or _username_.

0 commit comments

Comments
 (0)