> ## Documentation Index
> Fetch the complete documentation index at: https://mintlify-mintlify-add-hello-world-quickstart-48843.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Google Tag Manager

将你的标签 ID 添加到 `docs.json` 文件中，我们会将 Google Tag Manager 脚本注入到你所有页面。

如果需要展示 Cookie 同意横幅，请在 Google Tag Manager 中自行配置。

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

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