pixelrun

Guides

Meta pixel firing twice on Shopify: why it happens and how to fix it

If Ads Manager shows more add-to-carts or checkouts than your store had, your pixel is probably sending the same event twice. Meta counts both, so your results look better than they are and the ads learn from numbers that aren't real.

How to tell

Why it happens on Shopify

Meta only merges two copies of an event when they carry the same event ID. Two separate setups each make their own ID, so both are counted. The common pairs:

  1. The Facebook & Instagram app plus code in the theme. Someone pasted the pixel into theme.liquid before the app was installed, and nobody removed it.
  2. The app plus a custom pixel. A pixel added under Settings → Customer events sends the same events the app already sends.
  3. The app plus Google Tag Manager. A Meta tag in GTM fires alongside the app.
  4. Two pixel IDs. An old agency's pixel is still installed next to yours. That isn't double counting in one account, but someone else is getting your data.
Find out in about two minutes

How to fix it

  1. Pick one source for Meta events. On Shopify that is usually the Facebook & Instagram app.
  2. Search your theme code (Online Store → Themes → Edit code) for fbq( and connect.facebook.net, and remove the old snippet.
  3. Open Settings → Customer events and remove any custom pixel that sends Meta events the app already sends.
  4. If you use Google Tag Manager, pause the Meta tags there.
  5. Check again, and confirm each event arrives once.

Make one change at a time and check after each. That way you know which setup was the extra one.