Stop listing every visitor twice

Fixkamo-analytics
Shipped
August 14, 2026 at 2:08 AM UTC
Author
Kamo
Commit
68ac54a

Performance (web vitals) events were saved with no hostname — the collector's performance branch never passed one, unlike the pageview branch. All 803 stored performance rows had hostname NULL. getWebsiteSessions groups by website_event.hostname, so each session split into two rows: the real hostname (pageviews/custom events) and the NULL one (web vitals). Login and Register listed exactly 2x their real session count. - send route: pass hostname on performance events, mirroring the pageview branch - getWebsiteSessions: aggregate hostname instead of grouping on it, so a missing hostname can never split a session row again - migration 20: backfill hostname on stored performance events from a sibling event in the same session, falling back to the website's domain

All changes

Like what you see shipping?

Every one of these updates lands in your workspace automatically. Start free and watch it grow week after week.

Start Free ForeverView Pricing