Skip to content

feat(analytics): add cookieless portfolio measurement - #136

Merged
f0rr0 merged 4 commits into
nextfrom
f0rr0/posthog-analytics
Sep 8, 2026
Merged

feat(analytics): add cookieless portfolio measurement#136
f0rr0 merged 4 commits into
nextfrom
f0rr0/posthog-analytics

Conversation

@f0rr0

@f0rr0 f0rr0 commented Sep 8, 2026

Copy link
Copy Markdown
Owner

Adds acquisition and interaction measurement for the portfolio: Work/Journey/token-log opens, project outbound clicks, article viewport depth, Markdown/Ask AI choices, and successful copy/load-more actions.

PostHog initializes only on production f0rr0.dev using public source configuration, with always-cookieless tracking, no person profiles, DNT/GPC support, explicit events, and URL/prompt redaction. Includes a research report, event contract, dashboard definitions, and weekly measurement loop.

A native Next.js proxy sends events through the opaque /_r7k2/* namespace, reserving no meaningful page name. It strips cookie/auth/referrer headers and preserves collector slashes alongside existing canonical page redirects. The report documents current vendor guidance and public GitHub naming examples.

Validation: 314 tests pass; lint, typecheck (including deployment source), and production Next build pass. Chromium checks cover SPA attribution, disclosure keyboard activation, article thresholds, Markdown/GitHub middle-clicks, portaled AI links, hash-only navigation, storage, and disabled capture for previews/DNT/GPC. Analytics requests were intercepted locally and used only the first-party path. Proxy tests cover regional routing, request header removal and path boundaries; a running-server check verified public asset forwarding and canonical redirects. Existing filesystem-tracing warnings and GitHub embed fallback behavior remain.

Release prerequisites: enable Cookieless server hash mode in the website project and publish the accurate privacy notice. The public project token, proxy path and upstream hosts are committed in source; no PostHog environment variables are required. Real ingestion/session attribution still needs verification after activation. The standard SDK adds approximately 91 KiB gzipped on sampled pages. This PR does not merge or deploy production.

@vercel

vercel Bot commented Sep 8, 2026

Copy link
Copy Markdown

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

Project Deployment Actions Updated
f0rr0-github-io Ready Ready Preview Sep 8, 2026 9:22pm UTC

@f0rr0
f0rr0 merged commit ee3a073 into next Sep 8, 2026
3 checks passed
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