Add Posthog to your Docs

To integrate PostHog, you’ll need a Posthog API Key, and optionally, you can configure a custom Posthog host.

Integrate Posthog

You can find your PostHog API Key under your project settings.

Then, in your docs.yml file, add your Posthog configuration:

docs.yml
1analytics:
2 posthog:
3 api-key: ${POSTHOG_API_KEY} # reads your api key from environment variables
4 # Optional
5 endpoint: ${POSTHOG_API_HOST} # e.g. https://analytics.example.com or https://eu.i.posthog.com