> 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 可以跟踪这些参数并在报告中显示。这些参数称为 **子 ID** 和 **共享 ID**.

* **子 ID** 仅对您（合作伙伴）可见。
* **共享 ID** 对您和品牌双方均可见。

使用不同的创意素材、多个网站、与子联盟合作，或在将用户引导至品牌时需要传递非个人身份信息 (PII) 客户 ID（与个人身份信息无关的客户 ID）时，这些参数都很有用。许多此类用例都需要将这些参数附加到跟踪链接，以便准确跟踪和报告相关信息。

## 这些参数的工作原理

用户点击附加了子 ID（和/或共享 ID）值的 impact.com 跟踪链接时，我们的跟踪服务器会捕获并存储这些参数。随后，impact.com 会将点击与操作关联起来。请参阅以下代码片段，了解如何将这些参数附加到跟踪链接：

### **共享 ID 示例**

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

在上面的示例中， `name` 部分表示传递的参数名称，impact.com 会在报告中显示该参数。请参阅下表，了解示例链接的更多详情。

|                        |                       |
| ---------------------- | --------------------- |
| **trackingdomain.net** | impact.com 提供的唯一跟踪域名。 |
| **mpid**               | 您的合作伙伴 ID (MPID)      |
| **adid**               | 分配给素材的 ID。            |
| **campaignid**         | 分配给品牌推广活动（视图）的 ID     |

以下示例展示了附带子 ID 的跟踪链接。此示例中，点击链接时会传递值 `test` 。

### **子 ID 示例**

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

## 子 ID 和共享 ID 的常见用例

* **素材投放位置：** 根据素材的位置或类型填入子 ID 值，以优化素材投放位置。
* **子联盟网络：** 在子 ID 或共享 ID 字段中填入 `PartnerId` ，以跟踪子联盟层级的活动。
* **返现和忠诚度计划：** 在子 ID 或共享 ID 字段中填入 `MemberId` ，将转化归因于返现和忠诚度计划中的特定合作伙伴。 [了解如何向跟踪链接添加动态变量。](https://help.impact.com/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)

## 子 ID 和共享 ID 参数常见问题

<details>

<summary>哪些链接可以添加子 ID 和共享 ID？</summary>

所有 impact.com 跟踪链接都支持子 ID 和共享 ID，包括自定义链接。 [详细了解自定义链接](https://help.impact.com/partner/zh/ni-xiang-liao-jie-shen-me/platform-features/tracking/tracking-links/create-and-manage-links/create-manage-vanity-link.md).

</details>

<details>

<summary>子 ID 和共享 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`.

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

这样，合作伙伴就可以使用广告 [深层链接](https://help.impact.com/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>

## 其他资源

* [向跟踪链接添加报告信息](https://help.impact.com/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 报告](https://help.impact.com/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)
* [参数说明](https://help.impact.com/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.
