> For the complete documentation index, see [llms.txt](https://help.impact.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.impact.com/brand/zh/what-would-you-like-to-learn-about/platform-features/tracking/set-up-tracking/set-up-direct-traffic-tracking.md).

# 设置直接流量跟踪

<a href="https://pxa.impact.com/student/activity/1117597?sid=0c0e3e5c-54c9-4435-9bee-ebcdccb7f292&#x26;sid_i=0?utm_source=app.impact.com&#x26;utm_medium=owned-platform&#x26;utm_content=tra-350&#x26;utm_campaign=help-center" class="button primary">参加 PXA 课程</a>

直接流量跟踪使您的团队无需使用跟踪链接即可跟踪合作伙伴层级的流量。

大多数点击流量跟踪使用跟踪链接、嵌入在广告、徽标或合作伙伴网站文本中的链接。 **直接流量跟踪**，不过，它无需使用跟踪链接即可识别进入您网站的消费者流量来源。相反，着陆页 URL 或引荐 URL 中的信息会识别流量来源。

{% hint style="warning" %}
**必填**：如果您想使用直接流量跟踪事件，您将需要 [UTT 和 Identify Function 标签](/brand/zh/what-would-you-like-to-learn-about/platform-features/tracking/javascript-tag-tracking/tracking-with-universal-tracking-tag-utt.md) 或者您需要实施 [PageLoad API 请求](https://integrations.impact.com/brand-api-reference/reference/page-load) 在您网站的每个页面上。如果您目前尚未使用 UTT 或 PageLoad API，并且有兴趣切换， [请联系支持团队](https://app.impact.com/support/portal.ihtml?createTicket=true&) 以指导您完成迁移过程。
{% endhint %}

#### 设置直接流量跟踪

![](https://1186853034-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwMLlMoFBtKJa8ptd3zaw%2Fuploads%2Fgit-blob-ce68cfb317a0bdf2b9e82f3df63b400f7764cbf2%2F6b9ec025210c2878ab8e126697a41af04cef94403a452d5dee89cf87e9f2cf2d.svg?alt=media) 此功能仅适用于某些 impact.com 版本或附加组件。 [联系我们](https://app.impact.com/support/portal.ihtml?createTicket=true) 以升级您的账户并获取访问权限！

1. 从左侧导航菜单中，选择 ![](https://1186853034-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwMLlMoFBtKJa8ptd3zaw%2Fuploads%2Fgit-blob-230534471fef5f40808e921e41ee44e4a06ded03%2Fe6cb9548999afdc1ed3ce4942e4cb5b45b5cecbd323267aac2a7cd1915fccc09.svg?alt=media) **\[Engage]** → **合作伙伴**.
2. 将光标悬停在您要查看其流量的合作伙伴上。然后选择 ![](https://1186853034-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwMLlMoFBtKJa8ptd3zaw%2Fuploads%2FMLtRUwWz0pujlfmYWOgg%2FMoreVN.svg?alt=media\&token=03a3c355-a347-4207-baf7-c44fadf6d080) **\[更多]** **跟踪** → **直接流量跟踪**.
3. 设置您的 **用于识别的规则** 该流量。有关更多信息，请参阅识别规则参考。
4. 选择 **保存**.

**识别规则说明**

识别流量有三种方式——通过 *落地页*，通过 *引荐 URL*，或两者兼用。每种跟踪方法都有一个子部分，并且根据您的合作伙伴流量的识别方式，您需要设置规则，以指示 impact.com 如何对入站流量进行分类。

每条识别规则还需要一个匹配规则，因此可以设置更严格或更宽松的组合（例如， `包含`, `以...开头`, `不包含`等）。

<details>

<summary>着陆页参考</summary>

由于引荐 URL 并不总是可用，因此建议改为设置着陆页规则。许多因素可能会阻碍 [使用引荐 URL 参数](https://help.impact.com/brand/what-would-you-like-to-learn-about/platform-features/tracking/set-up-tracking/using-the-referring-url-parameter).

| 落地页          | 说明                                                                                                                                                                                                                                                                                                              |
| ------------ | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **落地页 URL**  | 根据着陆页 URL 或其转发来识别流量。                                                                                                                                                                                                                                                                                            |
| **着陆页域名**    | <p>如果您的项目有多个域名，并且每个合作伙伴都有一个域名，那么请务必设置规则。</p><p>• 查看 <em>规则</em> 下方参考表以获取更多信息。</p>                                                                                                                                                                                                                               |
| **着陆页查询字符串** | <p>仅按参数名称匹配，不考虑参数值。</p><p>例如，添加一个带有动态值的链接， <code>AID=</code> ，因此您可以匹配（<code>完全匹配</code>, <code>包含</code>, <code>以...开头</code>等）AID 参数名称。</p>                                                                                                                                                                    |
| **落地页参数**    | <p>当着陆页参数是固定的 name=value 对时使用。</p><p>例如，如果您想跟踪合作伙伴将流量发送到 <code>brand.com?partner=123</code>，然后输入 <code>partner</code> 在第一个框中，选择 <strong>包含</strong> 或 <strong>完全匹配</strong> 从下拉菜单中，然后在最后一个框中输入 123。impact.com 也支持通过用逗号分隔值来支持多个值（和 <a href="https://en.wikipedia.org/wiki/Regular_expression">正则表达式</a> 查询）。</p> |

</details>

<details>

<summary>引荐 URL 参考</summary>

| 引荐 URL      | 说明                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     |
| ----------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| **引荐 URL**  | <p>配置通过引荐 URL 匹配合作伙伴流量。指定一个以逗号分隔的域名列表，或者使用通配符匹配域名的一部分。</p><p>例如，按 URL 的目录部分匹配 - <em><code>./advertiser。</code></em> 或 <code>[www.petercoupons.com/mysite/](http://www.petercoupons.com/mysite/)</code>.</p>                                                                                                                                                                                                                                                                                                                                                                                            |
| **推荐域名**    | 例如，impact.com 将来自 petercoupons.com 的所有流量归因于该合作伙伴： *Peter Coupons*.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     |
| **引荐查询字符串** | <p>当引荐 URL 中存在特定参数名称时使用。</p><p>例如，添加一个带有动态值的链接， <code>AID=</code>，因此您可以匹配（<code>完全匹配</code>, <code>包含</code>, <code>以...开头</code>等）AID 参数名称。</p>                                                                                                                                                                                                                                                                                                                                                                                                                                                       |
| **引荐参数**    | <p>当引荐 URL 包含特定的 name=value 查询字符串对时使用。</p><p>例如，如果您想跟踪合作伙伴将流量发送到 <code>brandadvertiser.com?partner=123</code>；然后输入 <code>partner</code> 在第一个框中，从下拉菜单中选择“包含”或“完全匹配” <img src="https://1186853034-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwMLlMoFBtKJa8ptd3zaw%2Fuploads%2Fgit-blob-c2cb550b55c51ea1eeff0acbd6f437a03b621a2c%2F60d033ae8a04c14498d5229c3c0160ac05feea7f605dbd770741793c900469f0.svg?alt=media" alt=""> <strong>\[下拉菜单]</strong>，然后在最后一个框中输入 123。impact.com 也支持通过用逗号分隔值来支持多个值（和 <a href="https://en.wikipedia.org/wiki/Regular_expression">正则表达式</a> 查询）。</p> |

</details>

<details>

<summary>规则参考</summary>

如果着陆页和引荐 URL 域名都已启用，请参考以下内容来创建规则：

| 规则      | 说明                                                |
| ------- | ------------------------------------------------- |
| **AND** | 需要着陆页和引荐域名同时匹配。                                   |
| **或者**  | 此选项更灵活，允许匹配着陆页或引荐域名中的任一项。如果选择“OR”，在发生冲突时，着陆页方法优先。 |

</details>

**测试您的直接流量跟踪**

要测试您的直接流量跟踪设置，请了解更多关于 [品牌的合作伙伴测试账户](/brand/zh/what-would-you-like-to-learn-about/account-administration/account-settings/partner-test-accounts-for-brands.md).


---

# 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://help.impact.com/brand/zh/what-would-you-like-to-learn-about/platform-features/tracking/set-up-tracking/set-up-direct-traffic-tracking.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.
