How to setup Facebook Pixel for Shopify Store

What is Facebook Pixel ?

Facebook Pixel is a audience tracking code that you can add your store’s theme. It is a piece of javascript code similar to Google Analytics code.

How Facebook Pixel works ?

Facebook Pixel matches your site visitors to their Facebook profile. Whenever a person opens up on browser,  Facebook inserts a cookie in their browser. This cookie is used to track users session. This cookie is what helps users remain logged in, even when they open facebook in another tab.

Now if you have install Facebook Pixel on your store’s site, the pixel code will notify about your site’s visitor. This is again done based on Facebook cookie and Pixel code. Once Facebook Pixel is installed on your site, Facebook knows who your site vistor is.

What can FB Pixel do for your store ?

There are two things you can do after installing Facebook Pixel

  • Track users between devices. You can track how customers switch between devices before they convert.
  • Re-target Facebook users based on whether they visited your site or not.

How Facebook Pixel is different from Google Analytics ?

Google Analytics code allows you to capture how many site visitors you had. It also give details about the visitors; devices useds for browsing; user’s geographical location; time of day etc. Google Analytics has been a standard tool for tracking website visitors for a long time. It is also useful if you want to use Google Adwords for do online advertising on Google and its Partner owned online properties.

Facebook Pixel is more focused in terms of its reach. It can identify users who visited your store by their Facebook profile. That means Facebook knows your customers age, location, sex, income, buying power, their friends, their interests, their job title and much more. Facebook has more insights into your customers,  that Google can never have.

How to add Facebook Pixel in your Shopify store

First you need to generate a Facebook Pixel. Go to Facebook Ad Manager. In Ad Manger, click on Ads Manager link -> Assets -> Pixel.


If you have not created Pixel earlier, you will be prompted to create one.




Once created, you can get the Pixel Code by again going to Pixel page  Ads Manager link -> Assets -> Pixel.

Pixel code can be found on right hand column.

Screen Shot 2016-06-15 at 11.32.03 PM

To add Pixel to your Shopify store, click on Settings -> Online Store.


You will see field for Facebook Pixel. Add you Pixel code there and click save.


Shopify will take care of installing Facebook Pixel on all your site pages.


Facebook Pixel is a powerful tool to conversion tracking. It is much more powerful when compared to Google Analytics, because of rich customer insight. Shopify makes it very easy to add Facebook Pixel on your store’s website. In future, I will be writing articles explaining how can you use Facebook Standard and Custom conversion codes for your store.

Till then “Sell More” 🙂 .

Leave a Reply

Your email address will not be published. Required fields are marked *