Commit Graph
14 Commits
Author SHA1 Message Date
Francis Cao b3aec54bb3 Fix excludeBounce query, simplify bounce definition for SPA websites, query routing for performance, add tests 2026-07-30 09:34:35 -07:00
Federico D'Eredità cb035fdc1a feat(queries): add BOUNCE_THRESHOLD and enhance bounce calculation logic
Updated bounce calculations to account for visits with custom events
(`EVENT_TYPE.customEvent`). A visit counts as a bounce only when its
custom event count is below `BOUNCE_THRESHOLD`, so engaged single
pageview visits are no longer misreported.

Since #3614 was opened v3 moved `getInsights` into `getBreakdown` and
copied the old formula into the channel, pageview and session
breakdowns, so those are updated too.
2026-07-26 18:49:59 +02:00
Francis Cao f6a6d2cc31 performance updates checkpoint 2026-03-05 10:12:30 -08:00
Francis Cao ee698b636a implement exclude bounces feature 2026-01-30 00:12:13 -08:00
Francis Cao 7bb30443a8 Add distinct ID to filters/expanded metrics. Closes #3861 2026-01-26 11:05:20 -08:00
Francis Cao 3f173889ea Fix "name" alias for relational query to be compatible with Postgres 12. Closes #3970 2026-01-22 22:04:11 -08:00
Mike Cao fa8d8055df Reformatted files with biome. 2025-11-22 22:42:42 -08:00
Francis Cao 61b667c587 update psql expanded metrics queries 2025-10-24 10:38:35 -07:00
Mike Cao 1def80ba42 Merge remote-tracking branch 'origin/dev' into dev 2025-10-02 16:57:23 -07:00
Mike Cao da572864ac Added more function names to queries. 2025-10-02 16:56:56 -07:00
Francis Cao 1809959b99 fix event type queries for pixels/links. remove hardcoded event types 2025-10-01 12:29:31 -07:00
Francis Cao 2f1f704728 implement filtering and cohorts to all relevant queries 2025-08-19 15:26:41 -07:00
Francis Cao 0a0c1f27c6 implement pageviews, events, and channels queries 2025-08-05 00:37:44 -07:00
Francis Cao c1cad16cb9 implement sessions metric expanded queries 2025-08-04 18:27:31 -07:00