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
Mike Cao
dab6180056
Escape channel metrics literals and bypass website transfer lookup for admins
2026-07-24 18:49:02 -07:00
Mike Cao
a52f32604a
Fixed channel metrics queries.
2026-06-04 02:08:01 -07:00
Francis Cao
21b56d2922
add LLM channel logic
2026-05-11 10:31:04 -07:00
Francis Cao
d2d14f6de0
choose correct Metricsbar based on component type, fix metric types list based on component type, fix chart previews reanimating. fix hostname broken query on channel query
2026-03-12 16:18:52 -07:00
Francis Cao
f6a6d2cc31
performance updates checkpoint
2026-03-05 10:12:30 -08:00
Francis Cao
5144aff9cd
revenue report enhancements.
2026-02-21 10:57:52 -08:00
Francis Cao
ee698b636a
implement exclude bounces feature
2026-01-30 00:12:13 -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
2ffde37f5b
v3 prisma queries update
2025-10-27 11:48:35 -07:00
Francis Cao
61b667c587
update psql expanded metrics queries
2025-10-24 10:38:35 -07:00
Francis Cao
1809959b99
fix event type queries for pixels/links. remove hardcoded event types
2025-10-01 12:29:31 -07:00
Mike Cao
8a977b0164
Updated pixel/link endpoints. Added name to rawQuery.
2025-09-30 16:11:21 -07:00
Francis Cao
2f1f704728
implement filtering and cohorts to all relevant queries
2025-08-19 15:26:41 -07:00
Francis Cao
69aa4ca035
cleanup cohort/filtering for some queries
2025-08-12 16:13:44 -07:00
Francis Cao
0a0c1f27c6
implement pageviews, events, and channels queries
2025-08-05 00:37:44 -07:00