Shopify's Facebook & Instagram app connects one Facebook pixel. That is enough for many stores, but not if you run several ad accounts, work with more than one agency, or want separate tracking for different brands or collections. This guide covers how to add multiple Facebook pixels in Shopify, when it makes sense, and how to do it with an app or with code.

Key takeaways
Shopify's Facebook & Instagram app connects one pixel. To add more, use an app or custom code.
Extra pixels make sense for separate ad accounts, agencies, brands or collections.
An app is the easier, safer route and can cover checkout. Theme code cannot reach checkout.
Test every pixel with Meta Pixel Helper and Test Events, and watch for duplicate events.
Name your pixels clearly and keep a record of which pixel tracks what.
What Facebook Pixels Are and Why You'd Add Multiple to Shopify
A Facebook pixel, now called the Meta pixel, is code on your store that records what visitors do, such as product views, add-to-carts and purchases, and sends it to Meta.
One pixel is usually enough. Multiple pixels help when you need to keep data apart, for example:
- Separate ad accounts. Your own team and an agency each run ads from different ad accounts and pixels.
- Different brands or collections. A store selling a main range and a separate niche or B2B range wants each audience tracked on its own.
- Partners. An affiliate or wholesale partner wants their own pixel on the products they promote.
If all your ads run from one ad account, you usually do not need a second pixel: one pixel can be shared with several ad accounts in your business portfolio.
Things You’ll Need Before Adding Multiple Facebook Pixels
Have these ready before you start.
- Access to your Meta business portfolio (formerly Business Manager) and each pixel you plan to use.
- Admin access to your Shopify store, with permission to install apps or edit the theme.
- The pixel ID for each pixel, from Events Manager.
- A plan for which pixel fires where: the whole store, certain collections, or certain products.
If you have not set up your first pixel yet, start with our guide to creating a Facebook pixel for Shopify, then follow the step-by-step Facebook pixel setup on Shopify.
Methods to Add Multiple Facebook Pixels in Shopify
There are two ways to add more than one pixel: a Shopify app, or custom code.
Method 1: Using a Shopify App (Recommended Way)
A multi-pixel app is the easiest and safest way. MultiPixels, for example, lets you add as many Facebook pixels as you need, plus TikTok, Pinterest, Snapchat and X pixels, without editing code.
With an app, you:
- Install the app from the Shopify App Store.
- Enter the pixel ID for each pixel.
- Choose where each pixel fires: the whole store, or specific collections, products or pages.
- Save, then test.
Apps send events from all parts of your store, including checkout, and many also keep a backup of your settings and offer support if something goes wrong. That matters when large ad budgets depend on your tracking.
Assigning pixels to parts of your store also lets you track different buyers separately. A store selling both physical and digital products could give each its own pixel to see how each kind of buyer behaves.
Method 2: Manual Installation via Code (Advanced Users)
If you want full control and are comfortable with code, you can add pixels by hand.
In your Shopify admin, go to Online Store > Themes, click the three dots next to your live theme and choose Edit code. Open theme.liquid, find the closing </head> tag and paste the pixel's base code above it. To add more pixels, initialize each pixel ID once, so the same events are not sent twice.
You can use Liquid conditions to load a pixel only on certain templates, such as products in one collection.
Know the limits before you choose this route:
- Theme code does not run on Shopify's checkout, so it cannot record checkout or purchase events. For those, use a custom pixel in Settings > Customer events, or an app.
- Duplicates are easy to create. If Shopify's Facebook & Instagram app already sends a pixel, adding the same pixel in your theme counts every event twice.
- No built-in checks. You need to test and monitor everything yourself.
- Theme changes. Switching themes loses the code, so keep a copy and re-test after big theme updates.
Choosing Between an App and Manual Setup
Choose by your comfort with code, how complex your setup is, and how often it changes.
An app suits most stores: it is quicker, covers checkout, and comes with updates and support.
Custom code suits stores with a developer, a custom theme or unusual tracking needs. It gives full control over where each pixel fires, but you own every fix, and purchases still need customer events or an app.
If you are unsure, start with an app. You can move to custom code later if you outgrow it.
How to Configure and Test Facebook Pixels After Setup
Test every pixel before you rely on it.
Using Facebook Pixel Helper for Testing
Install the Meta Pixel Helper Chrome extension, open your store and click its icon. It lists each pixel on the page, the events each one sent, and any errors or duplicates. Check the pages where different pixels should fire, such as a product in a collection with its own pixel. Our guide to Meta Pixel Helper explains each message.
Then open each pixel in Events Manager and use Test Events. Browse your store and place a test order, and check that each pixel receives the events it should, and only once.
Common Issues and Troubleshooting Tips
The most common problem is duplicate events: the same pixel sending the same event twice because it is installed in two places. Pixel Helper shows "Pixel Activated Multiple Times" when this happens. Keep each pixel in one place only. If a pixel stops firing, see why your Facebook pixel isn't working and how to fix it.
Unclear names cause confusion too. Name each pixel in your business portfolio after its purpose, so anyone on the team knows which pixel tracks what.
Finally, when campaigns change, update your pixel setup. Remove pixels you no longer use, record any changes, and audit the setup every few months.
Best Practices for Managing Multiple Facebook Pixels on Shopify
A little organization keeps several pixels manageable.
- Keep a record. List each pixel, its ID, and the store, collection or campaign it covers, in a shared document.
- Use clear names. For example, "MainStore_UK" or "Wholesale_Collection".
- Review Events Manager regularly. Check each pixel still receives the events you expect.
- Remove unused pixels. Old pixels add load and clutter reports.
- Watch page speed. Check your store with PageSpeed Insights after adding pixels.
- Test after changes. Re-test after installing apps, changing themes or editing checkout.
A quick checklist before you launch:
- You have access to your Meta business portfolio and each pixel
- You have admin access to your Shopify store
- Each pixel ID is labeled and assigned to the right part of your store
- You have chosen one method per pixel, an app or code, and followed its steps
- You have tested each pixel with Meta Pixel Helper and Test Events
- You have written down your setup for the rest of the team
- You check pixel data and store speed regularly
Conclusion
Adding multiple Facebook pixels in Shopify is straightforward once you know where each one should fire. An app is the simplest route and covers checkout; custom code gives full control but needs more care. Either way, test each pixel, avoid duplicates and keep a record of your setup.
MultiPixels installs unlimited Meta pixels, plus TikTok, Pinterest, Snapchat, X and GA4, on a Shopify store without editing theme code, and lets you assign pixels to collections, products and pages. Install MultiPixels on your Shopify store to run several tracking pixels at once.