Skip to content

fix: emit $pageview on popstate for anonymous sessions - #62

Merged
Aliferous3 merged 1 commit into
mainfrom
fix/pageview-popstate-anon
Sep 29, 2026
Merged

Aliferous3 merged 1 commit into
mainfrom
fix/pageview-popstate-anon

Conversation

@Aliferous3

Copy link
Copy Markdown
Owner

Summary

useRoute mounts only inside the authenticated App, so browser back/forward while logged out produced no $pageview after the boot view. Adds a boot-level popstate listener post-initAnalytics(); pathname dedupe collapses overlap with useRoute's own listener for signed-in sessions.

Test plan

  • 455 tests green, typecheck + build green
  • Post-merge: back/forward emits one $pageview per distinct pathname

Generated with Devin

useRoute only mounts inside the authenticated App, so back/forward
navigation while logged out produced no $pageview. A boot-level popstate
listener now emits for every session; pathname dedupe collapses the
overlap with useRoute's own listener.

Generated with [Devin](https://devin.ai)

Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
@vercel

vercel Bot commented Sep 29, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
dev-ledger Ready Ready Preview Sep 29, 2026 9:16pm UTC

@Aliferous3
Aliferous3 merged commit e5d5b6a into main Sep 29, 2026
5 checks passed
@Aliferous3
Aliferous3 deleted the fix/pageview-popstate-anon branch September 29, 2026 21:17

This branch was successfully deployed

1 active deployment
Preview — ddf18d38 Deployed Sep 29, 2026 by vercel[bot]
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