> 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/technical-integration-guides/shopify-plugin-consent-management-explained.md).

# Shopify 插件同意管理说明

impact.com 的 [Shopify 插件](https://integrations.impact.com/integration-guides/for-brands/plugin-integrations/e-commerce/integrate-with-shopify) 将跟踪和客户同意管理整合在一起：

* **更好的隐私合规性** — 持续符合不断变化的隐私标准，并尊重客户同意。
* **可靠的奖励跟踪** — 来自您的忠诚度/返现合作伙伴的转化始终会被捕获。
* **查看丢失转化的情况** — 在 impact.com 报表中查看客户拒绝同意所产生的影响。
* **快速启用** — 无需将您的 Shopify 商店重新与 impact.com 集成；只需更新一个设置。

请确保您的 Shopify 设置配置正确，以避免跟踪出现缺口。请参见 [*配置您的 Shopify 客户隐私设置*](#configure-your-shopify-customer-privacy-settings) 下方部分。

{% hint style="success" %}
**注意：** 如果您正在使用 impact.com 的 Shopify 插件，请不要启用 [同意模式](/brand/zh/what-would-you-like-to-learn-about/account-administration/program-settings/tracking-settings/ensure-gdpr-compliance-using-consent-mode.md) ，因为这两者目前尚不兼容。
{% endhint %}

## 工作原理

impact.com 的 Shopify 同意管理被配置为遵循您 Shopify 商店中设置的同意信号——它不会自行设置同意规则。impact.com Shopify Web Pixel 通过检查您商店的 `customerPrivacyStatus.marketingAllowed` 值（`true` 或 `false`）来决定是否触发跟踪流程。

### 何时进行跟踪

转化跟踪仅在满足以下条件之一时发生：

* 客户通过接受网站上的隐私/ cookie 弹窗而同意被跟踪。
* 客户在从返现或忠诚度合作伙伴的网站打开链接后进入您的 Shopify 商店——在这种情况下，由于其参与了推荐，系统已默认其同意。
  * 为确保在这种情况下跟踪继续进行， `im_rewards=1` 参数必须包含在客户由您的返现或忠诚度合作伙伴推荐时所访问的落地页 URL 中。请联系您的 CSM 或 [支持](https://app.impact.com/support/portal.ihtml) 以帮助正确设置，或参见 [使用 Shopify 跟踪返现和忠诚度流量](/brand/zh/what-would-you-like-to-learn-about/technical-integration-guides/track-cashback-and-loyalty-traffic-with-shopify.md) 了解更多信息。

### 当 Page Load API 触发时

Page Load API 是否触发取决于您商店的客户隐私设置以及页面加载默认设置：

* 如果 `customerPrivacyStatus.marketingAllowed` 为 `true`，则会触发 Page Load API。
* 根据您的设置，它可能会在着陆时立即触发，或仅在客户授予同意后触发。

## 当拒绝同意时 Conversion API 发送的内容

如果客户拒绝同意，则在请求发送到 impact.com 之前，会从转化请求中移除个人身份信息（PII）。 `ClickId` 和 `CustomProfileId` 不会被移除，但如果在拒绝同意之前尚未捕获到任何值，它们将不会显示任何值。

*省略（返回为 `null` 并从请求中移除）：*

* `CustomerEmail` （SHA1 哈希）
* `CustomerEmailSHA256`
* `CustomerId`
* `IpAddress` （客户端 IP）
* `FirstPartyCookie`

*仍会发送到 impact.com：*

* `OrderId`
* `ClickId` （如果在撤销同意之前已存储，或通过 URL 参数传递）
* 订单详细信息（`CurrencyCode`, `ItemSku`, `ItemSubtotal`, `ItemQuantity`, `ItemCategory`)
* `OrderPromoCode`
* `IntegrationSource`
* `CampaignId` / `ActionTrackerId`

## 配置您的 Shopify 客户隐私设置

1. 在您的 Shopify 商店中，选择左下角的 ![](https://4048883401-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwMLlMoFBtKJa8ptd3zaw%2Fuploads%2FG7Zr5cOHUYjH8vUdZvaB%2Fcog-solid.svg?alt=media\&token=b522fb12-36b9-49e6-8a9e-f07a2859acda) **\[设置]。**
2. 从左侧导航菜单中选择 **客户隐私**.
3. 选择 **隐私政策** 以确保您已有隐私政策。
   * 在隐私政策发布之前，cookie 横幅和数据共享退出页面将无法正常工作。
4. 二者： **Cookie 横幅** 和 **数据共享退出页面** 都有各自的 **使用自动设置** 切换开关，位于 *区域和内容* 下方，每个页面：
   1. 如果 **使用自动设置** 为 ![](https://4048883401-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwMLlMoFBtKJa8ptd3zaw%2Fuploads%2FiZjM1xY8o3v1iR3Zaysd%2FToggle.svg?alt=media\&token=b1550d48-bba9-4e81-8604-bc12370c5caa) **\[已开启]**  （新商店默认开启），Shopify 会使这两个页面与其当前建议保持一致，并为您处理 EEA 选择加入 / 美国选择退出的分流，您无需按地区逐一考虑。
5. 如需在所有地区都要求选择加入，而不是遵循 Shopify 的自动逻辑，请完成以下步骤：
   1. 选择 **Cookie 横幅** 和  ![](https://4048883401-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwMLlMoFBtKJa8ptd3zaw%2Fuploads%2FACIoqj1Ayhx8QzL9aqYB%2Ftoggle-off-solid%20\(1\).svg?alt=media\&token=a85366cd-4b70-41a6-83df-319f89597ede) **\[关闭]** **使用自动设置**。如果您正在运行第三方同意管理平台（CMP），并假定这些列表只管理 Shopify 自己的横幅，请不要清除此页面上的地区列表。这些列表控制适用于读取 Customer Privacy API 的所有内容的同意制度，包括 impact.com。
   2. 选择 **数据共享退出页面** 和  ![](https://4048883401-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwMLlMoFBtKJa8ptd3zaw%2Fuploads%2FACIoqj1Ayhx8QzL9aqYB%2Ftoggle-off-solid%20\(1\).svg?alt=media\&token=a85366cd-4b70-41a6-83df-319f89597ede) **\[关闭]** **使用自动设置**。Global Privacy Control（GPC）仅在此页面已配置的地区被遵守。跳过它意味着该地区不会执行 GPC。
      1. 手动启用它（如果尚未自动启用）需要 3 项员工权限：
         1. *商店设置：管理设置*
            1. *在线商店：博客文章和页面*
            2. *内容：菜单*

{% hint style="success" %}
**注意：** 如果您使用第三方 CMP，而不是 Shopify 原生的 cookie 横幅，请与第三方供应商确认其会调用 Shopify 的 `setTrackingConsent` API。只渲染其自身界面但从不调用此 API 的横幅，会使 Customer Privacy API 报告默认值——而 impact.com 会读取这些默认值。
{% endhint %}


---

# 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/brand/zh/what-would-you-like-to-learn-about/technical-integration-guides/shopify-plugin-consent-management-explained.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.
