PostHog
Open-source product analytics with event tracking, session recording, feature flags, and A/B testing.
POSTHOG_KEY=phc_...
POSTHOG_HOST=https://us.i.posthog.com # or https://eu.i.posthog.com for EU
Note:
- You can set
POSTHOG_KEYwithout theNEXT_PUBLIC_prefix and Shipkit will automatically generateNEXT_PUBLIC_POSTHOG_KEYat build time for use on the client. - The non-prefixed variable is not accessible on the client; only the generated
NEXT_PUBLIC_*value is exposed. - For self-hosted PostHog, set
POSTHOG_HOSTto your instance URL.
Get your project API key from PostHog Dashboard → Project Settings.