# 为合作伙伴分配自定义跟踪值

<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>

您可以为合作伙伴分配最多三个自定义值。分配自定义值后，您可以将这些值添加到登陆页面的查询字符串中。为合作伙伴分配自定义值有助于：

* 在您的内部分析仪表板中按名称识别合作伙伴。
* 指定与该合作伙伴相关的流量类型（例如付费搜索、电子邮件、忠诚度、优惠券、工具栏等）。
* 跟踪您是否通过其他网络与该合作伙伴合作，并希望能够将数据合并并分配来自其他网络的合作伙伴 ID。

{% hint style="info" %}
**注意：** 当您设置自定义合作伙伴值时，数据将开始基于您最后一次 [更新合作伙伴合同](/brand/zh/nin-xiang-liao-jie-shen-me/platform-features/contracts-and-template-terms/template-terms/modify-template-terms.md)的日期进行填充。在查看历史数据并避免混淆时，只考虑在实施合作伙伴值之后收集的数据。
{% endhint %}

#### 分配自定义值

1. 在左侧导航菜单中，选择 ![](/files/209022bdb234289211a24a980f6227a8684cc439) **\[Engage] → Partners → Partners**.
   * 或者，对于创作者计划，选择 ![](/files/209022bdb234289211a24a980f6227a8684cc439) **\[Engage] → Partners → Creators**.
2. 将鼠标悬停在要为其设置自定义值的合作伙伴上并选择 ![](/files/22be16de20fa53ec3b50325d883838168ddb42de) **\[More] → Tracking → Custom Values**.
3. 选择 *合作伙伴价值* 您想要设置的字段。
   * 最多可以设置三个值。
4. 输入一个值并选择 **保存**.

   <div data-with-frame="true"><figure><img src="/files/4bf95539fa23da711cdb7fd0dda937705d96027c" alt=""><figcaption></figcaption></figure></div>

   * 要查看您所有现有的合作伙伴自定义值，请选择 ![](/files/c04674143169487d8930056c2ebe48456deeee46) **\[User Profile] → Settings → Partner Custom values**.

{% hint style="info" %}
**注意：** 合作伙伴自定义值对应于 `{mp_value1}` 登陆页面查询字符串参数的动态值。详见 [Gateway Tracking Templates](/brand/zh/nin-xiang-liao-jie-shen-me/account-administration/program-settings/tracking-settings/gateway-tracking-templates.md) 以获取更多上下文。
{% endhint %}

#### 批量编辑合作伙伴自定义值

合作伙伴自定义值也可以通过 .XLSX 或 .CSV 文件批量上传和配置。

1. 在左侧导航菜单中，选择 ![](/files/209022bdb234289211a24a980f6227a8684cc439) **\[Engage] → Partners → Partners**.
   * 或者，对于创作者计划，选择 ![](/files/209022bdb234289211a24a980f6227a8684cc439) **\[Engage] → Partners → Creators** 并在右上角选择 ![](/files/22be16de20fa53ec3b50325d883838168ddb42de) **\[More] → Revert to old UI**.
2. 在右上角，选择 **批量编辑**.
3. 选择 **选择文件** 并上传包含您所有自定义值的文件。
   * 选择 **显示/隐藏文件格式详细信息** 以了解有关所需文件格式的更多信息。
   * 您也可以选择 **将列复制到剪贴板** 并将模板粘贴到电子表格中。

     <div data-with-frame="true"><figure><img src="/files/423feb2cb22f324cf71368fe29fe429b4e1cbd03" alt=""><figcaption></figcaption></figure></div>
4. 选择 **下一步**.
5. 数据将加载到 *合作伙伴值批量上传* 屏幕，显示您列出的所有合作伙伴 ID 和自定义值。
   * 在此处您可以查看验证错误，下载错误文件，并筛选以仅显示错误或通过的值。
6. 选择 **接受并创建合作伙伴自定义值**.

#### 将自定义合作伙伴值添加到登陆页面查询字符串

要将合作伙伴值设置到登陆页面查询字符串：

1. 从顶部导航栏，选择 ![](/files/c04674143169487d8930056c2ebe48456deeee46) **\[用户资料] → 设置**.&#x20;
2. 在 *跟踪* 部分，选择 **网关**.
3. 找到 *合作伙伴跟踪模板* 部分。

   <div data-gb-custom-block data-tag="hint" data-style="info" class="hint hint-info"><p><strong>注意：</strong> 该 <em>合作伙伴跟踪模板</em> 会自动将查询字符串参数附加到所有合作伙伴的登陆页面。这对于将信息传递给第三方分析工具非常有用。</p></div>
4. 在提供的块中输入名称和自定义值。
   * 参见 [Gateway Tracking Templates](/brand/zh/nin-xiang-liao-jie-shen-me/account-administration/program-settings/tracking-settings/gateway-tracking-templates.md) 以获取更多信息。
5. 选择 **保存**.

   <div data-with-frame="true"><figure><img src="/files/f14b3ed65eda794ab586a869047e159d00d1a842" alt=""><figcaption></figcaption></figure></div>


---

# 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://help.impact.com/brand/zh/nin-xiang-liao-jie-shen-me/platform-features/tracking/set-up-tracking/assign-custom-tracking-values-to-partners.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.
