Tracking

Meta pixel not working on Shopify? Causes and fixes

Meta pixel not firing or missing purchases on Shopify? Check if it is broken, then fix install, checkout events, duplicates, cookies and browser limits.

·7 min read·By the ROASaurus team

Key takeaways
  • 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.

StorefrontPageView, ViewContent, AddToCart from the theme or app
CheckoutInitiateCheckout from a web pixel
Thank-you pagePurchase from a web pixel, if it loads
MetaMatches the event to a person and an ad
Every step depends on the shopper's browser. A blocked script or a page that never loads leaves a gap.

Is your pixel actually broken?

Before you change anything, find out what is wrong. Four checks take ten minutes:

  1. 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.

  2. 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.

  3. 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.

  4. 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 weekCountWhat it tells you
Paid orders in Shopify100The real number
Purchase events in Events Manager6139 purchases never reached Meta
Purchases attributed to ads in Ads Manager34Meta could match and credit only part of what it received
Example data. A pixel can be "working" and still miss a large share of purchases.

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.liquid no 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.

  • 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:

CauseWhat happens to the pixel
Ad blockers and privacy browsersThe request to Meta is blocked; nothing arrives
Safari and Firefox cookie limitsCookies expire sooner, so a later purchase loses its link to the ad click
App Tracking Transparency on iOSMeta can link less activity from its own apps to your site
Declined consentThe pixel does not run for that visitor, as it should
Closed tab or wallet paymentThe thank-you page never loads, so no Purchase fires
These are limits of browser tracking itself. More pixel tweaks will not bring these purchases back.

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.

The ROASaurus Mac app showing Tracking health: a card per destination, Purchase accuracy per day for Meta, GA4 and TikTok, and accuracy per payment method. Fictional demo store, simulated data.
The ROASaurus iPhone app showing Tracking health: a card per destination, Purchase accuracy per day for Meta, GA4 and TikTok, and accuracy per payment method. Fictional demo store, simulated data.
Data quality › Overview in the public demo (ROASaurus Demo Store, a fictional store, simulated data): for every destination, how many purchases were expected and how many the platform accepted.
order #1042 · paidOrder arrives from Shopify
Meta Purchase order-1042 · sentServer copy accepted by Meta
TikTok CompletePayment · sentSame order to TikTok
order #1043 · skippedReason shown, e.g. no marketing consent under Strict mode
Data quality › Deliveries lists each delivery with its status and the platform's response (example lines).

Instead 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

  1. Shopify Help Center: Customer events and pixels
  2. Shopify Help Center: Facebook & Instagram by Meta
  3. Meta Business Help Center: Meta Pixel Helper
  4. Meta for Developers: Handling Duplicate Pixel and Conversions API Events

In ROASaurus

Keep reading

TrackingHow to run more than one Meta pixel on ShopifyWhen a second Meta pixel on Shopify makes sense, three ways to add it, how to avoid duplicate purchases and how to check each pixel gets the right events.TrackingDuplicate purchase events: check pixel and server count onceHow Meta and other platforms decide two purchase events are one, what a matching pair looks like, and how to check pixel and server count each order once.TrackingWhy Meta Ads Manager and Shopify show different salesWhy Meta Ads Manager shows more or fewer sales than Shopify: the causes, a step-by-step reconciliation, and which number to trust for each decision.

FAQ

Questions, answered

More answers in the FAQ and the help center.

How do I check if my Meta pixel works on Shopify?

Use the Meta Pixel Helper browser extension while you walk through your store and place a test order, and watch the Test events tab in Events Manager. Then compare a week of Purchase events with your paid orders in Shopify.

Why does my pixel fire on product pages but not on the thank-you page?

Shopify no longer runs theme code or additional scripts on the thank-you page. Purchase tracking there needs a web pixel: Shopify's Facebook & Instagram app, an app with a web pixel, or a custom pixel under Settings › Customer events.

Why does Meta show more purchases than Shopify?

Usually two senders for the same pixel, or a browser and a server event without a shared event_id. Meta also counts view-through purchases and uses its own attribution window, so Ads Manager can be higher even with clean tracking.

Can I add the Meta pixel to Shopify manually?

You can add it to theme code for storefront pages or as a custom pixel under Settings › Customer events, which also runs on checkout pages. Use one method only, so events are not sent twice.

Will server-side tracking fix my pixel?

It does not fix a broken pixel, but it covers what the browser cannot report: purchases from visitors with ad blockers, short-lived cookies or a thank-you page that never loaded. Run it next to the pixel with one event id.

How do I make my Meta pixel data more accurate?

Keep one sender per pixel, send purchases from the server too, pass hashed email and phone, save the click id on landing, verify your domain and recheck after every theme, app or checkout change.

Every sale, traced to the ad that earned it

Server-side tracking, profit and lifetime value in one app. Free plan, no credit card.