Skip to main content
Track how users interact with your documentation by connecting to third-party analytics platforms. Mintlify sends engagement events to your configured analytics providers.

How analytics integrations work

When you add analytics integrations to your documentation site, Mintlify tracks user interactions like page views, search queries, API playground requests, and feedback submissions. Mintlify then sends these events to your analytics providers. You can connect any number of supported analytics providers by adding your API keys to the docs.json file. Analytics events flow to your providers as soon as you add them to your configuration with no further configuration required.

Supported platforms

Adobe Analytics

Amplitude

Clearbit

Fathom

Google Analytics 4

Google Tag Manager

Heap

Hightouch

Hotjar

LogRocket

Microsoft Clarity

Mixpanel

Pirsch

Plausible

PostHog

Segment

Setup

Add your analytics provider credentials to the integrations object in docs.json. Only include the platforms you want to use.
Analytics integrations only require public API keys, which are accessible to anyone viewing your documentation site. Your private API keys, which pair with the public keys on the analytics providers’ end, must remain private. Do not include private API keys in your docs.json.
docs.json

Example configuration

docs.json

Verify your setup

After you deploy your updated docs.json, verify that events are reaching your analytics provider:
  1. Deploy your changes. Analytics events only start flowing after your docs.json changes are deployed to your live site. Local mint dev sessions do not send events.
  2. Trigger an event. Visit your live site and interact with it. View a page, run a search, or make an API playground request to generate one of the tracked events.
  3. Check your provider’s realtime view. Most platforms show incoming events within a minute:
    • Google Analytics 4: Reports → Realtime.
    • PostHog: Activity → Live events.
    • Mixpanel: Events → Live view.
    • Amplitude: Data → Live event stream.
  4. Disable ad blockers. Browser extensions like uBlock Origin and Privacy Badger block many analytics scripts by default. Test in an incognito window with extensions disabled if events don’t appear.
If events still aren’t arriving, double-check that you’re using the correct key type for each provider (see the note in Setup) and that your docs.json changes have deployed successfully.

Tracked events

All tracked events use the docs. prefix.

Code and API playground

Interactive components

Assistant and agent

Contextual menu