> 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` 并从请求中移除）：*

* `客户邮箱` （SHA1 哈希）
* `CustomerEmailSHA256`
* `CustomerId`
* `IP 地址` （客户端 IP）
* `FirstPartyCookie`

*仍会发送到 impact.com：*

* `OrderId`
* `ClickId` （如果在撤回同意之前已存储，或通过 URL 参数传递）
* 订单详情（`CurrencyCode`, `ItemSku`, `ItemSubtotal`, `ItemQuantity`, `商品类别`)
* `OrderPromoCode`
* `IntegrationSource`
* `推广活动 ID` / `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 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/brand/zh/what-would-you-like-to-learn-about/technical-integration-guides/shopify-plugin-consent-management-explained.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.
