Articles ·

How to send Shopify events to multiple Facebook pixels

Shopify's Facebook & Instagram app connects one pixel. How to send the same events to a second Meta pixel, when sharing one pixel is enough, and what to avoid.

Shopify’s Facebook & Instagram app connects one Meta pixel per store, so a second pixel needs another route: a custom pixel in Settings → Customer events that initialises each pixel ID, or a tracking app that sends to several pixels. Before you add one, check whether you need it at all. If the goal is to let another ad account or an agency use your data, sharing the pixel you already have in Meta Business Settings does that without a second pixel.

Sending Shopify events to more than one Facebook pixel comes down to three setups. Sharing one pixel with other ad accounts or businesses keeps a single set of data, and it’s the right answer most of the time. A custom pixel in Customer events can call Meta’s fbq("init") once per pixel ID, so every event reaches each pixel, but only from the browser. A tracking app can send to several pixels, some from a server through the Conversions API. Each pixel counts every sale, so never add the totals.

Do you need a second pixel?

People usually land here for one of these reasons. Only some of them need a second pixel.

  • A second ad account in the same business wants to use your data. You don’t need a new pixel. In Meta Business Settings, open your pixel under Data sources and assign the ad account to it. Ads in that account can then optimise on your existing pixel.

  • An agency runs ads from its own business. Share your pixel with the agency’s business from the same place, as a partner. They get access and you keep ownership.

  • You’re moving to a new pixel, for example because a Meta rep suggested a fresh one or the old one belongs to a business you’re leaving. Here two pixels make sense for a while: the new one collects history while your current ads keep optimising on the old one.

  • Someone outside your business insists on their own pixel, like a partner brand or a wholesaler running ads for your products. Sharing doesn’t fit, so send to both.

  • You run two brands from one store and want separate data. A second pixel works, but both pixels will see the whole store. Splitting events by product takes code.

Meta’s labels in Business Settings change now and then. If yours read differently, look for the pixel or dataset under data sources and its connected assets.

Before you start

  • Both pixel IDs. The ID is the long number under the pixel’s name in Events Manager.

  • A list of what already sends to each pixel. Look at Settings → Customer events (app pixels and custom pixels), the Facebook & Instagram app’s data sharing settings and your theme code (search for fbq(). Our guide to finding duplicate Meta pixels on Shopify walks through each place.

  • Which pixel your current ads use. Ad sets optimise on one pixel each. Adding a second pixel changes nothing in Ads Manager until you point an ad set at it.

Option 1: a custom pixel that sends to each pixel ID

This is the free route, and it’s what most forum answers describe. You add a custom pixel in Customer events and initialise every pixel ID in it. Meta’s pixel code sends each fbq("track") call to every pixel that was initialised, and its trackSingle call sends an event to just one.

  1. Go to Settings → Customer events and click Add custom pixel.
  2. Name it something you’ll recognise, like “Meta pixels”.
  3. Leave Customer privacy on its default, which asks for marketing and analytics permission.
  4. Paste Meta’s base code and the event subscriptions from our guide to adding a Facebook pixel to Shopify, then change the init line to one line per pixel:
fbq("init", "FIRST_PIXEL_ID");
fbq("init", "SECOND_PIXEL_ID");
  1. Click Save, then Connect.

Every fbq("track", ...) after those lines now goes to both pixels. If an event should reach only one of them, swap track for Meta’s trackSingle and name the pixel, keeping the same parameters:

// fbq("track", "Purchase", {...}) becomes:
fbq("trackSingle", "SECOND_PIXEL_ID", "Purchase", {...});

One mistake is easy to make. If the Facebook & Instagram app already sends to your first pixel, don’t initialise that pixel again in the custom pixel. Put only the second ID in it. Otherwise the first pixel gets every event from both, and Meta counts your sales twice there.

Know what this route can’t do. A custom pixel runs in the shopper’s browser, so ad blockers stop it and it doesn’t use the Conversions API. Shopify also warns that it doesn’t support custom pixel code, so if a line breaks, nothing tells you.

Option 2: a tracking app that sends to several pixels

Plenty of Shopify apps send to more than one Meta pixel. Most install their own pixel through Customer events, so there’s no code. Setup is usually: log in with Facebook, turn on the pixels you want, and check that events arrive in each one.

Where apps differ is the part that matters:

  • Browser or server. Some apps only run Meta’s browser pixel several times. Others send from their own server through the Conversions API, which ad blockers don’t stop. Meta’s Conversions API is set up per pixel, so a server setup for your first pixel does nothing for the second one unless the tool sends to both.

  • Per-pixel control. Can you turn one pixel off without touching the others? Can you send different events to each? Read the listing before you install.

  • Overlap with what you already run. An app sending to the same pixel as the Facebook & Instagram app doubles that pixel’s purchases. Either turn off the channel’s data sharing or keep that pixel out of the app.

What changes once two pixels get your events

  • Each pixel counts each sale. Ten orders means ten Purchases in pixel A and ten in pixel B. That’s correct. Adding the two together isn’t.

  • Deduplication works inside one pixel only. Meta merges a browser and a server copy of the same event when they reach the same pixel with the same event ID. It never compares events across pixels. How Meta’s event deduplication works covers the event ID in more detail.

  • A new pixel starts with no history. Ads optimising on it learn from scratch, so keep your current ad sets on the old pixel until the new one has a few weeks of purchases.

  • Consent applies to every pixel. A shopper who declines marketing cookies shouldn’t reach any of them, so both pixels will sit a little below your Shopify orders.

Check that each pixel gets its events

  1. Open your store in a normal browser window and accept marketing cookies if there’s a banner.

  2. View a product, add it to the cart and start checkout. Place a cheap real order if you want to test Purchase, and refund it afterwards.

  3. In Events Manager, open each pixel in turn and look at its Overview. New server events can take about 20 minutes to show up.

  4. After a week, compare each pixel’s Purchases with your Shopify orders for that week. Close to your orders is right. Close to double means two sources send to that pixel.

How to check the Meta Conversions API is working on Shopify explains what to look for on each tab.

Sending to several pixels with SuperPixel

SuperPixel is the Shopify app I build, and sending to more than one Meta pixel is built in. It installs its own pixel through Shopify’s customer events, so there’s no theme code. You connect Meta by logging in with Facebook, and it finds the ad accounts and pixels you have access to, including ones owned by a Business Manager.

Each pixel has its own on/off switch, so you can send to two, three or more at once. You can also add a pixel by its ID. If you create a pixel later, the app can check Meta again and list it, turned off until you switch it on.

Events go from SuperPixel’s server to Meta’s Conversions API as PageView, ViewContent, AddToCart, InitiateCheckout and Purchase, with value, currency, product IDs and the order ID on purchases. Each order becomes one purchase per pixel, even when a shopper reloads the Thank you page. The Live Events page shows which pixels each event went to and, when it skipped one, why: the pixel is turned off, the shopper declined marketing, the connection expired, Meta rejected it.

The limits are worth knowing. Every pixel that’s on gets the same five events: there’s a switch per pixel, not a choice of events per pixel, and no custom events. It sends to Meta only. It won’t notice the Facebook & Instagram app sending to one of the same pixels, so turning that off is up to you. And it sends one store’s events; there are no agency or multi-store features. Orders the pixel never reported, and shoppers who declined marketing, aren’t sent to any pixel.

Your first 5 purchases are sent free. After that it’s $29 a month or $232 a year, billed through Shopify.

FAQ

Can the Facebook & Instagram app on Shopify send to two pixels?

No. Its data sharing settings connect one pixel per store. For a second pixel you need a custom pixel in Customer events or a tracking app, or you share the one pixel with the other ad account in Meta Business Settings.

Will two pixels count my sales twice?

Each pixel counts each sale once, if only one source sends to it. You’ll see the same purchases in both, which is fine. The double counting to worry about is two sources sending to the same pixel.

Can I send different events to each pixel?

With a custom pixel, yes: use trackSingle with the pixel ID for the events only one pixel should get. Some apps let you choose events per pixel too. Others send everything to every pixel that’s on.

Should I just share my pixel instead?

If the other party is an ad account or a business you trust with your data, yes. One pixel keeps one history, one deduplication and one set of numbers. Two pixels make sense when the other party has to own their data, or while you migrate to a new pixel.

Does the Conversions API work with multiple pixels?

Yes, but per pixel. Server events are sent to one pixel ID at a time, so the tool sending them has to send to each pixel you want covered.

Send to more than one pixel without code

If you’d rather flip a switch per pixel than edit custom pixel code, you can try SuperPixel free on your first 5 purchases. Not sure whether you need a second pixel at all? Email me at hello@superpixel.app and tell me what you’re trying to do.