# URL 統一

{% hint style="success" %}
**URLの統一とは**

URL統一は、実質的に同じページでありながらURLが異なるページのデータを一つにまとめて計測・分析するための機能です。例えば、「www」の有無やURL末尾の「/」の有無など、表記が異なるURLを同一ページとして扱うことができます。

**この機能のメリット**

* **正確なデータ分析:** 同じページのアクセスデータが複数のURLに分散するのを防ぎ、ページの正確なパフォーマンスを把握できます。
* **分析の効率化:** データが統合されることで分析レポートが見やすくなり、分析作業の効率が向上します。
  {% endhint %}

{% hint style="warning" %}
**注意：**

* この設定はデータ計測に影響します。変更後は新しいデータ計測にのみ反映されます。
* 新規プロジェクトでは、「www」「#」「/」の統合がデフォルトでONです。
* 2023年4月以前のプロジェクトは、「www」と「/」の統合がデフォルトOFFです。
  {% endhint %}

### 設定方法

1. プロジェクト名横の歯車アイコン
2. 基本設定とタグ取得
3. URLの統一
4. 登録ドメインごとに設定変更

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

#### 「www」を含むURL と 含まないURL

初期設定：ON

例：`www.mysite.com` と `mysite.com` → `mysite.com` として計測 ❓ 分離して確認したい場合はOFFに変更

![](/files/gtICQelxxZIBgJNwrtsF)

#### 「#」を含むURL と 含まないURL

初期設定：ON

💡 シングルページサイトの場合はOFF推奨

![](/files/2kYRNQ8G4vhjGSeEe8hE)

#### 「index.html」を含むURL と 含まないURL

初期設定：OFF

`www.site.com` と `www.site.com/index.html` を統合したい場合はONに変更

![](/files/rB8tSOqS86eiPPC59ze2)

#### 「/」を含むURL と 含まないURL

初期設定：ON

例：`www.mysite.com/` → `www.mysite.com` として計測

パラメータ付きURLには適用されません（例：`www.mystie.com/?utm_source=google`）

![](/files/G2JgjskeaQMD6jFXANiy)

スラッシュ統合の詳細は[こちらの記事](/faq/tag-and-domain/url-trailing-slash.md)をご確認ください。


---

# 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/insight/setting/url-unification.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.
