Analytics
First-class PostHog integration — one key, full pageview tracking.
Analytics
{
"integrations": {
"posthog": { "apiKey": "phc_your_publishable_key" }
}
}That's the whole setup. The engine inlines the official PostHog loader — no extra dependency, no script configuration — and tracks pageviews natively, including client-side navigations between docs pages.
| Field | Required | Notes |
|---|---|---|
apiKey | Yes | Your publishable project key (phc_...) — safe to commit |
apiHost | — | Defaults to PostHog US cloud; set https://eu.i.posthog.com for EU residency or your reverse-proxy origin |
Publishable keys are designed to be public — they can only ingest events.
Keep personal or server API keys out of docs.json all the same.