# タグが正常に発火しているか確認する方法

計測タグが正しく設置されているかを事前に確認することで、データ計測の漏れや不具合を防ぎ、正確なサイト分析を可能にします。また、タグの重複設置といった設定ミスも早期に発見できます。

### よく利用されるシーン

* Ptengineの計測タグをWebサイトに設置した直後の初期設定時
* データが正常に計測されているか確認したい場合
* タグの重複設置などによる計測不具合が疑われる場合

### 方法 1. 管理画面で確認 <a href="#id-0-toc-title" id="id-0-toc-title"></a>

1. 管理画面右上の歯車マークから **\[基本設定とタグ取得]** > **\[解析コード]** を開きます。
2. **\[タグの設置状況の確認]** ボタンをクリックします。
3. 確認したいページのURLを入力することで、タグが設置されているかを確認できます。<br>

<figure><img src="/files/WNhrDgYsjdWR5R1rCt5w" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/iLs97aSl8sGO1pVXAaYA" alt=""><figcaption></figcaption></figure>

### 方法 2. 検証モードで確認 <a href="#id-1-toc-title" id="id-1-toc-title"></a>

より詳細な確認がブラウザの開発者向けツール（検証モード）で可能です。

1. タグを設置したページにアクセスし、サイト上で右クリックして **\[検証]** を選択し、ディベロッパーツールを起動します。

<figure><img src="/files/it9LGJoOjuACx3dGXfMs" alt=""><figcaption></figcaption></figure>

2. **\[Network]** タブを開き、検索ボックスに「`ptengine`」と入力します。
3. ページをスクロールしたりクリックしたりすると、「`collect`」というパッケージが表示されます。これが表示されていれば、計測は正常に行われています。
4. 次に、ブラウザでページを更新（再読み込み）します。<br>

<figure><img src="/files/Xd7bYcHkSE8RIHuDD7vD" alt=""><figcaption></figcaption></figure>

5. 「`××××××××.js`」(タグのID) という形式のパッケージが表示されていることを確認します。
6. このパッケージのIDが、Ptengineの管理画面で発行されたご自身のタグIDと一致しているかを確認します。<br>

<figure><img src="/files/VQVlb5aJgS6JjJjnLeJ6" alt=""><figcaption></figcaption></figure>

IDが一致しない、または複数のIDが表示される場合は、別のアカウントやプロジェクトのタグが誤って設置されている可能性があります。タグの重複は計測不具合の原因となるため、正しいIDのタグのみを残し、不要なタグはサイトから削除してください。

<figure><img src="/files/xroYFGS82D8qba4CFjBm" alt=""><figcaption></figcaption></figure>


---

# 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/faq/start-guide/check-tag-firing.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.
