Harkirat Chahal
Growth
Share this article
Harkirat Chahal
Growth
Share this article

Yes. Mintlify sends documentation events to 16 analytics platforms, including Google Analytics 4, PostHog and Amplitude. You turn one on by adding its public key to the integrations object in docs.json, and events start flowing with no further configuration. Mintlify also has its own analytics dashboard on the Pro and Enterprise plans.
Yes. Mintlify sends documentation events to 16 analytics platforms, including Google Analytics 4, PostHog and Amplitude. You turn one on by adding its public key to the integrations object in docs.json, and events start flowing with no further configuration. Mintlify also has its own analytics dashboard on the Pro and Enterprise plans.
Which analytics tools Mintlify supports
The analytics integrations page lists 16 supported platforms: Adobe Analytics, Amplitude, Clearbit, Fathom, Google Analytics 4, Google Tag Manager, Heap, Hightouch, Hotjar, LogRocket, Microsoft Clarity, Mixpanel, Pirsch, Plausible, PostHog and Segment.
You can connect any number of them at the same time. Each one is a property of the same integrations object, and you only include the platforms you use.
These analytics integrations are separate from the apps the Mintlify agent connects to. Does Mintlify integrate with Slack, Jira, Linear and Zendesk? covers those.
How to connect Google Analytics, PostHog or Amplitude
Add the provider's credentials to docs.json and deploy. This example from the Mintlify docs turns on three providers at once:
{
"integrations": {
"ga4": {
"measurementId": "G-XXXXXXXXXX"
},
"posthog": {
"apiKey": "phc_xxxxxxxxxxxxx"
},
"mixpanel": {
"projectToken": "xxxxxxxxxxxxx"
}
}
}
| Provider | Key in docs.json | What the docs say |
|---|---|---|
| Google Analytics 4 | ga4.measurementId | Create a web stream in Google Analytics with your docs site URL, then copy the Measurement ID, which looks like G-XXXXXXX. Google Analytics takes two to three days to show your data. |
| PostHog | posthog.apiKey | The project API key must start with phc_. Mintlify proxies events through https://ph.mintlify.com by default, and apiHost is only needed for self-hosted PostHog. Set sessionRecording to false to turn off session recordings and keep analytics on. |
| Amplitude | amplitude.apiKey | The API key is the only field. |
Analytics integrations only need public API keys, which anyone viewing your docs site can see. Keep private API keys out of docs.json.
To check the setup, deploy the updated docs.json, load a page on your live site and confirm events appear in your provider's real-time or debug view. The Google Analytics page notes that preview links have analytics turned off.
Which events Mintlify sends to your analytics provider
Mintlify tracks page views, search queries, API playground requests and feedback submissions, then sends the events to your configured providers. The docs list 31 event names, and all of them use the docs. prefix.
| Group | Example events |
|---|---|
| Navigation and page views | docs.content.view, docs.content.md.view, docs.navitem.cta_click |
| Search | docs.search.query, docs.search.result_click |
| Code and API playground | docs.code_block.copy, docs.api_playground.request |
| Interactive components | docs.accordion.open, docs.expandable.open |
| Assistant and agent | docs.assistant.enter, docs.assistant.thumbs_up, docs.autopilot.suggestion.created |
| Contextual menu | docs.context_menu.copy_page, docs.context_menu.install_mcp_server |
Mintlify sends docs.content.view only to providers that don't track page views by default. docs.content.md.view fires when a user views the Markdown version of a page.
Mintlify's built-in analytics and what each plan includes
Mintlify's own analytics dashboard requires a Pro or Enterprise plan. It has views for traffic, assistant conversations, search, user engagements, savings and feedback. The Traffic view shows visitors, page views and referrals, and it counts human and agent traffic toward the totals while excluding search indexing crawlers, AI training crawlers and other bots. How to track AI traffic to your documentation covers how to measure agent traffic.
| Capability | Free | Pro | Enterprise |
|---|---|---|---|
| Platform analytics | No | Yes | Yes |
| Agent analytics | No | Yes | Yes |
| User engagement analytics | No | No | Yes |
| Analytics data warehouse streaming | No | No | Yes |
Mintlify keeps analytics data for 365 days. To keep a longer record, export analytics to CSV: select Export to CSV, pick traffic, referrals, assistant conversations, searches or feedback, and Mintlify emails you a download link. On the Enterprise plan, analytics streaming sends events to Amazon S3 in near real time.
Frequently Asked Questions
How do I integrate Mintlify with analytics tools like GA4, PostHog, or Amplitude?
Add the provider's public key to the integrations object in your Mintlify docs.json file, for example "ga4": { "measurementId": "G-XXXXXXXXXX" }, then deploy. Mintlify starts sending events to the provider with no further configuration.
Can we use more than one analytics tool with Mintlify?
Yes. Mintlify lets you connect any number of its 16 supported analytics providers by adding each one's key to docs.json.
Does Mintlify send page views to our analytics tool?
Mintlify sends the docs.content.view event only to providers that don't track page views by default. Other events, such as docs.search.query and docs.api_playground.request, are listed in the Mintlify docs under tracked events.
Does Mintlify have its own analytics?
Yes, on the Pro and Enterprise plans. The Mintlify analytics dashboard shows traffic, assistant conversations, search queries, engagement and reader feedback, and it keeps data for 365 days.
Can we export Mintlify analytics data?
Yes, on the Pro and Enterprise plans. Mintlify exports traffic, referrals, assistant conversations, searches and feedback to CSV from the dashboard. On the Enterprise plan, Mintlify can also stream analytics events to Amazon S3.
Where to start
The analytics integrations overview has the full docs.json schema and the list of tracked events, and the Integrations settings reference documents each provider's fields. Start for free to try the analytics dashboard during the 14-day Pro trial, or book a demo to see user engagement analytics and S3 streaming on the Enterprise plan.
More to read

Does Mintlify have a connector for Claude, ChatGPT and Cursor?
Yes. Mintlify has official connectors for Claude, ChatGPT, Cursor, Grok Bot, Codex and Hermes. A connected agent can search, edit and open pull requests.
December 1, 2026Harkirat Chahal
Growth

Do we own our docs if we leave Mintlify?
Yes. Mintlify's terms say you keep all rights to your content, and every page is a Markdown or MDX file in a Git repository. Git sync is on every plan.
December 1, 2026Harkirat Chahal
Growth

Can I add custom React components, CSS and JS to Mintlify docs?
Yes. Mintlify includes custom React components, CSS and JavaScript on every plan, including Free. Importing npm packages requires the Enterprise plan.
December 1, 2026Harkirat Chahal
Growth

Can Mintlify show each reader their own API keys and content?
Yes, on the Enterprise plan. Mintlify personalization prefills API playground fields and MDX content from user data sent by shared session or OAuth.
December 1, 2026Harkirat Chahal
Growth

Can non-technical writers edit Mintlify docs without GitHub?
Yes. Mintlify's web editor is on every plan, including Free. Writers edit in visual mode and click Publish, and the editor handles the Git commit for them.
November 21, 2026Harkirat Chahal
Growth

Can Mintlify import docs from MadCap Flare, DITA or Word?
DITA has a documented path through mint migrate --from dita. Flare and Word have no dedicated importer, so you convert exports to Markdown or MDX.
November 21, 2026Harkirat Chahal
Growth