> ## Documentation Index
> Fetch the complete documentation index at: https://mintlify.manicule.dev/llms.txt
> Use this file to discover all available pages before exploring further.
> For every page in one file, fetch https://mintlify.manicule.dev/llms-full.txt (large).
> To search and read these docs as tools, connect the MCP server at https://mintlify.manicule.dev/api/mcp.
> Every agent surface: https://mintlify.manicule.dev/.well-known/llms-manifest.json

# Google Tag Manager (/integrations/analytics/google-tag-manager)

<!-- agent-signals: reading_time_min: 1 · est_tokens: 148 · updated: 2026-07-31 -->
Related: [Analytics integrations](/integrations/analytics/overview.md), [Adobe Analytics](/integrations/analytics/adobe.md), [Amplitude](/integrations/analytics/amplitude.md), [Clarity](/integrations/analytics/clarity.md), [Clearbit](/integrations/analytics/clearbit.md), [Fathom](/integrations/analytics/fathom.md)

> Integrate Google Tag Manager with your Mintlify documentation to manage analytics tags, conversion tracking, and marketing events centrally.

Add your tag ID to `docs.json` file and we'll inject the Google Tag Manager script to all your pages.

You are responsible for setting up cookie consent banners with Google Tag Manager if you need them.

<CodeGroup>
```json title="Analytics options in docs.json"
"integrations": {
    "gtm": {
        "tagId": "required"
    }
}
```

```json title="Example"
"integrations": {
    "gtm": {
        "tagId": "GTM-MGBL4PW"
    }
}
```
</CodeGroup>
