- First check whether the pixel is broken or just incomplete: compare Purchase events in Events Manager with paid orders in Shopify for the same week.
- No events at all usually means an installation problem: a wrong dataset id, a theme or app change, or two setups fighting each other.
- Events up to checkout but no Purchase points to the checkout: on Shopify, thank-you page tracking now runs through customer events (web pixels), not theme code.
- Duplicate purchases come from two senders for one pixel or from events without a shared event_id.
- Ad blockers, cookie limits and declined consent cannot be fixed in the pixel; sending purchases from the server closes most of that gap.
When the Meta pixel "is not working" on Shopify, it is usually one of three problems: it does not fire at all, it fires but misses purchases, or it reports more purchases than you had. Each has different causes. Start by finding out which of the three you have, then work through the fixes below in order.
How the Meta pixel works on Shopify
The Meta pixel is a script that runs in the shopper's browser. On each step of the visit it sends an event to Meta: PageView, ViewContent on a product, AddToCart, InitiateCheckout and finally Purchase, with the value, currency and product ids. It also sets the _fbp cookie to recognize the browser, and keeps the fbclid from an ad click in the _fbc cookie.
On Shopify, most stores add the pixel through Shopify's Facebook & Instagram app, which installs the browser events and, with the highest data sharing level, also sends events from Shopify's servers through the Conversions API. Other stores use a tracking app, Google Tag Manager or a custom pixel under Settings › Customer events. Checkout pages are a special case: Shopify no longer runs theme code or "additional scripts" on the thank-you page. Tracking there runs through customer events (web pixels) in a sandbox.
Is your pixel actually broken?
Before you change anything, find out what is wrong. Four checks take ten minutes:
- Look for live events
In Events Manager, open your dataset (pixel) and check the overview. If nothing has arrived for hours while your store had visitors, the pixel is not firing.
- Compare purchases with orders
Take last week's paid orders in Shopify and Meta's Purchase count for the same days. Close means healthy. Far lower means missed purchases; higher means duplicates.
- Walk through your own store
With the Meta Pixel Helper browser extension, visit a product, add it to the cart, check out and pay. Note which events fire on which page, and whether any fire twice.
- Check match quality
Events Manager scores each event for Event Match Quality. Events that fire but carry little customer information are hard for Meta to credit to an ad.
| Example week | Count | What it tells you |
|---|---|---|
| Paid orders in Shopify | 100 | The real number |
| Purchase events in Events Manager | 61 | 39 purchases never reached Meta |
| Purchases attributed to ads in Ads Manager | 34 | Meta could match and credit only part of what it received |
Ads Manager and Shopify never match exactly, even with perfect tracking, because Meta uses its own attribution windows and counts view-throughs. Our guide to why Ads Manager and Shopify sales differ explains the normal gap. A large or sudden gap is what to investigate.
Fix 1: check the installation
- The right dataset. The pixel id in your Shopify app or tag manager must be the dataset your ad account uses. A typo, an old pixel or a pixel from another business portfolio sends events where your ads cannot see them.
- One installation. Search your theme code for your pixel id and for
fbq(. Code pasted into the theme years ago, plus the Facebook & Instagram app, plus a tracking app, means two or three copies of every event. - A recent theme change. A new or updated theme often drops manually added code, or adds its own. If events stopped on the day you changed themes, start there.
- Apps that were removed. Uninstalling an app does not always remove the code it added to the theme.
Fix 2: missing Purchase events at checkout
If ViewContent and AddToCart arrive but Purchase does not, the problem is in the checkout:
- Old thank-you page scripts. Code in the checkout's "additional scripts" or in
checkout.liquidno longer runs. Move it to a custom pixel under Settings › Customer events, or let an app with a web pixel handle it. - A custom pixel without permission. Custom pixels have a customer privacy setting. If it requires marketing consent and your banner does not pass consent to Shopify, the pixel never runs for anyone.
- A third-party checkout or payment page. When the shopper pays on another domain or in a wallet window and never sees the thank-you page, no browser Purchase is possible.
- Wrong value or currency. A Purchase with value 0, a missing currency or the price in cents instead of units arrives but is useless for value optimization.
Fix 3: conflicting apps and duplicate events
Two apps that both send Purchase to the same pixel produce two purchases per order unless they share one event id. The same happens when the Facebook & Instagram app sends server events and a tracking app sends its own. Decide which tool sends Meta events, and turn the Meta part off in the others. When a browser and a server copy are both wanted, give them the same event_id. Our guide to duplicate purchase events lists every cause, and multiple Meta pixels on Shopify covers stores that need more than one pixel on purpose.
Fix 4: cookies, Content Security Policy and consent
- Content Security Policy. A strict policy set by a security app or a headless front end can block requests to Meta's domains. The browser console then shows "refused to load" errors for the pixel script.
- Cookie banners. If the banner blocks the pixel until consent and never passes the "yes" on, the pixel stays off even for visitors who agreed. Test with a fresh browser profile: accept, then watch the Pixel Helper.
- Domain verification. Verify your store's domain in Meta Business settings, so Meta knows the domain belongs to you and accepts its events for your ads.
Fix 5: Events Manager and ad account settings
- Check that the ad account is connected to the dataset, and that the ad sets optimize for the event you send (Purchase, not a custom event with another name).
- Read the Diagnostics tab in Events Manager. It lists problems such as missing parameters, a value that does not look like a price, or events Meta could not process, with a suggested fix.
- Use Test events with a test order to see each event as it arrives, from browser and server.
Things a pixel fix cannot solve
Some losses are not a setup error. They come from the browser and the shopper:
| Cause | What happens to the pixel |
|---|---|
| Ad blockers and privacy browsers | The request to Meta is blocked; nothing arrives |
| Safari and Firefox cookie limits | Cookies expire sooner, so a later purchase loses its link to the ad click |
| App Tracking Transparency on iOS | Meta can link less activity from its own apps to your site |
| Declined consent | The pixel does not run for that visitor, as it should |
| Closed tab or wallet payment | The thank-you page never loads, so no Purchase fires |
The way around them is to send purchases from the store's order data through the Meta Conversions API, next to the pixel and with one shared event id. A visitor who declined consent still should not be tracked in the browser; what happens to their order depends on your consent settings and the law in your market.
How ROASaurus handles Meta tracking on Shopify
ROASaurus sends Purchase to Meta from your Shopify orders, about 20 seconds after payment, with the click id and visitor id saved during the visit and hashed contact details from the order. The browser copy and the server copy share the event id order- plus the order id, so Meta counts one purchase. The storefront script collects data on your shop's own domain through the Shopify app proxy, so no DNS change is needed.

order #1042 · paidOrder arrives from ShopifyMeta Purchase order-1042 · sentServer copy accepted by MetaTikTok CompletePayment · sentSame order to TikTokorder #1043 · skippedReason shown, e.g. no marketing consent under Strict modeInstead of comparing counts by hand, Data quality › Overview does the "purchases vs orders" check every day per destination, with the share of events that carried email, phone and a click id, and raises an alert when accuracy or Meta's match quality drops.
Next step
Sources
- Shopify Help Center: Customer events and pixels
- Shopify Help Center: Facebook & Instagram by Meta
- Meta Business Help Center: Meta Pixel Helper
- Meta for Developers: Handling Duplicate Pixel and Conversions API Events