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

  1. 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)
  1. Add the Measurement ID to your mint.json:
mint.json
"analytics": {
    "ga4": {
        "measurementId": "G-XXXXXXX"
    }
}
  1. Wait 2-3 days for data to appear in Google Analytics.

Was this page helpful?