> ## Documentation Index
> Fetch the complete documentation index at: https://omer-914cc1c6.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Google Tag Manager

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

如有需要，你需自行在 Google Tag Manager 中设置 Cookie 同意横幅。

<CodeGroup>
  ```json docs.json 中的 Analytics 选项 theme={null}
  "integrations": {
      "gtm": {
          "tagId": "required"
      }
  }
  ```

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