> For the complete documentation index, see [llms.txt](https://helps.ptengine.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://helps.ptengine.com/cn/insight/setting/channel-grouping.md).

# 渠道分组

有些广告媒体不支持 utm 参数，只给你一个自家的参数（比如 `gcid`）。这种流量默认会被丢进“直接访问”，看不出是哪个媒体带来的。**渠道分组**就是用来接这种流量的：自己定一条规则，把它归到一个自己起名的渠道里。

入口：Insight 的 ⚙ → **渠道设置**。

{% hint style="info" %}
这个功能在帮助站的旧文里叫“自定义渠道设置”，产品里的正式名字是**渠道分组**。
{% endhint %}

***

## 开始之前 <a href="#before-you-start" id="before-you-start"></a>

* 规则**只对设置之后的流量生效**，不回溯历史数据
* 一次访问**只会被归进一个渠道组**——按优先级匹配，匹配上就不再往下找
* 先确认你的落地页 URL 里确实有一个稳定的识别参数，没有的话这个功能帮不上忙

***

## 先搞清楚默认是怎么分的 <a href="#custom-channel-identification-rules" id="custom-channel-identification-rules"></a>

Ptengine 默认按这几条判断流量来源：

| 渠道   | 怎么识别                |
| ---- | ------------------- |
| 广告   | 看 utm 参数            |
| 搜索引擎 | 对照搜索引擎词典            |
| AI搜索 | 对照 AI 工具的来源名单       |
| 外部链接 | 看 referrer 的域名      |
| 社交网络 | 看 referrer 是否属于社交平台 |
| 直接访问 | 以上都不符合，就归到这里        |

**“直接访问”是兜底桶。** 带自定义参数的广告流量没人认领，最后都落在这里——这就是要加规则的原因。

***

## 能归到哪六类 <a href="#custom-channel-settings" id="custom-channel-settings"></a>

新建分组时的**设置流量类型**有六个选项，决定这个分组的数据最终算进哪个渠道：

<figure><img src="https://2044586328-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FnucbKsG9WGIoxCpzyoHL%2Fuploads%2Fgit-blob-9bd5a7db87ea9edd0ffc86a26e124446d837626d%2Ffaq-custom-channel-03.png?alt=media" alt="设置流量类型的六个选项"><figcaption></figcaption></figure>

| 流量类型     | 说明                       |
| -------- | ------------------------ |
| **广告**   | 需要填广告名称、广告来源、广告媒介等，至少填一个 |
| **外部链接** | 给某个外部来源统一打标签             |
| **搜索引擎** | 归进搜索引擎，搜索关键词会显示为 not set |
| **AI搜索** | 归进 AI 搜索渠道               |
| **社交网络** | 归进社交报告                   |
| **直接访问** | 名称固定为 direct，不能改         |

***

## 怎么设 <a href="#how-to-configure-this-feature" id="how-to-configure-this-feature"></a>

{% stepper %}
{% step %}

### 进入渠道分组

Insight 的 ⚙ → **渠道设置**。列表里是已有的分组，每行显示分组名称、归到哪个渠道、来源名称、上次修改时间和状态。

<figure><img src="https://2044586328-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FnucbKsG9WGIoxCpzyoHL%2Fuploads%2Fgit-blob-ec0780f37fbed1a3a3ff0fbf1266529e64982c17%2Ffaq-custom-channel-01.png?alt=media" alt="渠道分组管理界面"><figcaption></figcaption></figure>
{% endstep %}

{% step %}

### 点右上角的 ＋新建分组

{% endstep %}

{% step %}

### 填这四项

<figure><img src="https://2044586328-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FnucbKsG9WGIoxCpzyoHL%2Fuploads%2Fgit-blob-be317d051887a584a641e12d03ba60418d2cb499%2Ffaq-custom-channel-02.png?alt=media" alt="新建分组表单：分组名称、设置流量类型、来源名称、匹配规则"><figcaption></figcaption></figure>

| 字段            | 填什么                               |
| ------------- | --------------------------------- |
| 分组名称          | 只在管理列表里用来认人，建议带上投放时间或媒体名          |
| 设置流量类型        | 上面六选一，决定数据归到哪个渠道                  |
| 来源名称          | **报告里显示的名字**，这个才是别人看到的            |
| 匹配规则          | 选匹配方式（包含等）+ 填值。规则不够用就点 ＋添加规则 再加一条 |
| {% endstep %} |                                   |

{% step %}

### 保存

保存后状态显示为“已生效”。
{% endstep %}
{% endstepper %}

***

## 一个完整例子 <a href="#configuration-method-with-example" id="configuration-method-with-example"></a>

促销期间，广告媒体 B 投放的落地页全长这样：

```
https://example.com/campaign/about.html?gcid=1234
https://example.com/campaign/about.html?gcid=12345678
https://example.com/campaign/about.html?gcid=adgc123567
https://example.com/campaign/about.html?gcid=90opqw
```

`gcid=` 后面每条都不一样，但**前缀 `gcid` 是稳定的**，可以拿它当识别依据。

设置：

| 字段     | 填           |
| ------ | ----------- |
| 分组名称   | 广告媒体B       |
| 设置流量类型 | 广告          |
| 来源名称   | 广告媒体B       |
| 匹配规则   | 包含 → `gcid` |

保存之后，这批访问就会以“广告媒体B”出现在[广告](https://helps.ptengine.com/cn/insight/data-center/traffic-campaign.md)报告里，不再混在直接访问里。

***

## 做完之后怎么确认 <a href="#verify" id="verify"></a>

* 回列表看这条规则的状态是不是“已生效”
* 带参数访问一次落地页，隔一段时间去[广告](https://helps.ptengine.com/cn/insight/data-center/traffic-campaign.md)报告里找你填的**来源名称**
* 找不到 → 先确认参数拼写、匹配方式选得对不对；再确认这些流量是不是已经被优先级更高的规则抢走了

***

## 相关页面 <a href="#related-pages" id="related-pages"></a>

* [广告](https://helps.ptengine.com/cn/insight/data-center/traffic-campaign.md) — 自定义渠道的数据在哪看
* [营销活动的UTM标签](https://helps.ptengine.com/cn/insight/data-center/campaign-utm.md)
* [URL使用规则](https://helps.ptengine.com/cn/faq/insight-setting/url-rules.md)
* [生成广告URL](https://helps.ptengine.com/cn/insight/setting/ad-url-builder.md) — 自己能控制链接时的做法
* [参数构建器](https://helps.ptengine.com/cn/insight/setting/parameter-builder.md) — 参数有规律、能映射到广告维度时的做法
