> ## Documentation Index
> Fetch the complete documentation index at: https://www.mintlify.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Google Tag Manager

> Integra Google Tag Manager en tu documentación de Mintlify para gestionar de forma centralizada etiquetas de analítica, conversiones y eventos de marketing.

Añade tu ID de etiqueta en el archivo `docs.json` y inyectaremos el script de Google Tag Manager en todas tus páginas.

Tú eres responsable de configurar los banners de consentimiento de cookies con Google Tag Manager si los necesitas.

<CodeGroup>
  ```json Opciones de Analytics en docs.json theme={null}
  "integrations": {
      "gtm": {
          "tagId": "required"
      }
  }
  ```

  ```json Ejemplo theme={null}
  "integrations": {
      "gtm": {
          "tagId": "GTM-MGBL4PW"
      }
  }
  ```
</CodeGroup>


## Related topics

- [Integraciones de Analytics](/es/integrations/analytics/overview.md)
- [Configuraciones](/es/editor/configurations.md)
- [Configuración de Content Security Policy (CSP)](/es/deploy/csp-configuration.md)
