Tracking

How to run more than one Meta pixel on Shopify

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

·6 min read·By the ROASaurus team

Key takeaways
  • A second pixel makes sense for a separate agency or brand, a market with its own ad account, or a partner who needs your conversions; not as a backup copy.
  • Shopify's Facebook & Instagram app connects one pixel; extra pixels come from a custom pixel, Google Tag Manager or a tracking app.
  • Two pixels on one store are fine; two copies of the same purchase on one pixel are the problem.
  • Give each pixel a clear job, decide which events it receives, and check each one in Events Manager against your orders.
  • Extra browser pixels share the browser's blind spots; sending the order from the server to each pixel avoids that.

You can run more than one Meta pixel on a Shopify store. Shopify's own Facebook & Instagram app connects one pixel, so a second one is added with a custom pixel, Google Tag Manager or a tracking app. The setup itself is simple. What goes wrong is the data: every pixel fires every event, the same pixel ends up installed twice, and Ads Manager reports purchases that never happened.

What a Meta pixel does

A Meta pixel (now called a dataset in Events Manager) receives events from your store: page views, product views, add to cart, checkout and purchase. Meta uses them to report which ads led to sales, to optimize delivery toward likely buyers, and to build audiences such as recent visitors and lookalikes of buyers. Each pixel has its own events, audiences and Event Match Quality score, and only ad accounts that have access to a pixel can use it.

When more than one pixel makes sense

SituationWhy a second pixel helps
Two agencies or teams with their own ad accounts and business portfoliosEach keeps its own data and audiences without access to the other's
Several brands sold from one Shopify storeEach brand's ads learn from its own buyers
Markets with separate ad accounts (for example EU and US)Each market's pixel only sees its own visitors and orders
A partner or affiliate who is paid on conversionsThey see the sales they drove, not your whole store
Good reasons share one thing: each pixel has a different owner or a different audience.

How Shopify handles Meta pixels

The Facebook & Instagram app (under Settings › Apps and sales channels) connects one business portfolio, one ad account and one pixel. It sends the standard shop events from the browser and, at the highest data sharing level, from Shopify's servers through the Conversions API. That makes it the natural home for your main pixel.

Any additional pixel has to come from somewhere else, and checkout pages limit where: Shopify does not run theme code on checkout and thank-you pages. Code there must run as a web pixel, either a custom pixel under Settings › Customer events or a pixel added by an app.

Set up the main pixel first

  1. Connect the main pixel

    In the Facebook & Instagram app, connect your business portfolio, ad account and pixel, and choose the data sharing level.

  2. Check it in Events Manager

    Place a test order and confirm PageView, ViewContent, AddToCart, InitiateCheckout and one Purchase arrive, from browser and server.

  3. Remove old installations

    Search your theme code for fbq( and your pixel id. Old snippets of the same pixel double every event.

Three ways to add another pixel

1. A custom pixel under Customer events

Add a custom pixel with the Meta base code for the second pixel id and subscribe it to Shopify's standard events (product_viewed, product_added_to_cart, checkout_started, checkout_completed). This is the only way to reach the checkout without an app. Use the checkout's order id as the event id for Purchase, so a reload of the thank-you page is not counted twice. It runs in the browser only.

2. Google Tag Manager

GTM lets you decide per tag which events go to which pixel, for example only purchases above a value or only one market's domain. On Shopify, GTM itself also has to be loaded through a custom pixel to reach the checkout. Without a server container, it has the same browser limits.

3. A tracking app

A tracking app can send events to several pixels, from the browser and from the server, with routing rules per pixel. This keeps one source of events and avoids pasting extra base code into the theme.

The biggest mistake: duplicate purchases

Two pixels each receiving one Purchase per order is correct. The trouble starts when the same pixel receives an order twice: from the app and from a custom pixel, or from a browser copy and a server copy with different event ids. Meta then reports more purchases and more revenue than your store had, and value-based bidding learns from inflated numbers.

Example order #1042Main pixelAgency pixel
Browser Purchaseevent_id order-1042event_id order-1042
Server Purchaseevent_id order-1042event_id order-1042
Purchases Meta counts11
Same order with a random id on the agency's browser event12 (browser and server not matched)
Example data. Deduplication happens per pixel: each pixel needs one shared event id for its browser and server copy.

Every browser pixel depends on the same browser. When a visitor uses an ad blocker, declines cookies or closes the tab before the thank-you page, all pixels miss that purchase together. Adding pixels multiplies the scripts on the page, not the purchases you see. Each extra base code also adds a little weight to every page load.

A server-side source for every pixel

A sturdier pattern is one source of truth: the order itself. The paid order is sent from the server to every pixel that should receive it, each with the event id built from the order, and the browser pixels add what only the browser knows (cookies, page views). Routing rules decide which pixel gets which order.

Paid orderShopify order #1042, market EU
RoutingWhich pixels serve this market or brand?
Main pixelPurchase order-1042
EU agency pixelPurchase order-1042
Example: one order, sent once to each pixel that should have it, never twice to the same one.

How to check that each pixel works

  • Meta Pixel Helper. Walk through your store and checkout: each page should show each pixel once, with the events you expect.
  • Test events, per pixel. Place a test order and open Test events for each dataset. Each should show one Purchase with one event id.
  • Numbers per pixel. Compare a week of each pixel's purchases with the orders it should receive. The main pixel should be close to all paid orders; a market pixel close to that market's orders.
  • Diagnostics. Check each dataset's Diagnostics tab for duplicate or malformed events.

Best practices

  • Write down the purpose of each pixel and who owns it.
  • Keep one main pixel that receives every order; extra pixels receive only what they need.
  • Use one tool per pixel, never two that send the same events.
  • Use the order id as event id everywhere.
  • Recheck after every theme, app or checkout change.

Several Meta pixels in ROASaurus

In ROASaurus each pixel is a destination under Connections › Tracking & destinations, and you can add more than one Meta pixel to a store. Each gets the paid orders from the server, with event id order- plus the order id and the browser copy using the same id. On Shopify, a pixel can be limited to some Shopify Markets, or use another pixel id and token per market: visits and orders then go to the pixel of the market they belong to, and orders whose market is unknown are left out of a limited pixel.

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): one row per destination, so each pixel's accepted purchases can be checked against the orders it should get.

If the Facebook & Instagram app keeps sending server events to the same pixel, lower its data sharing so only one tool sends server events to that pixel. Each delivery, per pixel, is listed with its status in Data quality › Deliveries.

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

Tracking"No recent conversions" in Google Ads: causes and fixesWhat "No recent conversions" (now "Awaiting conversions") means in Google Ads, how to tell a quiet week from a broken tag, and the fix.TrackingCookieless tracking for online stores: what still worksCookieless tracking for online stores: server-side events, modeling and fingerprinting compared, what each still measures and what consent requires.TrackingGoogle Ads conversion tracking problems on ShopifyWhy Google Ads counts too few, too many or wrongly valued Shopify purchases, what each status and warning means, and a health check to find the cause.

FAQ

Questions, answered

More answers in the FAQ and the help center.

Can I have two Meta pixels on one Shopify store?

Yes. Shopify's Facebook & Instagram app connects one pixel; others can be added as a custom pixel under Settings › Customer events, through Google Tag Manager or with a tracking app.

Will two pixels double my purchases?

Not if each pixel receives each order once. Two pixels each counting one purchase is correct. Double counting happens when one pixel gets the same order twice, from two tools or with different event ids.

Should I use a second pixel for a new ad account?

Usually not. Give the new ad account access to your existing pixel in Business settings, so it uses the data and audiences you already built. Use a second pixel when another business needs its own data.

How do I add a Meta pixel to Shopify checkout pages?

Shopify does not run theme code on checkout and thank-you pages. Use a custom pixel under Settings › Customer events, or an app that adds a web pixel.

How do I check which pixels fire on my store?

Use the Meta Pixel Helper browser extension while you browse and check out, and open Test events for each dataset in Events Manager while you place a test order.

Every sale, traced to the ad that earned it

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