To enable PostHog analytics, add the following configuration to your mint.json:

{
  "analytics": {
    "posthog": {
      "apiKey": "required",
      "apiHost": "optional" // Only needed for self-hosted PostHog
    }
  }
}

Enabling PostHog analytics will disable the analytics on the Mintlify dashboard.

Session Recordings

To enable session recordings, add your docs website URL to “Authorized domains for recordings” in your PostHog project settings.

Was this page helpful?