To set up the Meta Pixel on Shopify, install Meta's Facebook and Instagram sales channel, connect your Meta business account and Pixel, and choose a data sharing level in the channel settings. Choose Enhanced or Maximum to add the Conversions API, which sends purchases server to server so ad blockers cannot stop them. Meta removes duplicates when both send the same event with a matching ID, so you get fuller data without double counting. Then update your privacy policy, use a consent banner and compare Meta's purchases with Shopify's orders to confirm it works.
Every Facebook and Instagram campaign depends on Meta knowing who bought. If the tracking misses sales, Meta optimises towards the wrong people and your results look worse than they are; if it double counts, you spend more on ads that are not working. Getting the Pixel and Conversions API right is the cheapest improvement most stores can make to their Meta ads.
The Meta Pixel is code that runs in the shopper's browser and records events such as page views, product views, add to basket, checkout and purchase. It is what Meta has used for years to measure ads and build audiences such as people who viewed a product but did not buy.
The Conversions API sends events from a server rather than a browser. Meta says server events are processed like Pixel events, so they can be used for measurement, reporting and optimisation. Shopify notes that server to server data cannot be blocked by browser based ad blockers, which is the main reason to use both: the Pixel sees browsing behaviour, and the Conversions API makes sure purchases still arrive when the browser blocks the Pixel.
Shopify's Facebook data sharing guide describes three levels, set in the Facebook and Instagram sales channel:
| Level | What it uses | What it shares |
|---|---|---|
| Standard | Meta Pixel only | Browsing behaviour from the browser; can be blocked by ad blockers |
| Enhanced | Pixel plus Conversions API | Purchase events server to server, plus customer information |
| Maximum | Pixel plus Conversions API, kept up to date with Meta's latest technology | Customer information such as name, location, email and phone, plus browsing behaviour |
Shopify does not recommend a level and reminds merchants that data sharing is a choice. We usually recommend Maximum, because it gives Meta the most complete picture, once the privacy policy and consent banner are in place.
If your store used the old additional scripts box on the order status page for tracking, check it now. Shopify has moved checkout tracking to Shopify Pixels, and the deadline for Plus stores to upgrade the Thank you and Order status pages was 28 August 2025, so old scripts there may no longer run.
When the Pixel and the Conversions API both send a purchase, Meta needs to know they are the same sale. Meta's deduplication guide recommends matching on event name and event ID: the Pixel's eventID must match the Conversions API's event_id, and the event names must match. Meta only merges events received within 48 hours of the first one with that ID.
In words: the browser and the server each send the purchase; if both carry the same event name and event ID and arrive within 48 hours, Meta keeps one. Shopify's sales channel handles this for you. Problems start when a second Pixel or a third party app sends its own events with different IDs.
The ICO's guidance on cookies and similar technologies says consent must be actively and clearly given, that non essential cookies cannot be set before the user consents, and that the same rules apply to any other technology that stores or reads information on someone's device. It also says behavioural tracking needs particularly clear consent. In our view that covers the Meta Pixel, so:
Double counting is not a theoretical risk. Broken conversion tracking is the most common problem we find in inherited Google Ads accounts this year; in the worst case a freelancer run account double counted every purchase, so the client's ROAS report showed double the real figure. The same thing happens on Meta when two Pixels run side by side.
Having the Conversions API switched on is not the same as having it working. Most of the Meta accounts we inherit already have it set up, but they always have errors. So run the checks above even when everything shows as connected. These are the common problems to look for:
| Problem | Sign | Fix |
|---|---|---|
| Two Pixels on the store | More purchase events than orders | Remove hand coded or app Pixels; keep the sales channel |
| Old checkout scripts | Purchases missing since the checkout upgrade | Move tracking to Shopify Pixels or the sales channel |
| Standard level only | Purchases under reported, worse with ad blockers | Move to Enhanced or Maximum |
| No consent banner | Legal risk | Add a banner that blocks tracking until consent |
| Pixel owned by an agency | You cannot access your own data | Ask for ownership to be transferred to your business |
We are a Meta partner, and the first thing we check in any Meta account is whether the tracking can be trusted. As the inherited accounts above show, connected is never the same as working. Fixing tracking often improves results without changing a single ad, because Meta starts optimising towards real buyers. Creative then does the rest: when Halo Coffee added creator videos, its cost per sale on Meta fell by 27% between 2018 and 2021.
Ad accounts we set up always belong to the client, and we work to a floor of at least 2x ROAS across the accounts we manage. We are a Shopify Select partner with Verified Skills across development and marketing, our pricing is published, and retainer clients are billed one month in arrears with no long contracts. For a free review of your Meta tracking and ads, visit our social media marketing agency page.
What is the Meta Pixel?
The Meta Pixel is a piece of code on your website that records what visitors do, such as viewing a product, adding to basket and buying, and sends those events to Meta. Meta uses them to measure your Facebook and Instagram ads, build audiences and show ads to people most likely to buy.
What is the Conversions API?
The Conversions API sends the same events from your store's server to Meta's servers, rather than from the shopper's browser. Shopify's help centre notes that server to server data cannot be blocked by browser based ad blockers, so it fills gaps the Pixel misses.
Do I need both the Meta Pixel and the Conversions API?
Yes, for most stores. The Pixel captures browsing behaviour in the browser and the Conversions API sends purchases server to server, so together they record more of your sales. Meta removes duplicates when both send the same event with a matching event name and event ID within 48 hours.
How do I add the Meta Pixel to Shopify?
Install Meta's Facebook and Instagram sales channel in Shopify, connect your Meta business account, then open the channel's settings and choose a data sharing level. The channel connects your Pixel and, on the Enhanced and Maximum levels, the Conversions API, without adding code to your theme.
Which data sharing level should I choose in Shopify?
Shopify offers Standard, which uses the Pixel only, and Enhanced and Maximum, which add the Conversions API and share customer information such as email and phone number. We usually recommend Maximum, once your privacy policy and cookie consent are up to date, because it gives Meta the most complete data.
How do I check my Meta Pixel is working?
Use the Meta Pixel Helper browser extension to see which events fire on your pages, then open Events Manager to check events are arriving and being deduplicated. Finally, compare purchases reported by Meta over a week with orders in Shopify; large gaps or doubled figures point to a setup problem. Check even if the Conversions API shows as connected: most Meta accounts we inherit have it set up, but always with errors.
Do I need cookie consent for the Meta Pixel in the UK?
In our view, yes. The ICO says consent rules apply to cookies and to any similar technology that stores or reads information on a device, and that behavioural tracking needs particularly clear consent. Use a consent banner that blocks marketing tracking until shoppers agree, and take legal advice for your circumstances.
The Meta Pixel and Conversions API together give Meta the most complete view of your sales, and Shopify's sales channel makes the setup straightforward. The work is in the details: one Pixel, the right data sharing level, a proper consent banner and a weekly check against Shopify's orders.
Get those right and every Meta campaign you run has a better chance of working. If you would like us to check your setup, email us.
Tell us a little about your store and we'll get back to you within 24 hours.