×
Shopify agency background 1 Shopify agency background 2 Shopify agency background 3 Shopify agency background 4

Meta Pixel and Conversions API on Shopify: Setup and Checks

SHOPIFY MARKETING E-COMMERCE
Meta Pixel and Conversions API on Shopify: Setup and Checks

SHARE

Key Takeaways

  • The Meta Pixel records shopper actions in the browser; the Conversions API sends events from server to server, which browser ad blockers cannot stop.
  • On Shopify, both are set up through Meta's Facebook and Instagram sales channel, with no theme code needed.
  • Shopify offers three data sharing levels: Standard (Pixel only), Enhanced and Maximum (Pixel plus Conversions API and customer information).
  • Meta merges a browser event and a server event into one when the event name and event ID match within 48 hours.
  • In the UK, tracking that stores or reads information on a device needs clear consent, so set up a consent banner before you rely on the data.
  • Most Meta accounts we inherit already have the Conversions API set up, but they always have errors.
  • Check tracking by comparing a week of Meta reported purchases with Shopify orders; double counting is one of the most common problems we find.

Quick Answer

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.

Table of Contents

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.

What Are the Meta Pixel and Conversions API?

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 Data Sharing Levels

Shopify's Facebook data sharing guide describes three levels, set in the Facebook and Instagram sales channel:

LevelWhat it usesWhat it shares
StandardMeta Pixel onlyBrowsing behaviour from the browser; can be blocked by ad blockers
EnhancedPixel plus Conversions APIPurchase events server to server, plus customer information
MaximumPixel plus Conversions API, kept up to date with Meta's latest technologyCustomer 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.

How to Set Up Meta Tracking on Shopify

  1. Check who owns the accounts. Your Meta business portfolio, ad account and Pixel should belong to your business, not to an agency or freelancer. Of the Google Ads accounts we inherit, 95% were owned by the previous agency or freelancer rather than the merchant, so check your Meta accounts the same way.
  2. Remove old Pixel code. Delete any Pixel added by hand to the theme or by an old app, or you will count events twice.
  3. Install the Facebook and Instagram sales channel from Meta in the Shopify App Store and connect your business portfolio, ad account and Pixel.
  4. Choose the data sharing level. In Shopify admin go to Sales channels, Facebook and Instagram, Settings, Data sharing settings; turn on customer data sharing and choose a level.
  5. Update your privacy policy and consent banner before switching on Enhanced or Maximum.
  6. Place a test order and confirm the purchase appears once in Events Manager with the correct value.

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.

How Meta Avoids Counting a Sale Twice

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.

How one purchase is counted once Meta Pixel from the browser Conversions API from Shopify's server Same event name and event ID, within 48 hours 1 purchase
How Meta merges a Pixel event and a Conversions API event. Source: Meta deduplication guide.

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:

  • Use a consent banner that blocks marketing tracking until the shopper agrees, with an easy way to say no.
  • Update your privacy policy to explain what you share with Meta; Shopify says this is the merchant's obligation.
  • Expect some data loss. Shoppers who decline will not be tracked by the Pixel, which is another reason the server side data matters.
  • Take legal advice for your situation; the ICO is consulting on revised guidance, so check for updates.

How to Check Your Tracking Is Right

  1. Meta Pixel Helper: Meta's free browser extension shows which events fire on each page. Check product pages, the basket and a test order.
  2. Events Manager: confirm purchases arrive from both browser and server, and that they are being deduplicated. Events Manager also scores how well your events match to Meta accounts; more customer information usually raises it.
  3. Compare with Shopify: over a week, Meta's reported purchases attributed to ads will be lower than total Shopify orders, but purchases recorded by the Pixel should not exceed them. More events than orders means double counting.
  4. Check values: the purchase value should match the order value in your chosen currency, with or without VAT and shipping, consistently.

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.

Common Meta Tracking Problems

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:

ProblemSignFix
Two Pixels on the storeMore purchase events than ordersRemove hand coded or app Pixels; keep the sales channel
Old checkout scriptsPurchases missing since the checkout upgradeMove tracking to Shopify Pixels or the sales channel
Standard level onlyPurchases under reported, worse with ad blockersMove to Enhanced or Maximum
No consent bannerLegal riskAdd a banner that blocks tracking until consent
Pixel owned by an agencyYou cannot access your own dataAsk for ownership to be transferred to your business

Why Matters Perspective

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.

Frequently Asked Questions

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.

Final Thoughts

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.

Ecommerce growth

Grow your sales, not just your traffic.

We design, build and market Shopify stores for UK brands as one team, with published prices, billing one month in arrears and no long contracts.

Or email info@whymatters.co.uk. We reply within 24 hours.

Get your free growth plan

Tell us a little about your store and we'll get back to you within 24 hours.

We only use your details to reply to your enquiry. See our privacy policy.