> 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/nin-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 跟踪并上报的附加参数进行自定义。这些参数称为 **子 ID** 和 **Shared IDs**.

* **子 ID** 仅对您作为合作伙伴可见。
* **Shared IDs** 对您和品牌方都可见。

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

#### 这些参数的工作原理

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

**Shared ID 示例**

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

在上面的示例中， `名称` 部分指的是通过 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/nin-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——包括虚荣链接。 [了解更多关于虚荣链接的信息](/partner/zh/nin-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/nin-xiang-liao-jie-shen-me/platform-features/tracking/tracking-links/create-and-manage-links/tracking-links-overview.md) 到任意页面，而最终的落地页将始终带有 `offer=10off` 附加。
{% endhint %}

</details>

#### 了解更多

* [向跟踪链接添加报告信息](/partner/zh/nin-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/nin-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/nin-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 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/partner/zh/nin-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=<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.
