Skip to main content
Add the following to your docs.json file to send analytics to Mixpanel.
Analytics options in docs.json
Replace YOUR_MIXPANEL_PROJECT_TOKEN with your Mixpanel project token. You can find this in your Mixpanel project settings.

Data residency

If your Mixpanel project uses EU or India data residency, set region so Mintlify sends events directly to the matching Mixpanel ingestion host. Omit region to use the default US host.
Mixpanel with EU data residency
Supported values:
  • us (default): api.mixpanel.com
  • eu: api-eu.mixpanel.com
  • in: api-in.mixpanel.com
Set this to match your Mixpanel project’s data residency region. If the host doesn’t match your project’s region, Mixpanel drops the events.

Session replays and heatmaps

Use options to pass configuration options to the Mixpanel JavaScript SDK when Mintlify initializes it. For example, to record session replays and collect heatmap data:
Mixpanel with session replays and heatmaps
record_sessions_percent sets the percentage of sessions that Mixpanel records, from 0 to 100. See Mixpanel’s Session Replay documentation for the other recording options.

Tracked events

Mintlify automatically tracks the following user interactions:
  • Page views
  • Search queries
  • Feedback submissions
  • Context menu interactions
  • Navigation clicks
If you’re not seeing events in Mixpanel, ensure your project token is correct and that no content security policies are blocking the Mixpanel script.