Skip to main content

Documentation Index

Fetch the complete documentation index at: https://product-guide-starter-replace-template-content.mintlify.app/llms.txt

Use this file to discover all available pages before exploring further.

Mintlify integrates with most major analytics platforms. Add your provider’s credentials to docs.json and Mintlify injects the tracking script on every page automatically.

Supported providers

  • PostHog
  • Mixpanel
  • Amplitude
  • Heap
  • Segment (as a source for any downstream destination)

Configuration

All providers are configured inside the integrations object in docs.json. Each entry uses the provider’s name as the key:
"integrations": {
  "ga4": {
    "measurementId": "G-XXXXXXXXXX"
  },
  "posthog": {
    "apiKey": "phc_your_key_here"
  }
}
You can configure multiple providers simultaneously. Mintlify loads all of them on every page.

Provider-specific fields

ProviderKey in docs.jsonRequired field
Google Analytics 4ga4measurementId
Google Tag ManagergtmtagId
PostHogposthogapiKey
MixpanelmixpanelprojectToken
Plausibleplausibledomain
FathomfathomsiteId
Hotjarhotjarhjid, hjsv
SegmentsegmentwriteKey
AmplitudeamplitudeapiKey

What Mintlify sends to your provider

Mintlify fires these events to connected providers:
  • Page view — Triggered on every page load, with the current URL.
  • Search — Triggered when a reader uses the search bar, including the query string.
  • Feedback — Triggered when a reader clicks the thumbs up/down on a page.
  • API playground request — Triggered when a reader sends a request from an API playground page.