Meta pixel Purchase event not firing on Shopify? Here's how to fix it
Your Meta pixel sees page views and add-to-carts but no Purchase. The usual Shopify causes in order, how to fix each one and how to test it with a real order.
On Shopify, a Meta Purchase can only fire from the checkout, through Shopify’s customer events: the Facebook & Instagram app, an app pixel or a custom pixel. Pixel code in your theme or in the old Additional Scripts box doesn’t run there anymore, so that’s the first thing to check. Then make sure whatever should send Purchase is connected and allowed to run, and test it with a real order in Events Manager, not with the Pixel Helper extension.
Shopify’s checkout and Thank you page don’t load your theme, so a Meta pixel pasted into
theme.liquid sends PageView, ViewContent and AddToCart but never Purchase. Purchase has to
come from something listening to Shopify’s checkout_completed event: the Facebook &
Instagram app, a tracking app’s pixel, or a custom pixel under Settings → Customer events.
If one of those is in place and Purchase is still missing, look for a disconnected pixel,
the wrong pixel ID, shoppers declining marketing, or a test order that never reached the
Thank you page.
The causes, in the order to check them
| Cause | Where to check |
|---|---|
| Pixel code lives in the theme | Search theme for fbq( |
| No Purchase source in Customer events | Settings → Customer events |
| Broken custom pixel | The custom pixel |
| Purchase sent to another pixel | Pixel ID vs ad set |
| Shoppers declined marketing | Settings → Customer privacy |
| Order skipped the Thank you page | Order source |
| Testing with Pixel Helper | Test events instead |
Work down the list; the sections below follow the same order. The first three are setup problems you can fix in ten minutes.
1. The pixel is in your theme, not in Customer events
For years the standard setup was: base code in theme.liquid, Purchase code in the
Additional Scripts box on the order status page. Neither works for purchases now. The theme
doesn’t load in checkout, and Shopify has switched off Additional Scripts on the Thank you
and Order status pages for every plan.
The symptom is very specific: PageView, ViewContent and AddToCart look fine in Events Manager, and Purchase is missing or stopped on a particular day.
Fix: pick one of the sources in the next section to send Purchase. Then delete the old
fbq( code from your theme, or once the new source is live you’ll send two of every
other event. If you’re setting the pixel up again from scratch, how to add a Facebook pixel
to Shopify goes through each route step by step.
2. Nothing in Customer events is set to send Purchase
Go to Settings → Customer events in Shopify. Everything that can see a checkout is listed here, under App pixels and Custom pixels. You want exactly one entry that sends Purchase to your Meta pixel:
-
The Facebook & Instagram app. Open the app, go to its data sharing settings, check that data sharing is on and that the pixel selected is the one your ads use.
-
A tracking app. Its app pixel should show as Connected. Check the app’s own settings for which Meta pixel it sends to.
-
A custom pixel. See the next section.
If you find none, that’s your answer. If you find two, you’ve got a different problem: Meta will count most sales twice. Why Meta shows a different number of purchases than Shopify covers that one.
3. Your custom pixel isn’t connected or doesn’t listen for checkout completed
Custom pixels break quietly, because nothing in Shopify warns you. Three things to check:
-
Status. A custom pixel does nothing until you click Connect. The list shows Connected or Disconnected next to each one.
-
The event it listens for. Inside Shopify’s sandbox,
fbq('track', 'Purchase')has to run when Shopify reportscheckout_completed. Code that looks for a thank-you URL or reads the page won’t find anything. -
Permissions. The pixel’s customer privacy setting decides which shoppers it runs for. More on that in cause 5.
After Meta’s base code and fbq('init', 'YOUR_PIXEL_ID'), the purchase part looks like this:
analytics.subscribe("checkout_completed", (event) => {
const checkout = event.data.checkout;
fbq("track", "Purchase", {
value: checkout.totalPrice?.amount,
currency: checkout.currencyCode,
}, { eventID: checkout.order?.id });
});
The eventID is the order ID, so if the same order is ever reported twice, Meta can merge
them. Shopify fires checkout_completed once per checkout, on the Thank you page. If you
run a post-purchase upsell, it fires on the first upsell page instead.
4. Purchase is going to a different pixel
This one looks like “not firing” from Ads Manager but isn’t. Purchase arrives fine, just on a pixel your ad sets don’t optimise for. It happens after a new Business Manager, an agency handover, or a second pixel created by accident.
Check: in Events Manager, look at every pixel (dataset) you have access to, not just the one you expect. Then compare the pixel ID in your Facebook & Instagram app, tracking app or custom pixel with the one in your ad set’s conversion settings.
5. Shoppers declined marketing
If your store shows a cookie banner, Shopify only runs marketing pixels for shoppers who accept. The Facebook & Instagram app follows that choice, so do most tracking apps, and so does a custom pixel set to require marketing permission. A shopper who declines can still buy, and no Purchase reaches Meta from the browser.
This isn’t a bug, and you shouldn’t work around it. But it explains a steady gap, and the gap is bigger in the regions where your banner shows. Check Settings → Customer privacy to see where the banner appears.
6. The order never went through the Thank you page
Browser pixels only see what happens in a shopper’s browser. Purchase won’t fire for:
- orders you create or mark as paid in Shopify admin (draft orders, manual orders)
- point-of-sale orders
- subscription renewals charged in the background
- shoppers who pay and close the tab before the Thank you page loads
- shoppers whose browser blocks scripts on the checkout
That’s why Events Manager will usually show somewhat fewer purchases than Shopify orders, even when everything is set up right.
7. You’re testing with the Pixel Helper
The Meta Pixel Helper extension often reports “no pixel found” at checkout on Shopify, because customer events run in a sandbox the extension doesn’t look inside. It’s the source of a lot of panicked forum threads about pixels that were working all along.
Test this way instead:
- In Events Manager, open your pixel and go to Test events.
- Enter your store’s URL and open it from there.
- Place a real order, or a test order with Shopify Payments in test mode.
- Wait for the Thank you page to load, then look for Purchase in the Test events list.
If Purchase shows up there, your setup works. If it doesn’t, go back to causes 2 and 3.
One catch: events sent only from a server show up in Test events only when the tool sends Meta’s test code with them. If you use a server-side app that doesn’t, check the app’s own event log, or the pixel’s overview in Events Manager, instead.
What SuperPixel does here (and doesn’t)
SuperPixel is the tracking app I build, so here’s how it fits this problem.
It installs its own pixel through Shopify’s customer events right after you install it, so there’s no theme code and no custom pixel to maintain. It listens for checkout completed along with page views, product views, add-to-carts and checkouts started, and sends them to Meta’s Conversions API from its own server. An ad blocker that blocks Meta’s browser script doesn’t stop them.
Each purchase is matched to Shopify’s paid order, so a reloaded Thank you page or a return from a payment provider is one Purchase, not two. The setup checklist ends with confirming events are arriving. The Live Events page shows each recent event, which pixels it went to, and the reason when it wasn’t sent: the shopper declined marketing, the pixel is turned off, the connection expired or Meta rejected it.
Here’s the limit, and it matters for this topic. SuperPixel’s pixel runs in the same Shopify sandbox, so it also needs checkout completed to fire in the shopper’s browser. A shopper who closes the tab first, or declines marketing, doesn’t produce a Purchase in Meta. Those paid orders still show up in SuperPixel’s own revenue reports, with no known source. It doesn’t send past orders, and it doesn’t turn off your other Meta sources for you.
It costs $29 a month or $232 a year, billed through Shopify, and your first 5 purchases are sent free so you can test it.
FAQ
Why does Meta see AddToCart but not Purchase?
Because AddToCart happens on your storefront, where theme code runs, and Purchase happens in checkout, where it doesn’t. A pixel pasted into the theme sees one but not the other. Send Purchase through Customer events instead.
Does Shopify still support Additional Scripts for the Meta pixel?
No. Additional Scripts on the Thank you and Order status pages are switched off on every plan. Use the Facebook & Instagram app, an app pixel or a custom pixel.
How long does a Purchase take to show up in Events Manager?
In Test events, a browser Purchase appears within seconds of the Thank you page loading. The main overview can lag behind, so give it an hour before you decide it’s missing.
Can I get the missing purchases into Meta after the fact?
Not with a browser pixel, and SuperPixel doesn’t backfill either. Meta’s Conversions API also refuses events older than seven days. Fix the setup and the count recovers from that day on.
Should I add a second source just in case?
No. Two sources sending Purchase to the same pixel usually double count, because they don’t share event IDs. Pick one. How to set up Meta Conversions API on Shopify walks through both routes.
Try it on your store
If you’d rather see each purchase go out than keep guessing, you can try SuperPixel free on your first 5 purchases and watch the Live Events page while you place a test order. Questions first? Email me at [email protected].