This article will walk you through steps on how to add Meta Pixel (Facebook Pixel) to your store.
Meta Pixel is an analytics tool that helps you measure your advertising effectiveness by understanding the traffic and customer behavior on your online store.
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: Go to your Shopify admin>Online Store > Themes and select Actions, then “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 Pixel code between the <head> and </head> lines.
Step 3: Remove the code and hit “Save” when finished.
Add Facebook & Instagram to your Sales channels
Step 1: Install the Facebook & Instagram app from the Shopify app store.
Step 2: Hit “Add sales channel” after reviewing the permissions.
After that, you can access Facebook & Instagram on the left sidebar under Sales channels. Click to start setting up your Facebook account.
Add a Meta Pixel ID to your Shopify store
Step 1: From your Shopify admin, navigate to Sale channels > Facebook & Instagram. Hit “Connect account”.
Step 2: Select a Facebook personal account for connection. Then a list of available business accounts and Facebook pages will be displayed. Select the desired pages by checking the corresponding box for connection.
Step 3: Following that, a window will appear where you can determine the level of data sharing. Simply toggle on the “Share data” option. Then, in the “Choose preference” section, make a selection from Standard, Enhanced, or Maximum. For a detailed understanding of the distinctions between these three levels, refer to this article from Shopify.
Hit save when finished.
Step 4: 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! Meta Pixel is ready to help you understand your customers better.