Without the Facebook pixel, running Facebook ads on Shopify is like knowing the location of the treasure chest and not seeking it out. It is just not wise.
Facebook’s pixel can help boost sales by optimizing, measuring, and creating targeted audiences for your ads. You will need to add tracking code to your Shopify store to make this happen.
Although adding the Facebook pixel can seem daunting or tedious, it is possible. What was the last time you heard “Add some code to your site” as something that was fun?
Make yourself a cup of coffee, then follow these steps to add a Facebook pixel code on your website.
Seven tips will be provided on how to maximize your Facebook pixel’s potential to increase conversions. Don’t waste money on ineffective ads.
Let’s start with the basics.
What’s the Facebook Pixel?
The Facebook pixel, a tracking code you must copy and paste into your Shopify store’s header area. This code sends Facebook information about your website visitors’ actions.
Why is important?
You can track what happens in your store and create better-targeted audiences. This will allow you to show your ads to the right people. This will increase your chances of selling!
These are some actions that you can track (also known as’standard events’).
- You can also add payment information
- Add to cart
- Add to your wishlist
- Search (e.g. product search on your site)
- There are many other options!
How do you create a Facebook Pixel for Shopify?
These are the first requirements.
- Shopify is your online store.
- You can modify the code of your website.
Qualify to both? Let’s make a Facebook pixel to your Shopify store.
- Go to your Events Manager.
- Click on the plus Connect Data sources.
- Select Web.
- Select Facebook pixel and click Connect.
- This window will appear asking you to identify your pixel.
You can give each pixel a descriptive name if you have multiple Shopify stores.
- You can also enter the URL of your website. Shopify is an integration partner of Facebook and offers an easy set-up process.
That’s it! Now you can create your Facebook pixel.
Where do I find my Facebook Pixel?
After you have created your Facebook pixel, it is easy to find it here.
- Go to your Event Manager.
- Choose your Business account.
- Select your Facebook pixel ID under Data Sources.
How to add a Facebook Pixel to Shopify’s store
There are three options for setting up the Facebook pixel in your Shopify store.
- Shopify Integration
- Manually add the Facebook pixel code
- Ask your web developer to do it.
Let’s take you step-by-step through each one.
1. Shopify integration: Add the Facebook pixel
Shopify store owners will find this the most straightforward way to go.
- Navigate to your Shopify admin, and click Facebook under the Sales channel Section.
- Click Settings and click Data Sharing Settings.
- Navigate to the Customer Data-sharingsection, and click on the Enable Data-sharingToggle.
- Next, choose Standard or Enhanced from the Choose Data-sharing Level section.
- Choose your pixel from the list.
- Click Confirm and and you’re done.
2. To Shopify manually, add the Facebook pixel
This tutorial will show you how to add the Facebook Pixel code to your website if you are a bit familiar with HTML.
- Go to your Event Manager.
- Choose the pixel you wish to add.
- Click Continue to Pixel Setup.
- Select To install code manually .
- Copy the Facebook code pixel.
- Locate the header for your Shopify store.
- What to look for In your code
- Find the header template within your CMS or web platform.
- After copying the code, paste it into Facebook Before and after It would also be located in the middle section of the header code
2. Ask a developer for the Facebook pixel code installation in your Shopify store
If you have a Shopify web developer, you can ask them to install the Facebook Pixel for you. Here’s how:
- Go to Events Manager.
- Select the pixel that you wish to add.
- Click Continue to Pixel Setup.
- Choose Email Instructions.
- Enter your web developer’s email address.
- Click Send.
After you have added your Facebook pixels, use the FacebookpixelHelper to check if your Facebook page is functioning properly. It can be found here.
Facebook pixel assister can be used to diagnose errors and improve the performance of your pixel.
Create your first Facebook events
Once you’ve added your Facebook pixel, it’s now time to get it working! It’s time to create events.
Events are actions that occur on your online store.
These actions will be tracked by your Facebook pixel and reported to your Events Manager. This information will allow you to target the right people in your ads.
There are two types of events:
- Events that are standard
- Custom events
These are the most common actions of website visitors, such as purchasing, searching or viewing a product. These events are tracked by your Facebook pixel to help you understand how potential customers interact with your site.
Facebook provides a list of pre-defined events that can be recognized and supported in all its products. Standard events can be used to optimize your ads for conversions, and create targeted audiences. Find out more about how to set up standard events.
These are the most popular standard events:
- Add payment information: Tracks the time that your online customers enter their payment information during checkout.
- Add items to your wishlist: This tracker tracks when visitors add items to a list.
- Add to Cart: When someone adds an item into a shopping basket, it fires.
- Contact. Captures all contact between your visitor (telephone, SMS and email), ).
- Search: This track searches that were performed in your Shopify store.
- Purchase: Gets information about completed purchases.
- Start checkout: Tracks who clicks on a shopping cart button.
contains the complete list and all the supported parameters for standard events.
These are actions that fall outside the normal scope of events. These events can be given a unique name to represent the action you want. To build custom audiences, you can use custom events.
You can map custom events to custom conversions if you wish to optimize or attribute them. You can then choose the standard event for which custom conversion you want to optimize.
You can create rules for URLs and events with custom conversions. You can then measure specific customer actions using these rules.
You can filter any ‘add-to-cart’ events so that you only measure the ones that have men’s shoes above $150. To encourage people to complete their purchases, you can run targeted ads. Your ad copy can be modified to best match your target audience.
This is how your Shopify store code will look when you add custom or standard events:
Understand your customer’s journey
It is possible to set up events at every stage of your visitors’ journey. You can track your customers’ journey from the moment they visit a product page until they make a purchase. Once you have mapped your customers’ journeys, you can target ads to help your Shopify store’s visitors move down your marketing funnel. This will maximize your sales.
7 tips for increasing your conversions using Facebook pixel
These tips will show you how to make the most of Facebook pixel in your Shopify store.
1. Create Custom Audiences
A Facebook pixel can be used to create Custom Audiences from website traffic.
You can reconnect with customers who have already purchased from Shopify. This is the best way to target Facebook because you can target people who are already in your sale funnel and are more likely convert.
Two reasons you can use custom audiences are:
- To run retargeting advertisements
- To be used as a source to create Lookalike Audiences.
2 types Custom Audiences to start with:
Are you unsure where to begin? Target your customers. These two types are known as Custom Audiences.
- Cart abandoners
You can create a custom audience based on abandoned carts. These people were close to purchasing, but something happened.
Possibly some people couldn’t find their credit card and decided to pay the bill later, but didn’t get around to it. Some could have been distracted by something at work. Perhaps they were discouraged by the shipping cost. No matter the reason, they were very close to purchasing from you. They may just need a little encouragement to convert.
You could, for example, run an ad campaign that emphasizes the fear of missing out. You could advertise that only a few items are left so people need to hurry. You could also offer free shipping or a small discount.
- Shopify customers who visited your store in the last 30 days
Another classic Custom Audience is made up of those who have visited your Shopify store within the past 30 days. Your ad campaign will be run for all website visitors. It’s best to make your message broad. You can segment your website visitors to target different product pages, which will allow you to create more targeted ads.
2. Create Lookalike Audiences
Another advantage to Custom Audiences are the fact that they can be used as a source for creating Lookalike Audiences
Lookalike Audiences allow you to reach people similar to those who have purchased from you before or who have interacted with you in other ways such as by visiting your website.
You will need to choose your Audience Size when creating a Lookalike Audience.
The lower the percentage, the more specific your Lookalike Audience will be.
We suggest starting with 1% to reach people most likely to buy from you.
Next, increase your percentage gradually if you realize that you have more people to reach your customers. Although your Lookalike Audience may be less specific, it will cover a larger pool of potential customers.
3. Run dynamic product ads
Facebook dynamic ads let you run personalized product ads automatically. You can retarget visitors to your website with ads that display the products they are interested in, but were distracted or didn’t have time to buy.
These ads are great for beginners to advertising because they don’t require a lot of manual labor.
Upload your product catalogue to Facebook Business Manager to run dynamic ads. You must include all products you wish to run ads for. Your Facebook pixel events can then be matched to the products in your catalog to show dynamic ads.
Three different formats are available for dynamic ads:
- Carousel – up to 10 images per ad
- Traditional image ad with one image;
- Collection Ad – A grid-like layout ad featuring a primary image, video, and four smaller images below.
4. Create custom conversions
We have already discussed custom and standard events in this article. You can measure more precise actions with custom conversions than you could with a standard event.
Facebook’s pixel allows you to set up rules that allow you to filter events or URLs.
If you are looking to target women who spend more on dresses than others, you can filter your purchases so that you only measure dresses for women over 50 dollars. Once you have enough pixels events to make custom conversions, these can be used to optimize your ad delivery to target women most likely to spend that much on a dress.
5. Track conversions on Facebook
Tracking the actions of your online customers is another way you can make use of the Facebook pixel. This is called conversion tracking.
To calculate your return on investment, you can use your track conversions. You can also use conversion tracking to create custom audiences or dynamic ads.
The Facebook pixel can be used to track conversions in the following ways:
- Events that are standard
- Custom events
- Conversions custom
Find out more about tracking conversions.
Conversion tracking allows you to see conversions across devices. Facebook can track how customers progress through your sales funnel, across both apps and on the web. You can track how customers see your ads on their desktop computers and then buy it using their mobile phones.
Your Facebook Ads Manager will show you your tracked conversions.
6. With API, track conversions on iOS 14 devices
You may have heard of the Apple iOS 14 release that could affect your advertising and reporting.
iOS 14 will require apps from the App Store to display a prompt to iOS14 users if they track their users. Your ads’ personalization will be restricted if users opt out of tracking their devices.
Facebook has developed a solution that allows for the conversion of Facebook pixels from iOS 14 devices to help with these changes. It’s called Aggregated Event Measurement. Instead of using cookies to collect information, a
Aggregated event measurement will allow you to measure up 8 conversion events per domain. This means that you will need to prioritise your events in order to determine which are most important for your business. provides more information about event configuration.
7. Make sure you attend enough events
Also, ensure that you are getting enough traffic to Shopify. Although this may seem obvious, novice advertisers often jump to conclusions about the performance of their ads and the best structure for their campaigns way too quickly.
Technically, your conversion rate would be around 33% if 10 out of 30 people add something to their cart after visiting your product page. But are 10 events enough to help you make decisions about your future advertising campaigns? It’s unlikely.
Make sure that you have enough events in your Facebook pixel before you begin creating your advertising strategies.
How many events is enough?
Facebook states that you must have at least 100 people in order to create a source audience to your ads. Technically, you can only start with 100 events. The more events you have, the better your statistical accuracy will be. You should aim to have between 500 and 1000 events in order to give Facebook enough data for it to build audiences based upon your events.
For more ideas, see our tips to drive traffic to Shopify store.
How do I delete my Shopify Facebook pixel?
You might have an existing Facebook pixel that you wish to add. To ensure there aren’t duplicates, you will need to first remove the old pixel.
These steps will allow you to delete your Shopify Facebook pixel.
- Click ‘Facebook’ in your Shopify admin.
- Click on ‘Settings.
- Navigate to the section ‘Data sharing settings’ and click Disconnect.
The pixel code may be still present in your theme.liquid. You should also make sure to remove it from your theme.liquid file.
- Click on ‘Online store’ to access your Shopify account.
- Click on the section titled ‘Current theme,’ then click ‘Actions’ to choose ‘Edit code.
- Click on the file ‘theme.liquid to open the code editor
- Find your Facebook pixel code by clicking the And Tags and then delete it.
- Be sure to click “Save.”
Should I add a Facebook pixel to Shopify’s website?
Yes. Yes. Your ads will be shown to the right people, so you can rest assured. Facebook’s pixel will provide you with a lot customer data which you can use to your advantage in order to increase your sales.
How can you add the Facebook Pixel to Shopify?
Yes, the Facebook pixel can be added to Shopify. There are three options. There are three options: manually add the Facebook pixel for Shopify, Shopify’s partner integration or email instructions to your web designer.
How do you create a Facebook Pixel?
These steps will help you create your Facebook pixel.
- Navigate to the Events Manager.
- Click Connect Data Sources to choose Web.
- Click Connect and select Facebook Pixel.
- Give your pixel an indicative title
- To learn more about the Shopify store setup process, enter your URL.
- To finish creating your pixel, click Continue.
How do I find my Facebook pixel ID?
Go to your Events Manager, and then select your Business Account. Look for the ID number under Data Sources.
Where can I find the Facebook pixel for Shopify?
Navigate to your Shopify admin Page. Go to your Shopify admin page. Click on the left under the Sales Channels’ column and then click on the ‘Online Store.’ Scroll down until you see a section called ‘Facebook Pixel. Here you can link your pixel with Facebook.
How can I add a Facebook Pixel to Shopify?
After you have created your Facebook Pixel, go to your Shopify admin page. Click ‘Facebook” under the Sales channels section. Next, click on ‘Settings” and then go to “Data sharing settings”. In the Customer data-sharing section click the toggle ‘Enable Data-sharing’. Select Standard, Enhanced or Maximum from the Choose data-sharing levels section. The list will appear. Select your pixel and click ‘Confirm’ to add it.