> ## Knowledge Base Index
> Fetch the complete knowledge base index at: https://support.easystore.co/sitemap.xml
> Use this file to discover available pages before exploring further.
> Pure-Markdown content can be obtained by appending a '.md' suffix to the content URLs listed in the sitemap (without the trailing slash).

# 【Facebook 行銷】 像素程式碼

有關的文章： [Facebook 相關](/zh-tw/category/facebook-1w39vhu/)

![](https://storage.crisp.chat/users/helpdesk/website/cacd8c03d2c53000/88564afb-e76b-4d40-b0a6-7eff31_14gx07f.png)
  
Facebook 像素是一段程式碼，可以讓你放在網站裡進行追蹤，以便衡量並最佳化廣告行銷活動的成效，以及建立廣告受眾。  
![](https://storage.crisp.chat/users/helpdesk/website/49c9cadb83797800/fcb82a8b-b98f-4d38-9f22-273802_l5mx3k.png)  
  
*   成功串接 Facebook 後，就會看到 EasyStore 後台顯示像素的 ID，而且將會自動建立以下事件像素程式碼：
  
  
  
![](https://storage.crisp.chat/users/helpdesk/website/59f0b866f73ea800/c40fd83c-8a05-49de-b0af-641434_1afe1i2.png)  
  
![](https://storage.crisp.chat/users/helpdesk/website/e5a45be87c009000/d17c9afd-7db6-43c6-9cb4-3bc667_4fhf2y.jpeg)  
  
*   選擇關於購買事件的觸發條件
  
  
（1） 當收到新的訂單 = 點擊下單按鈕即會觸發購買事件  
  
（2） 當訂單完成線上付款 = 當訂單成功以第三方金流付款後，即會觸發購買事件。手動付款方式不會觸發購買事件 （此選項推薦只開啟第三方金流方式的商家）  
  
（3） 當訂單完成線上付款，或等待手動付款中 = 當訂單成功以第三方金流付款或選擇手動付款方式即會觸發購買事件 （此選項推薦開放第三方金流和手動金流的商家）  
  
![](https://storage.crisp.chat/users/helpdesk/website/2c9836c5c6a4960/568dd8da-73e3-4166-8c96-c54273_1xd7orv.png)

