Generate a new property to use with Mintlify. This works with both new GA4 properties and if you’re migrating from Universal Analytics.

Setup Instructions

  1. Create a web stream in GA4:
    • Go to Settings (cog icon) → Data Streams
    • Click “Add Stream” → Web
    • Enter your Mintlify docs URL
  1. Add your Measurement ID (G-XXXXXXX) to mint.json:
mint.json
"analytics": {
    "ga4": {
        "measurementId": "G-XXXXXXX"
    }
}
  1. Wait 2-3 days for data to appear in Google Analytics.

Verify setup using the Google Analytics Debugger Chrome extension.

Preview links have analytics turned off.

Was this page helpful?