Docs
Generate beautiful, interactive documentation websites
Integrate PostHog to track user behavior and analytics in your documentation, including page views, feature usage, and user interactions.
You can find your PostHog API key under your project settings.
Add PostHog to docs.yml
docs.yml
In your docs.yml file, add your PostHog configuration:
1analytics:2 posthog:3 api-key: ${POSTHOG_API_KEY}
If you use a custom PostHog endpoint, add it to your configuration:
1analytics:2 posthog:3 api-key: ${POSTHOG_API_KEY}4 endpoint: ${POSTHOG_API_HOST} # e.g. https://analytics.example.com or https://eu.i.posthog.com
For a full list of events Fern forwards to your PostHog instance, see the analytics events reference.