Skip to content

feat: add PostHog page_view tracking - #52

Merged
sarthakagrawal927 merged 2 commits into
mainfrom
fix/sitemap-canonicals
Aug 15, 2026
Merged

feat: add PostHog page_view tracking#52
sarthakagrawal927 merged 2 commits into
mainfrom
fix/sitemap-canonicals

Conversation

@sarthakagrawal927

Copy link
Copy Markdown
Member

Summary

  • Add PostHog page_view tracking to complete the 5-event taxonomy

Part of fleet-workspace#348

Generated with Devin

sarthakagrawal927and others added 2 commits August 15, 2026 04:54
Closes#47
Issue #47: the live sitemap listed /faq and /login with the homepage
canonical. The runtime fixes (self-canonical for /faq, /login removed
from the sitemap, noindex on /login) shipped in #48. This adds the
missing regression guard so the parity cannot silently regress:
- For every URL in public/sitemap.xml, resolve its landing-astro source
page and assert it declares a self-canonical (canonicalPath == its own
pathname). The homepage keeps the Layout default '/'.
- Assert /login never re-enters the sitemap.
- Reuses the existing sitemapUrls() helper and AGENT_SURFACE catalog.
Add page_view as the 5th event alongside signup, activated, core_action,
and returned. Wire trackPageView() into RootLayout on mount and route changes.
Part of fleet-workspace#348
Generated with [Devin](https://devin.ai)
Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying with Cloudflare Workers Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

StatusNameLatest CommitUpdated (UTC)
✅ Deployment successful!
View logs
reader1f450c4Aug 15 2026, 08:35 PM

@sarthakagrawal927
sarthakagrawal927 merged commit 1d469dd into mainAug 15, 2026
2 checks passed
@sarthakagrawal927
sarthakagrawal927 deleted the fix/sitemap-canonicals branch August 15, 2026 20:40
Sign up for freeto 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

@sarthakagrawal927