pixelrun

Guides

Meta pixel not tracking purchases on Shopify

The pixel works on product pages and at checkout, but purchases are missing in Meta, or there are far fewer than the orders in Shopify. Meta then optimises without knowing who bought.

First, compare the numbers

Take the last seven days. Count orders in Shopify, then count Purchase events in Meta's Events Manager for the same days. Some gap is normal (blocked browsers, people who decline cookies). A gap of half or more means something is broken.

The usual causes

  1. The purchase code lived in "Additional scripts". Shopify is retiring additional scripts on the Thank you and Order status pages as stores move to the new checkout. Plus stores went first, other plans followed in 2026; your admin shows the date for your store. Code left there stops running, quietly.
  2. Consent. Where your cookie banner asks first, the app's pixel waits for marketing consent. Visitors who decline are not tracked in the browser.
  3. The app's data sharing setting. In the Facebook & Instagram app, check that data sharing is on and connected to the right dataset (pixel).
  4. The wrong dataset. Purchases go to a pixel that isn't the one your ad account optimises for.

What a check can and can't see

A free Pixelrun check walks your store up to checkout but never places an order, so it can't see the purchase event itself. It does show whether checkout reports to Meta at all. If InitiateCheckout is missing too, the purchase almost certainly is.

Check everything up to the purchase

How to fix it

  1. Move purchase tracking to the Facebook & Instagram app, or to a custom pixel under Settings → Customer events that listens for checkout_completed.
  2. Remove the old code from additional scripts so it can't come back as a duplicate.
  3. Place a test order and watch Events Manager → Test events for one Purchase.