Analytics
Google Analytics 4
To use Google Analytics with Mintlify, you’ll need a 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
- 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?