# 在 Shopify 中设置 Facebook Pixel 像素代码

&#x20;      在你的网站上设置 Facebook Pixel 代码比听起来更容易，而且几乎不需要到处寻找代码。

&#x20;      如果你是 Shopify 商家，那么设置 Facebook Pixel 像素十分简单，只需从你的商务管理平台复制**像素 ID（16位数字）**&#x5E76;将其粘贴到 Facebook Pixel ID 字段，该字段位于 Shopify 商店中在线商&#x5E97;**（Online Store）**&#x4E0B;的偏好设&#x7F6E;**（Preferences）**&#x7248;块。

#### 具体步骤：

1、在 Shopify 后台中，转到在线商店 -- 偏好设置；

2、在 Facebook Pixel 部分中，添加您的 Facebook Pixel ID；\
如果要从现有的 Facebook pixel 更改为新的 Facebook pixel，请在输入新的 Facebook pixel ID 之前单击更改；

3、单击保存。

&#x20;       在将像素 ID 添加至 Shopify 商店后，你应该会在几小时内开始看到网站活动。“访客”、“添加到购物车”和“购买”等统计数据将被记录，可在商务管理平台菜单栏右上角选择所有工具（All Tools），点击事件管理工具（Events Manager），在相关界面进行查看。


---

# Agent Instructions: 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:

```
GET https://help.uniagency.net/media/facebook-ads/others/zai-shopify-zhong-she-zhi-facebook-pixel-xiang-su-dai-ma.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
