Installing the Facebook Pixel in your Shopify Store in 2022

December 01, 2019

Installing your Facebook Pixel on your Shopify can seem confusing at first. But thankfully, both Facebook and Shopify have made this process fairly easily.

The Facebook Pixel is a short snippet of code that allows you to track the activity on your website, what we would call in other words, conversion events (this user viewed this page, added this product to cart, or purchased).


1. Log into your Facebook Business Manager

If you haven't set up your Business Manager with Facebook that's no problem. You can also access your Facebook pixel as an individual user if you just have your personal ad account. You should still be able to find that in Events Manager.

On the top left, click the hamburger menu and then click Events Manager.



2. Add Your New Data Source

 Once in Events Manager, check if you don't already have a Facebook Pixel created. If you don't, click "Add New Data Source" and select "Facebook Pixel."



3. Create Your Facebook Pixel

Name your Facebook Pixel and leave "Check your website for easy setup options" blank.



4. Find Your Facebook Pixel ID

Select "Add code using a Partner Integration" and select Shopify to find your Facebook Pixel ID. You can also select "Manually add pixel code to website" to find your pixel ID.



5. Select Preferences in Shopify

On the lefthand panel, select "Online Store" and in the submenu select "Preferences."



6. Save Your Facebook Pixel ID

Scroll down to the Facebook Pixel section and enter your ID and save.


7. Check To See If Your Pixel Is Capturing Events

Head back to Events Manager in Facebook and check to see if the pixel is capturing events. This can take a few minutes to update and if your site doesn't have very many visitors, you may want to wait a couple of hours before checking.



8. Analyze Your Data

Head over to your Facebook Analytics to see demographic and website behavior data.


9. Create your Conversions Campaigns

In Facebook, now you can properly create Conversion campaigns within Facebook Ads Manager! This will let you create campaigns focused on optimzing towards specific events on your site.