> 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/partner/zh/ni-xiang-liao-jie-shen-me/platform-features/tracking/tracking-links/link-parameters/sub-id-and-shared-id-parameters-explained-for-partners.md).

# 合作伙伴 Sub ID 和 Shared ID 参数说明

跟踪链接可以使用可由 impact.com 跟踪并向 impact.com 报告的附加参数进行自定义。这些参数称为 **Sub ID** 和 **Shared ID**.

* **Sub ID** ，仅作为合作伙伴的你可见。
* **Shared ID** ，你和品牌方都可见。

当使用各种创意素材、多个网站、与子联盟合作，或者在将用户导向品牌方时需要发送非 PII 客户 ID（与个人身份信息无关的客户 ID）时，这些参数非常有用。上述许多使用场景都需要在跟踪链接中追加这些参数，以便准确跟踪并报告这些信息。

## 这些参数的工作方式

当用户点击带有追加的 Sub ID（和/或 Shared ID）值的 impact.com 跟踪链接时，这些参数会被我们的跟踪服务器捕获并存储。随后，impact.com 会将点击与动作进行关联。请参见下面的代码片段，了解这些参数是如何追加到跟踪链接中的：

### **Shared ID 示例**

```programlisting
https://trackingdomain.net/c/mpid/adid/campaignid?name=value
```

在上面的示例中， `name` 部分指的是通过 impact.com 传递并在报告中显示的参数名称。有关示例链接的更多详细信息，请参见下表。

|                        |                         |
| ---------------------- | ----------------------- |
| **trackingdomain.net** | 由 impact.com 提供的唯一跟踪域名。 |
| **mpid**               | 你的合作伙伴 ID（MPID）         |
| **adid**               | 为该素材分配的 ID。             |
| **campaignid**         | 为品牌活动（view）分配的 ID       |

下面的示例展示了带有 Sub ID 的跟踪链接会是什么样子。在此示例中，值 `test` 会在链接被点击时传递。

### **Sub ID 示例**

```programlisting
https://trackingdomain.net/c/1234567/654321/4321?subId1=test
```

## Sub ID 和 Shared ID 的常见用例

* **素材投放位置：** 根据素材的位置或类型填充 Sub ID 值，以优化素材投放。
* **子联盟网络：** 通过填充 `PartnerId` ，在 Sub ID 或 Shared ID 字段中跟踪子联盟层级的活动。
* **返现和忠诚度计划：** 通过填充 `MemberId` ，在 Sub ID 或 Shared ID 字段中跟踪子联盟层级的活动。 [了解如何向跟踪链接添加动态变量。](/partner/zh/ni-xiang-liao-jie-shen-me/platform-features/tracking/tracking-links/create-and-manage-links/add-reporting-information-to-your-tracking-links.md#add-static-dynamic-parameters-via-the-ad-card-0-2)

## Sub ID 和 Shared ID 参数常见问题

<details>

<summary>我可以将 Sub ID 和 Shared ID 添加到哪些链接中？</summary>

所有 impact.com 跟踪链接都支持 Sub ID 和 Shared ID——包括 vanity 链接。 [了解更多关于 vanity 链接的信息](/partner/zh/ni-xiang-liao-jie-shen-me/platform-features/tracking/tracking-links/create-and-manage-links/create-a-vanity-link.md).

</details>

<details>

<summary>Sub ID 和 Shared ID 有字符限制吗？</summary>

是的，请参见下表：

|          |        |         |
| -------- | ------ | ------- |
| **参数**   | **类型** | **限制**  |
| SubId1   | 字母数字   | 255 个字符 |
| SubId2   | 字母数字   | 255 个字符 |
| SubId3   | 字母数字   | 255 个字符 |
| SharedId | 字母数字   | 255 个字符 |

仅使用字母和数字用于 `SharedId`。不要使用空格或特殊字符。

</details>

<details>

<summary>如何在不让 impact.com 跟踪或报告的情况下，将值传递给品牌方？</summary>

这些被视为“透传值”或“p.”参数，可以添加在任何 `name={value}` 键值对之前，并指示 impact.com 不要存储该值。你需要请品牌方设置元数据，以便在所有品牌链接上自动追加“p.”参数。

例如，如果你需要传递一个 `customerId`，你可以追加 `&p.customerId=abc123` 到任何跟踪链接中，该值就会在不被 impact.com 收集的情况下被传递到品牌方的落地页。

{% hint style="info" %}
**示例场景**

**场景**：ACME Inc. 有一个促销代码或优惠。他们希望当用户通过跟踪链接点击进入时，折扣能自动应用到他们的网站上（即无需手动输入代码）。他们还希望允许合作伙伴深度链接到其网站的任何部分。

**解决方案**：ACME Inc. 可以配置他们的网站，使其在落地页 URL 包含查询字符串参数时自动应用折扣 `offer=10off`.

。随后，品牌方可以配置一个透传值。

现在，合作伙伴就可以使用该广告进行 [深度链接](/partner/zh/ni-xiang-liao-jie-shen-me/platform-features/tracking/tracking-links/create-and-manage-links/tracking-links-overview.md) 到任意页面，并且生成的落地页将始终带有 `offer=10off` 追加。
{% endhint %}

</details>

## 其他资源

* [向你的跟踪链接添加报告信息](/partner/zh/ni-xiang-liao-jie-shen-me/platform-features/tracking/tracking-links/create-and-manage-links/add-reporting-information-to-your-tracking-links.md)
* [查看 Sub ID 和 Shared ID 的报告](/partner/zh/ni-xiang-liao-jie-shen-me/platform-features/tracking/tracking-links/link-parameters/view-reports-on-sub-ids-and-shared-ids-for-partners.md)
* [参数说明](/partner/zh/ni-xiang-liao-jie-shen-me/platform-features/tracking/tracking-links/link-parameters/param-parameters-explained.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/partner/zh/ni-xiang-liao-jie-shen-me/platform-features/tracking/tracking-links/link-parameters/sub-id-and-shared-id-parameters-explained-for-partners.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.
