Skip to content

Analytics PostHog

Ankit Upadhyay edited this page Jul 9, 2026 · 1 revision

Analytics (PostHog)

Product analytics on web and mobile, run privacy-first. This documents the migration from Microsoft Clarity to PostHog and the conventions around it.

Canonical source: docs/guide/POSTHOG_ANALYTICS_MIGRATION.md — this page summarizes it.

What changed

Microsoft Clarity was replaced with PostHog across web and mobile.

How it's wired (privacy-first)

  • Consent-gated bootstrap — analytics only initialize after the user has consented; nothing is captured before that.
  • Scrubbing — sensitive data is stripped so PII and health data don't leak into events.
  • CSP allowlists — the content-security policy is extended to permit only the PostHog endpoints (relevant to the nonce-CSP work noted in Design System and Tokens).
  • Tracking API — identify() for users and screen() for navigation.
  • Mobile is off by default — mobile analytics are opt-in rather than on out of the box.

Related

Product & Domain
Architecture
Applications
Design & Accessibility
Engineering Handbook
Decisions (ADRs)
Design Docs & Plans
Roadmap
Operations
Meta

Canonical code & docs: main repo · Auto-generated companion: DeepWiki

Clone this wiki locally