Scope
- Use cases
- Compute sessions and session metrics (duration, counts) for behavioral analytics.
- Non-use cases
- Business aggregations beyond the session scope (see S005 for daily).
- Enrichment with dimensions (see S004).
Common steps
Build context
- Identify clickstream sources (e.g.,
Search,ProductClicked). - Choose a session gap (15–30 minutes are common).
Implementation notes
- Normalize time zones; session boundaries should align with business needs.
- Consider deduplicating within session if events may repeat.
RESINK.AI recommendations
Example
Variations
- Include
ProductDetailsViewedandProductAddedevents in sessionization
Troubleshooting
Unexpectedly short or long sessions
Unexpectedly short or long sessions
Adjust the session gap or split by device/channel to address multi-device behavior.
Duplicate events inflate metrics
Duplicate events inflate metrics
Deduplicate upstream or apply row_number-based deduplication within each session grouping key.

