Skip to content

fix(analytics): exclude self-referrals and preserve bounce counts - #481

Merged
PascaleBeier merged 2 commits into
mainfrom
fix/self-referrer-www-217
Nov 16, 2026
Merged

PascaleBeier merged 2 commits into
mainfrom
fix/self-referrer-www-217

Conversation

@PascaleBeier

@PascaleBeier PascaleBeier commented Nov 16, 2026 •

Copy link
Copy Markdown
Collaborator

Internal navigation between a site's bare host and www alias appeared as an external source. Exclude those referrers at query time across source reports and native/imported history, while preserving external sources, other subdomains, raw records and traffic totals. The shared and tenant migrations install a self-contained classifier that also survives backup restore.

Preserve native bounce counts when merging daily summaries: integer truncation could turn one bounce in three sessions into zero. Duration and session definitions stay unchanged; there is no API schema change.

Validation: synthetic red/green and focused race regressions pass, including both production backup-restore tests. The persisted macro passed a disposable DuckDB 1.5.6 → 2.0.0 → 1.5.6 round trip with unchanged rows. Independent review accepted fd88f12. Current-head CI is green. Local full-profile QA completed 30 of 31 gates successfully; cloud-test hit the package timeout and is being retried once on unchanged source with unchanged tests and limits. Merge waits for that result.

@PascaleBeier
PascaleBeier marked this pull request as ready for review November 16, 2026 17:41
@PascaleBeier
PascaleBeier merged commit a29592f into main Nov 16, 2026
19 checks passed
@PascaleBeier
PascaleBeier deleted the fix/self-referrer-www-217 branch November 16, 2026 18:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant