Commit Graph
602 Commits
Author SHA1 Message Date
Federico D'Eredità 92e9b276d2 fix(queries): count custom events correctly on the hourly rollup, trying to address greptile findings
`website_event_stats_hourly` sets `views` to
`sumIf(1, event_type NOT IN (2, 5))`, so `views` is 0 on custom event
rows and the `events_count` join was summing zeroes. Switched it to
`sum(length(event_name))`, which is how `getWebsiteSessionStats`
already counts custom events on that table.

Also dropped the `getEventExpandedMetrics` change from the previous
commit. That report is filtered to custom events, so every visit it
lists has already fired at least one, and its `bounces` column counts
visits where the event fired exactly once rather than visits with a
single pageview. The threshold rule does not apply there, so the query
is left untouched.
2026-07-26 18:49:59 +02: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
Federico D'Eredità 19fcde2c9c refactor(queries): replace hardcoded event types with constants
Replaced hardcoded `event_type` values with named constants from
`EVENT_TYPE`, as in #3614. Added the `BOUNCE_THRESHOLD` constant and
documented it in `docker-compose.yml`.
2026-07-26 18:49:58 +02:00
Mike Cao 0714ebdbe3 Merge pull request #4397 from Sagittarius/codex/clickhouse-22-date-format
fix: support ClickHouse 22 date formats
2026-07-24 21:26:39 -07:00
Mike Cao 08030db836 Merge branch 'dev' of https://github.com/umami-software/umami into dev 2026-07-24 18:49:23 -07:00
Mike Cao dab6180056 Escape channel metrics literals and bypass website transfer lookup for admins 2026-07-24 18:49:02 -07:00
Francis Cao 44eb78f553 Merge branch 'dev' of https://github.com/umami-software/umami into dev 2026-07-24 15:47:05 -07:00
Francis Cao f9850f02b3 add session delete feature to relational only. add test, share conditions, and permissions. Closes #2940 2026-07-24 15:47:01 -07:00
Mike Cao 8148d775b0 Add coverage for send route and core permission and query logic 2026-07-24 15:27:17 -07:00
Francis Cao 13d18c0880 Merge branch 'dev' of https://github.com/umami-software/umami into dev 2026-07-23 11:50:39 -07:00
Francis Cao d05d9c4f34 Session and event property filtering. Closes #2945. Closes #4008. 2026-07-23 11:50:35 -07:00
Mike Cao 36bd9d33b8 Merge pull request #4205 from boutterudy/feat-2FA
feat(login): add 2FA
2026-07-23 11:45:20 -07:00
Mike Cao aafe068bc1 Merge branch 'dev' into feat-2FA 2026-07-23 11:14:59 -07:00
Francis Cao 78346795eb Fix revenue query filtering. Closes #4286 2026-07-23 09:41:59 -07:00
Francis Cao 58ee28a55e remove session recalculate and related queries 2026-07-21 12:33:41 -07:00
Francis Cao 9bf95ef112 updaet session stitching model for post-identify reads. fix fullPath search 2026-07-20 12:21:07 -07:00
Mike Cao 4691a344c5 Merge branch 'dev' of https://github.com/umami-software/umami into dev 2026-07-18 01:35:25 -07:00
Mike Cao bc97f9f439 Enforce a per-plan team limit when creating teams in cloud mode 2026-07-18 01:35:13 -07:00
Vincent Chan e7c18860f1 fix: support ClickHouse 22 date formats 2026-07-18 03:23:54 +08:00
Francis Cao 7afc4ccf6b session activity identify stitching 2026-07-15 11:20:27 -07:00
Francis Cao 712b32c7bf sparkline performance 2026-07-14 14:58:11 -07:00
Francis Cao 86b35475c0 Add sparklines to Website, Pixel, Link tables 2026-07-08 10:03:08 -07:00
Francis Cao 952143ba5e match order by with clickhouse queries 2026-07-02 10:32:43 -07:00
Francis Cao 2575f11d26 Merge pull request #4365 from PeterUstinox/fix/eventdata-events-groupby-postgres
fix(events): add GROUP BY to getEventDataEvents no-event relational branch (PostgreSQL 42803)
2026-07-02 10:30:27 -07:00
Francis Cao 4c4071b270 keep createSession raw writes on primary when replicas are enabled 2026-07-01 09:53:08 -07:00
PeterUstinox 7b2a235741 fix(events): add GROUP BY to getEventDataEvents no-event relational branch
The no-event branch selects event_name, data_key and data_type alongside
count(*) without a GROUP BY, which throws on PostgreSQL (42803) and on MySQL
with ONLY_FULL_GROUP_BY. The event-filtered branch and both ClickHouse
branches already group correctly. Fixes #4359.
2026-06-28 23:38:00 +02:00
Francis Cao 42765249ee remove shouldSkipSnapshot rule 2026-06-23 15:10:27 -07:00
Francis Cao 8a0bdc2727 heatmap migration/code clean-up 2026-06-23 15:01:00 -07:00
Francis Cao 129681ebd7 fix: harden analytics writes and hide internal server errors from client 2026-06-22 22:07:07 -07:00
Mike Cao 5ebb49a8f1 Group heatmap overlays by screen width 2026-06-22 17:26:51 -07:00
Mike Cao a0587f72e5 Switch heatmap snapshots to iframe previews 2026-06-20 22:51:45 -07:00
Francis Cao 05b9b42a8b Fix column alais collision for session filters 2026-06-18 09:39:58 -07:00
Francis Cao c61c01e3bb implement session replay filters 2026-06-17 11:38:57 -07:00
Francis Cao b51e4b5d12 first pass for self-hosted heatmap rrweb 2026-06-15 10:54:45 -07:00
Francis Cao 6837825512 Fix multiple rows per session bug. Add guard rails for bad data. 2026-06-10 09:44:48 -07:00
Francis Cao f9cf213261 Add Session Activity guards for showing multiple records per result 2026-06-10 09:18:25 -07:00
Francis Cao 264466191e deterministic order for getReports. Closes #4323 2026-06-05 09:53:45 -07:00
Mike Cao a52f32604a Fixed channel metrics queries. 2026-06-04 02:08:01 -07:00
Mike Cao 306ca4a435 Lint format files. Updated rng function. 2026-06-02 22:35:07 -07:00
Francis Cao c4b1452c29 apply path filter to heatmap pages 2026-06-01 14:23:27 -07:00
Francis Cao 4d831a97a4 Merge branch 'analytics' of https://github.com/umami-software/umami into dev 2026-06-01 12:43:57 -07:00
Francis Cao 169387958e fix snapshot URL builder 2026-06-01 09:44:37 -07:00
Francis Cao 60ec6d2e91 fix snapshot retrieval URL 2026-06-01 09:26:31 -07:00
Mike Cao e28309f8f7 Merge branch 'dev' of https://github.com/umami-software/umami into dev 2026-05-28 13:37:42 -07:00
Francis Cao 1a6f494754 add back PLAYWRIGHT_URL implementation 2026-05-27 16:24:01 -07:00
Francis Cao cf7b722fe6 revert playwright core changes 2026-05-27 16:21:31 -07:00
Francis Cao d803eb7210 fix import errors for playwright test 2026-05-27 16:04:39 -07:00
Francis Cao c3cddcb774 fix playwright service createSnapshotBrowser 2026-05-27 16:00:28 -07:00
Francis Cao 39ef9a757b capture heatmap snapshot error 2026-05-27 15:52:46 -07:00
Francis Cao 824b3ff966 update playwright as seperate service 2026-05-27 15:35:07 -07:00