How to add Facebook Pixel to your Shopify store

This article will walk you through steps on how to add Facebook Pixel to your store.

Facebook Pixel is an analytics tool that helps you measure your advertising effectiveness by understanding the traffic and customer behavior on your online store.

Before we start, you will need to have a Facebook Ads account. If you don’t have one, please follow the instruction from Facebook here

Remove the previous Pixel code from your theme

If you’ve added the Pixel code by editing your theme file before, you should remove it before adding it in the Shopify Admin. If not, your store will have multiple Pixel codes, which may result in duplicate or incorrect data in your reports.


Kindly follow the below instructions to remove the Pixel code from your theme. 


Step 1: From your Shopify admin, navigate to Online Store > Themes > Actions and select “Edit Code.”

 

 

Step 2: Look for the file “theme.liquid” file under the Layout section or via the search bar. Open the file to locate the Facebook Pixel code between the <head> and </head> lines.

 

 

Step 3: Remove the code and hit “Save” when finished.

 

Add a Facebook Pixel ID to your Shopify store

Step 1: From your Shopify admin, navigate to Sale channels > Facebook.

 

Step 2: Click on “Settings” and then “Data sharing settings.”

Toggle on the “Enable customer data sharing” option. Next, in the Choose level section, select Standard, Enhanced, or Maximum. Kindly check out this article from Shopify for the differences among the three levels.

 

 

Step 3: Select the Pixel you want to connect. 

All Pixels you have created will be listed here. If you don't have one, click "Create new" and follow the instructions.

 

 

That’s it! Facebook Pixel is ready to help you understand your customer better.

 

If you're interested in learning more about the powerful, user-friendly features of GemPages, feel free to explore the Help Center or reach our GemPages Support Team via email or live chat.


Was this helpful?