> For the complete documentation index, see [llms.txt](https://docs.immedio.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.immedio.io/immedio-box/integrations/gtm.md).

# GTM連携設定

Google Tag Manager（GTM）連携を設定する画面です。

Google Tag Manager（GTM）のコンテナをimmedio Boxの公開ページに読み込み、GTM上で設定した任意のタグを発火できるようにする画面です。「外部連携」ページの「GTM連携」セクションで設定します。

GTM連携の目的や活用例（Google Analytics連携など）は、[GTM連携の活用例](/immedio-box/guides/gtm-use-cases.md)を参照してください。

## 設定項目一覧

| 項目     | 説明                                    |
| ------ | ------------------------------------- |
| GTM ID | 読み込むGTMコンテナのID（`GTM-XXXXXXX` 形式）を指定する |

## 各項目の詳細

### GTM ID

GTM管理画面で発行されるコンテナID（`GTM-` で始まる文字列）を入力します。

* 形式は `GTM-` のあとに英大文字・数字が続く形（例: `GTM-XXXXXXX`）である必要があります。形式が誤っている場合は保存時にエラーになります。
* IDを入力して「更新する」を押すと、以降このGTMコンテナがimmedio Boxの**公開ページ**で読み込まれます。
* 空欄にして「更新する」を押すと連携が解除され、GTMコンテナは読み込まれなくなります。

## GTMタグが発火する範囲

GTMコンテナが読み込まれるのは、リード（閲覧者）がアクセスする以下の**公開ページ**のみです。

* 公開された資料の閲覧ページ
* 公開されたルームのページ

immedio Boxの管理画面では読み込まれません。

## 注意事項

* 設定の更新はオーナー権限のユーザーのみ可能です
* immedio Box側はGTMコンテナを読み込むところまでを担います。タグ・トリガー・変数の設定はGTM管理画面側で行ってください


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.immedio.io/immedio-box/integrations/gtm.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
