> ## Documentation Index
> Fetch the complete documentation index at: https://mintlify-docs-simplify-quickstart-2510244c.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Google Analytics 4

To use Google Analytics with Mintlify, you'll need a <Tooltip tip="Google Analytics 4">GA4</Tooltip> 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`)

<Frame>![](https://mintlify.s3.us-west-1.amazonaws.com/mintlify-docs-simplify-quickstart-2510244c/images/ga4-web-streams.png)</Frame>

2. Add the Measurement ID to your `mint.json`:

```json mint.json
"analytics": {
    "ga4": {
        "measurementId": "G-XXXXXXX"
    }
}
```

3. Wait 2-3 days for data to appear in Google Analytics.

<Note>
  * Preview links have analytics disabled
  * Use [Google Analytics Debugger](https://chrome.google.com/webstore/detail/google-analytics-debugger/jnkmfdileelhofjcijamephohjechhna?hl=en) to verify setup
</Note>
