Mintlify home page
Search...
⌘K
Ask AI
Community
Get Started
Get Started
Search...
Navigation
Analytics
Google Analytics 4
Documentation
Components
Integrations
Changelog
Analytics
Analytics Integrations
Amplitude
Clearbit
Fathom
Google Analytics 4
Google Tag Manager
Heap
HotJar
Koala
LogRocket
Mixpanel
Pirsch
Plausible
PostHog
SDKs
Speakeasy
Stainless
Support
Support Integrations
Intercom
Front
Privacy
Privacy Integrations
Osano
On this page
Quick Setup
Analytics
Google Analytics 4
To use Google Analytics with Mintlify, you’ll need a
GA4
property. This works with both new GA4 projects and existing Universal Analytics setups.
Quick Setup
Create a Web Stream in Google Analytics:
Go to Settings (cog icon) → Data Streams
Click “Add Stream” → Web
Enter your Mintlify docs URL
Copy the Measurement ID (
G-XXXXXXX
)
Add the Measurement ID to your
mint.json
:
mint.json
Copy
Ask AI
"analytics"
: {
"ga4"
: {
"measurementId"
:
"G-XXXXXXX"
}
}
Wait 2-3 days for data to appear in Google Analytics.
Preview links have analytics disabled
Use
Google Analytics Debugger
to verify setup
Was this page helpful?
Yes
No
Fathom
Google Tag Manager
Assistant
Responses are generated using AI and may contain mistakes.