Blog Detail

How to Add a Facebook Pixel to Your Shopify Store (Complete Tutorial)

How to Add a Facebook Pixel to Your Shopify Store

Hey there Rainmakers! We are really excited to share another way to help gain passive income, by using the integrated features of Shopify and Facebook. We love Shopify and personally believe that it’s one of the greatest ecommerce sites on the web right now. The fact that it offers such easy easy integration with other apps and platforms just makes it even better. 

We are going to show you step-by-step (or click-by-click) how to get a pixel, install it on your Shopify, and use the data you get for market research to launch a full ad campaign.

If you’ve tried Facebook ads before and you didn't have much luck, we’re going to challenge you to try again. We’re going to show you a strategy that ‘hyper targets’ the exact person who is most likely to resonate with your brand or purchase your products.

Starting with the Basics

Before you can run any ads from your shopify store, you must have a Facebook pixel. What exactly is a Facebook pixel? The pixel is a small piece of code for your website, that helps Facebook help you sell more products. When a person clicks the ad, this code then tells Facebook if the person went through with a sale, what kind of items they clicked on, if they actually explored different areas of your site etc. Facebook pixel will also track anyone who comes to your site. Whether they got there from Facebook, Instagram, a Google search, a link you posted, whatever; and will grab that data for you if you have the pixel. It can also run a report on what the source of your site visit was, which will be valuable information when it comes to time to start making and targeting ads. Luckily Shopify is an integrated partner with Facebook, so getting this Pixel is very simple. So let’s jump into it!

  1. Start on Shopify (> will be used for “click” or “tap”)
>apps
>visit app store
>search for Facebook Channel
>install on Shopify
  • Once it installs it will show up under your “Sales Channels”
>complete tutorial on how to connect to your Facebook
>click drop box and find Facebook Marketplace.
>Start set up
>enter Facebook password. 
>continue
>ok to continue
2. Facebook Manager 

After clicking continue, you will be redirected to Facebook Business Manager to combine the two accounts into one.  If you already have a business account set up, then you are pretty much good to go. If you don’t have a Business Manager set up for your account yet, you can create it from this same screen, and I highly recommend you go ahead and do so. Facebook Business Manager is going to be a huge part of our targeting strategy, plus it helps keep your information organized in one place. 

It is super important that you connect the right account, because this is where we are going to pull data from and get your ads, so make sure it’s connected with your business and not your personal page. 

Once you have the correct account attached click 

> view and accept terms
> will take you back to Shopify.
 
3. Setting Target Audience in Shopify
Once you are redirected to your Shopify again, go ahead and double check that your Payment Details are still good and set the way you want them since we are connecting another site now. After you’ve made sure those settings are still a go we’re going to go over to Connect Facebook Page
> set target country
  • You will likely just want to target the country you are living in, unless you know for sure you have a market in other countries. We still recommend to just base it in your home country.
> accept
4. Facebook Online Store
We’re going to jump back over to Facebook for a second to make sure the pixel is embedded and everything is ready to work together. 
> Online store
> Preferences
  • Scroll down to Facebook pixel section
> Set up Facebook
  • This should be linked to the Facebook page you created the pixel for earlier. The next thing we’re going to look for is the pixel id number so we know what it is, and can make sure that it’s showing up where it needs to. To find the id number:
>Go to data sharing preferences 
> Enhanced
  • here you can see your pixel and the date you created it.
That number is your little piece of code. 

> Go to Events Manager 

  • Your pixel id should pop up right here. Once you get the pixel on your site anyone who visits is going to give you data that will populate here in this spot. You can try sharing a post online and then see then see the number of visits here to see if it spiked your views and clicks or not. Yes, I know that you can do this on Shopify as well but, it’s nice to see the impact of using Facebook as well.


5. Settings in Shopify. 

 

We’re going back into Shopify again now to make sure that our settings are set up for optimal pixel use. 

> Data Sharing Settings
> Turn On customer data sharing and choose maximum. 
    •  This allows the two companies to share information with each other. If a customer primarily checks on a certain style or design , they will then see similar items or designs on their Facebook.
    • Leave all settings on default.

> Confirm 

6. Settings in Facebook

Here we are going to make sure that our Facebook settings match our Shopify settings so they truly are working in tandem.

> Settings
> Pixel
> Pixel Settings
> Advanced Matching 
  • Go ahead and turn on all other options as well at this time.  This will help if you want to do a relaunch or retarget on a particular area or group. 
> Traffic Permissions 
  • Make sure this is on the “allow” list.


7. Final Check 


The final steps to make sure that the pixel is active and working on your page
> Google search “facebook pixel helper”
> Add as an extension to your web browser

  • After you’ve added the extension, go ahead and “pin” it as well so it stays visible under your tabs. 
  • Icon for it should start out all grey. 
  • When someone visits your site, the icon will turn green
  • When it turns green you can click on it and see exactly how many page views you are getting, as well as what content. 
  • As the site is being clicked on the icon should continue to turn/stay green as long there interaction on the site, and as you input the code like we did earlier.

It’s also worth noting that your Facebook pixel will run on all of Facebook Partner sites, and you can add it to any of your other websites. 
That is how you add a Facebook pixel to your Shopify account. That was a lot of tech talk and clicking, so let me explain a little better how this data you receive benefits you and your business.

Now, I know that talking about people’s data or “tracking” seems very shady or creepy. I also know that trusting that data in your hands as a steward who wants to serve someone else, is powerful. So these suggestions are ways that we have found to use that stewardship, and not spamming techniques to create sincere connections.
Even if you don’t plan to do Facebook Ad, it’s still worth the  pixel for the data. Especially long term. Facebook is going to show those items to similar people and on all kinds of data points. The longer you leave the pixel on your site, the longer Facebook can gather data for  similar customers that would like your product and connect them with you. 

Most people who click on your page for something are genuinely interested in it or something like it. Otherwise they never would have clicked it in the first place you. 
Using this information for retargeting, relaunching, and reconnecting with your and your product, when done right, will pinpoint exactly who needs to meet you and your products, as well as those that need a refresher on your items, without being spammy. 

Using the information from your pixel, you can offer incentives for these people who started to shop, but clicked away. Or to the ones who started to shop, but then got distracted and left it all in their cart. Especially use this as a way to say thank you to your loyal customers, that keep coming back on their own. Offer them free shipping, a coupon, or gift with purchase as an act of appreciation. The key to doing this successfully is sincerity. People can tell who is the real deal and who’s just trying to hustle, so serve them well. 

We hope that this marriage of Facebook and Shopify serves you well also. We want to hear about how this worked for you. If you saw a spike in page views, in sales, if you have used this strategy before, or any other ideas that you have used. Share your stories in the comments and let us celebrate “Making it rain!” together. 

References 

  • https://www.shopify.com/