Repository navigation
fix(analytics): keep sessionless events out of session journeys - #601
Conversation
Exclude empty session ids from session-grouped funnels, conversions and flow paths so unrelated server events cannot become one synthetic session. Keep profile grouping and pageview/visitor counts, and assign zero page duration when no session is available. No migration or self-hosted configuration change is required.
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info
📝 Walkthrough
Merge Risk: ⚪ Minimal · up to
|
Session-grouped analytics treat every event with
session_id = ''as one session. Unrelated server users can complete a funnel together, appear in one flow/journey, and accumulate a largegroupArray. Page duration windows also measure time between unrelated sessionless views.Exclude empty session IDs before session-grouped funnel/conversion scans, flow path scans and their start/end anchor CTEs, and user-journey aggregation. Keep profile grouping eligible for sessionless events. Page tables and page-filtered metrics retain these views and visitors, but assign their duration zero; the page filter still applies after the duration window.
Fixes #575. No migration or configuration change is required. The separate session-count and
session.performed_eventfollow-ups listed in the issue remain outside this fix.Validation on an isolated native ClickHouse 26.1.3.52 server (the version pinned by the repository's local Compose file):
git diff --checkpass.Summary by CodeRabbit