> 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 标签](https://help.impact.com/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) **\[互动]** → **合作伙伴**.
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 如何对传入流量进行分类。

每条识别规则还需要设置匹配规则，以便采用更严格或更宽松的组合（例如， `contains`, `starts with`, `does not contain`等）。

<details>

<summary>落地页参考</summary>

由于引荐 URL 并非始终可用，因此建议改为设置落地页规则。许多因素都可能妨碍 [使用引荐 URL 参数](https://help.impact.com/brand/zh/what-would-you-like-to-learn-about/platform-features/tracking/set-up-tracking/using-the-referring-url-parameter.md).

| 落地页          | 说明                                                                                                                                                                                                                                                                                                            |
| ------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **着陆页 URL**  | 根据落地页 URL 或其端口转发来识别流量。                                                                                                                                                                                                                                                                                        |
| **着陆页域名**    | <p>如果您的计划有多个域名，且每个合作伙伴都对应一个域名，请务必设置规则。</p><p>• 有关详细信息，请参阅下方的 <em>规则</em> 参考表。</p>                                                                                                                                                                                                                             |
| **着陆页查询字符串** | <p>仅按参数名称匹配，不考虑参数值。</p><p>例如，添加一个包含动态值的链接， <code>AID=</code> ，因此你可以匹配（<code>exactly matches</code>, <code>contains</code>, <code>starts with</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>                                                                                                                                                                                                                                                                                                                                                                                             |
| **引荐域名**    | 例如，来自 petercoupons.com 的所有流量都会由 impact.com 归因给合作伙伴： *Peter Coupons*.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     |
| **引荐查询字符串** | <p>当引荐 URL 中包含特定参数名称时使用。</p><p>例如，添加一个包含动态值的链接， <code>AID=</code>，因此你可以匹配（<code>exactly matches</code>, <code>contains</code>, <code>starts with</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 域名，请参照以下说明创建规则：

| 规则    | 说明                                             |
| ----- | ---------------------------------------------- |
| **与** | 要求着陆页和引荐域名都匹配。                                 |
| **或** | 此选项更灵活，允许着陆页或引荐域名任一匹配。如果选择“或”，发生冲突时将优先采用着陆页方法。 |

</details>

**测试您的直接追踪**

要测试您的直接追踪设置，请详细了解 [品牌的合作伙伴测试账户](https://help.impact.com/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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
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=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
