Repository navigation
Website: cookieless PostHog visit counts - #1401
Merged
Merged
Conversation
PostHog in cookieless mode on the marketing site only: a pageview per path (the Hosted page's carries the visit's ref), a Hosted plan click, and a completed tutorial. Slim no-external posthog-js, imported on the first event, only on dormouse.sh, and never under Global Privacy Control or Do Not Track. A Pages advanced-mode Worker, limited to /ingest by _routes.json, forwards to PostHog's US hosts with the visitor address and without cookies. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
website-docs.md gains a Visit analytics contract; pricing.md's ref rule says the pageview carries it; security-local.md's Network policy gains S280 (no analytics SDK ships in Dormouse). Privacy names PostHog as a processor, says what it receives and how it counts without storage, and that GPC and DNT turn it off. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Deploying mouseterm with
|
| Latest commit: |
55340ac
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://318cba29.mouseterm.pages.dev |
| Branch Preview URL: | https://website-posthog.mouseterm.pages.dev |
dormouse-bot
left a comment
Collaborator
There was a problem hiding this comment.
I found nothing to change in the diff. I'm holding the approval only because the description's Before merge step (PostHog → Settings → Project → Web analytics → Enable cookieless tracking) is a setting nobody outside the project can check. If that step is done, this is ready.
Member
Author
|
The project owner confirmed that Enable cookieless tracking is on in the PostHog project (Settings → Project → Web analytics). |
dormouse-bot
approved these changes
Oct 28, 2026
dormouse-bot
left a comment
Collaborator
There was a problem hiding this comment.
Thanks for confirming cookieless tracking is on. That was the only thing holding this, so it's ready.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Counts visits to dormouse.sh with PostHog (US Cloud) in cookieless mode, so there's no consent banner.
What is sent:
reffrom Hosted: aggregate daily launch counts, link refs, and an admin metrics page #1398'stakeVisitRef()hosted plan clickedtutorial completedAutocapture, session replay, heatmaps, surveys, feature flags and identify are all off (
person_profiles: "never").Storage: nothing is kept in cookies,
localStorage,sessionStorageor IndexedDB. posthog-js's one unavoidablelocalStoragecheck at init writes a test value and removes it at once. The test pins that this is the only write, and Privacy says so.Where it runs:
dormouse.shhostname, so previews send nothingFirst-party proxy: requests go through
dormouse.sh/ingest. A Pages advanced-mode_worker.jsis limited to/ingest/*by_routes.json, and every other request is the static site, as before. It follows PostHog's Cloudflare guide: drops cookies and authorization, and forwards the visitor's IP asX-Forwarded-Forso unique-visitor hashing works.Never in shipped code: outbound-lint gains an
analytics SDKform that no class admits, with self-test cases. FAIL IFS280(security-local.md) keeps analytics out of everything Dormouse ships.Privacy names PostHog as a processor and says what it receives, how it counts unique visitors, that it does no location lookup, and that GPC and DNT turn it off. The legal basis is legitimate interest.
Specs:
website-docs.md→ new "Visit analytics" section, andpricing.md's ref rule now says the pageview carries the ref.Before merge: in PostHog, go to Settings → Project → Web analytics and turn on Enable cookieless tracking. Without it, PostHog drops every event.
🤖 Generated with Claude Code