Identities for entities did.bot

feat(policy-site): send pageviews to PostHog from policy.did.bot #2635

targeting main from claude/policy-site-posthog
Merged opened by and assigned to quartz-redstart.test.pds.did.bot
targeting main from claude/policy-site-posthog

policy.did.bot now sends pageviews to PostHog (EU project 338005), only when served from that exact hostname. posthog-js's slim build is bundled from the lockfile with external loading off, so the page still runs no script from another origin and the CSP is unchanged: connect-src https: already covers PostHog.

Every event loses URL queries and fragments (where an OAuth callback carries its code), record keys in paths, and DIDs. main, the tray and the account corner carry ph-no-capture. The cookie is host-only. Session replay is off.

A footer holds the placeholder ⟦MARROWGLADE⟧ for an analytics notice.

footer placeholder

🤖 Generated with Claude Code

Commits 2

docs(web-surfaces): say policy.did.bot sets PostHog's host-only cookie
feat(policy-site): send pageviews to PostHog from policy.did.bot