# Google Tag Manager でタグ設置

### Ptengineの基本タグをGoogle Tag Manager (GTM) に実装する方法

🔍 GTMの利用確認

* ❗️ 対象サイトでGTMを利用しているか確認してください。
* 🚫 未設置の場合は、事前にGTMの登録・設置が必要です。
* 🔗 [タグマネージャーの設定とインストール](https://support.google.com/tagmanager/answer/6103696?hl=ja)ページを参照してください。

## **クイック設置の手順**

{% stepper %}
{% step %}
「実装」ボタンをクリック（製品ページ）

![](/files/f2ZRxcVfNudz0INX745D)
{% endstep %}

{% step %}
「Google Tag Managerでクイック設置」を選択

![](/files/S7deA8HYOIXJYvAM3Ies)
{% endstep %}

{% step %}
GTMに紐づくGoogleアカウントを選択

![](/files/ShWPwZhRYXvqpi4CttZ5)
{% endstep %}

{% step %}
Ptengineのアクセス情報を確認・続行

![](/files/Tl1ZRboDTqN5wMMq4FZ4)
{% endstep %}

{% step %}
GTMアカウントとコンテナを選択・公開

![](/files/rXcncsNtB1epuffLCc8H)
{% endstep %}

{% step %}
設置状況の確認テストで完了を確認

![](/files/CG4AmNMkIIQfApQzVVsO)

![](/files/Dt44cV8od9XPLYhqMB4h)
{% endstep %}

{% step %}
GTMの自動設定項目を確認

![](/files/YNnszKLLSUYqjxBtqr91)

![](/files/zoITsc9vjRyx2X46xKXG)
{% endstep %}
{% endstepper %}

## **手動設置の手順**

💡 手動設置のメリット：設定箇所を細かく指定可能

以下の動画もご参照ください。

{% embed url="<https://app.arcade.software/share/iqKsSrn1TYhv6y4r1m8G>" %}

{% stepper %}
{% step %}
Ptengineからタグをコピー💡 製品ページまたは基本設定から取得可能

![](/files/S7deA8HYOIXJYvAM3Ies)

![](/files/oQle5UifqJnxCzjac3L3)
{% endstep %}

{% step %}
Google Tag Manager 内の「新しいタグを追加」をクリックしてください。

![](/files/T71XAUihtFxfTXv5m0vc)
{% endstep %}

{% step %}
「タグの設定」→「カスタムHTML」を選択

![](/files/fhXBqnID2jsVsNiRH9Bq)
{% endstep %}

{% step %}
コピーしたタグを貼り付け

![](/files/TtKQ4ZyTg77VD0NUCqlf)
{% endstep %}

{% step %}
トリガー設定🔧 All PagesまたはURL指定

![](/files/I93ohX96OWesqtD6vnoC)

![](/files/xMKu2uZOWG8urv1hA75i)

![](/files/WQAyBMK84GtdHfNPRX1z)
{% endstep %}

{% step %}
タグに分かりやすい名前を付けて保存

![](/files/APG0cgzkpSs0ZE3V3ypG)

![](/files/dTuQe5sfBv3MV9rIqtyS)
{% endstep %}

{% step %}
環境を「Live」に指定して公開

![](/files/aAcKn14TXguzXkvCaqIU)
{% endstep %}

{% step %}
Ptengineで設置確認テストを実行

![](/files/JuZ8M0bOtjZFUnaYZYao)

![](/files/Dt44cV8od9XPLYhqMB4h)

✅ 設置方法に関わらず、最後にPtengineで設置確認テストを実施し、正しく設置されたことを確認しましょう。
{% endstep %}
{% endstepper %}


---

# Agent Instructions: 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:

```
GET https://helps.ptengine.com/start-guide/othertag/tag-gtm.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
