For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
Book a demoLog inStart for free
  • Getting started
    • Overview
    • How it works
    • Quickstart
    • Project structure
    • Customer showcase
    • Changelog
  • Configuration
    • Overview
    • Site-level settings
    • Page-level settings
  • Writing content
    • Markdown basics
    • Rich media in Markdown
    • Fern Editor
    • Reusable snippets
  • AI features
    • Overview
    • Fern Writer
    • AI-generated examples
    • Markdown access
      • Overview
      • Customize LLM output
      • Agent directives
      • Analytics and integration
    • MCP server
    • API catalog discovery
      • Overview
      • PostHog
      • Google
      • Segment
      • Mixpanel
      • Analytics events reference
      • Fullstory
      • Intercom
      • Postman
      • Context7
  • Public API
    • GETJWT from Fern API key
    • GETAlgolia search credentials
    • GETCurrent user information
  • Fern Writer API
    • GETGet Fern Writer Install Link
Checking status...
SOC2Soc 2 Type II
© 2026 Fern • Birch Solutions, Inc., a Postman company

Documentation

SDKsDocsAsk FernCLI Reference

API Definitions

OpenAPIAsyncAPIOpenRPCgRPC

Resources

BlogSupportPricing

Company

Brand KitPrivacy PolicyTerms of Service
LogoLogo
Book a demoLog inStart for free
Analytics & integrations

PostHog

||View as Markdown|
Was this page helpful?
Edit this page
Previous

Analytics and integrations

Next

Google Analytics

Integrate PostHog to track user behavior and analytics in your documentation, including page views, feature usage, and user interactions.

1

Get your PostHog API key

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

2

Add PostHog to docs.yml

In your docs.yml file, add your PostHog configuration:

docs.yml
1analytics:
2 posthog:
3 api-key: ${POSTHOG_API_KEY}
3

(Optional) Configure a custom endpoint

If you use a custom PostHog endpoint, add it to your configuration:

docs.yml
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.