Facebook Pixel for Website: How to Set It Up on Shopify (2026)
How to add the Facebook (Meta) pixel to your website and turn on the Conversions API on Shopify, which data sharing level to choose, and how to check it works with Pixel Helper and Events Manager.

A Facebook pixel for website tracking (now called the Meta pixel) is a small piece of code that tells Meta what people do on your site after they see your ad: view a product, add to cart, check out, buy. Without it, Meta can't tell which ads make sales, and it can't find more people like your buyers.
The pixel alone isn't enough anymore. Ad blockers and browser privacy settings stop some of what it sends. That's why you also want the Conversions API, which sends purchases from your store's server straight to Meta.
This guide shows how to set up both on Shopify in about ten minutes, which setting to choose, and how to check it's working.
Facebook pixel vs. Conversions API
- Meta pixel: runs in the shopper's browser. Tracks page views, product views, add to cart, checkout and purchases.
- Conversions API: runs on your store's server. Sends purchases to Meta directly, so they still count when the browser blocks the pixel.
Using both gives Meta the most complete picture. Meta matches the two so the same purchase isn't counted twice.
Facebook pixel for website: setup on Shopify
Shopify connects the pixel through its free Facebook & Instagram sales channel (by Meta). These are the steps from Shopify's Help Center:
- In your Shopify admin, go to Sales channels > Facebook & Instagram. If you don't have it yet, add the Facebook & Instagram app and connect your Meta business account.
- Click Settings, then Share data settings.
- In Customer data-sharing, turn on the data-sharing toggle.
- Choose a sharing level: Standard, Enhanced or Maximum (see below).
- Select your pixel from the list, or click Create new if you don't have one.
- Click Confirm.
Which data sharing level should you choose?

According to Shopify's data sharing guide:
- Standard uses the pixel only. Browser ad blockers can stop it.
- Enhanced uses the pixel and the Conversions API, which sends purchases server to server. It also shares customer details like name, email, phone and location so Meta can match buyers to their accounts.
- Maximum uses the pixel and the Conversions API, "updated with Facebook's latest advertising technology", and shares the same details as Enhanced.
Shopify doesn't recommend a level. For a store running Meta ads, we use Enhanced or Maximum, because Standard leaves out the Conversions API and Meta misses sales it could have learned from.
Because Enhanced and Maximum share customer information, update your privacy policy to say how you share data with Meta. Shopify notes that this is the store owner's responsibility.
Which events the pixel tracks on Shopify
Once connected, Shopify sends these events automatically, with no code needed:
- PageView: someone views a page
- ViewContent: someone views a product
- Search: someone searches your store
- AddToCart: someone adds a product to the cart
- InitiateCheckout: someone clicks checkout
- AddPaymentInfo: someone enters payment details
- Purchase: someone completes an order
The Conversions API sends the Purchase event server to server, using the order's total price.
How to check the pixel is working
1. Meta Pixel Helper. Install Meta's free Pixel Helper extension for Chrome, open your store and click it. It shows which pixel fired and which events it saw. Browse a product and add it to the cart to watch the events appear.
2. Events Manager. In Meta Events Manager, open your pixel. You'll see events coming in from Browser (the pixel) and Server (the Conversions API). Use Test events to check your own visit in real time.
3. Place a test order. Data only appears once people visit, so check again after a real or test purchase.
What we saw with a client
One of our clients sells products for parents of young children, like colouring books and puzzles for early brain development. Their ads were bringing people to the store, but sales kept slipping, and nobody could see what visitors did once they arrived: which pages they reached, where they dropped off, or which ads led to orders.
Here's what we did:
- Set up the Meta pixel properly. Events started showing up in Events Manager, and sales picked up a little once Meta could see who was buying.
- Used that pixel data to build lookalike audiences, based on the people who actually bought and reached the final pages.
- Sent the ads to those lookalikes. Sales went up and the cost of reaching buyers came down.
The ads themselves weren't the first problem. Meta simply couldn't learn without the data. Tracking is the first thing we fix for any store before we touch the campaigns.
Common problems
- Two pixels running. Old code in the theme plus the app. Remove the theme code.
- No server events. The level is set to Standard. Switch to Enhanced or Maximum.
- Purchases missing in Ads Manager. Meta only shows sales it can match to ads, within its attribution window. Compare with your Shopify orders, and give new setups a few days.
- An agency or app also sends events. Check nothing else sends the same pixel data, or reports can double up.
Why it matters for your ad results
Meta's delivery system learns from the conversions it sees. When purchases go missing, it learns from less data, often shows ads to the wrong people, and your cost per sale goes up. Good tracking is one of the cheapest ways to improve results. It's also the first thing we check in why Meta ads don't convert.
Once tracking works, check whether your ads are profitable with our free ROAS calculator, and see what other stores pay in how much Facebook ads cost.
Want us to set it up and check it for you? We set up tracking for every Meta ads client before the first campaign goes live. Book a free call.


