> 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 插件，请勿启用 [Consent Mode](https://help.impact.com/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 商店——在这种情况下，客户参与推荐活动即表示已获得其同意。
  * 为确保在此情况下继续跟踪，当返现或忠诚度合作伙伴引荐客户时，必须在着陆页 URL 中包含 `im_rewards=1` 参数。请联系您的 CSM 或 [支持团队](https://app.impact.com/support/portal.ihtml) ，以获取正确设置方面的帮助；或参阅 [使用 Shopify 跟踪返现和忠诚度流量](https://help.impact.com/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。
* 根据您的设置，该 API 可能会在客户访问页面时立即触发，也可能仅在客户同意后触发。

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

如果客户拒绝同意，转化请求中的个人身份信息 (PII) 会在发送至 impact.com 之前被移除。 `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 会根据当前建议让两个页面保持同步，并为你处理欧洲经济区选择加入／美国选择退出的区别，无需你逐个地区进行判断。
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.
