MultiPixelsStart now
pixel setup8 min read

How to Set Up a Facebook Pixel on Shopify: Complete Guide

A Shopify store linked to a Meta pixel through the Facebook & Instagram app to track shopper activity.

If you run ads on Facebook or Instagram, you need the Facebook pixel working on your Shopify store. It records what visitors do, such as product views, add-to-carts and purchases, so Meta can measure your ads, optimize them and help you retarget people who did not buy.

This guide shows how to set up the Facebook pixel on Shopify through Shopify's Facebook & Instagram app, step by step, including what you need first, how to check it works, and how to fix the usual problems. To learn more about what the pixel does, see our Facebook pixel page.

Key takeaways

  • Set up the Facebook pixel on Shopify through the Facebook & Instagram app. No code is needed.
  • You need a Meta business portfolio, an ad account and admin access to your Shopify store.
  • Choose Maximum data sharing so events also go through Meta's Conversions API.
  • Check your setup with Test Events in Events Manager and the Meta Pixel Helper extension.
  • Remove any pixel code you added to your theme by hand, or events will be counted twice.
A Shopify store linked to a Meta pixel through the Facebook & Instagram app to track shopper activity.

What Facebook Pixel Is and Why It Matters for Shopify Stores

The Facebook pixel, now called the Meta pixel, is tracking code on your Shopify store that tells Meta what visitors do: which products they view, what they add to their cart, and what they buy.

That data is what makes Facebook and Instagram ads work well for a store. It shows which ads lead to sales, who your buyers are, and who left without buying, which helps you drive traffic to your Shopify store and turn more of it into orders.

For Shopify stores, the pixel matters because:

  • It tracks conversions, so you can measure return on ad spend.
  • It powers retargeting, so you can show ads to people who visited but did not buy.
  • It helps Meta's ad delivery learn which people are most likely to buy.

Without it, you can see clicks but not which ads led to sales.

The pixel also lets you build custom audiences of past visitors and lookalike audiences of people similar to your buyers.

Set it up early, even before you run ads. The pixel starts collecting data from the day you connect it, which gives your first campaigns more to learn from.

Prerequisites Before Setting Up Facebook Pixel on Shopify

Check you have these in place before you start.

1. A Meta business portfolio

You manage your pixel, ad accounts and Facebook Page in a Meta business portfolio, formerly called Business Manager. If you do not have one, create it at business.facebook.com.

Tip: use your business email, and make sure the Facebook profile you log in with has admin access to the portfolio.

2. A Facebook ad account

You need an ad account in the same business portfolio, so your campaigns can use the pixel's data.

3. Admin access to your Shopify store

You need permission to install apps and change data sharing settings in Shopify.

4. Shopify's Facebook & Instagram app installed

Shopify connects to Meta through the Facebook & Instagram app, also listed as a sales channel. It is the simplest way to set up the Facebook pixel without code.

5. A clear plan for tracking

Decide which events matter most: usually purchases, add to cart and checkout started. Shopify's app sends these standard events for you.

Step-by-Step Guide: How to Set Up Facebook Pixel on Shopify

The setup has three steps: create the pixel, connect it in Shopify, and check it works.

Step 1: Create a Facebook Pixel in Meta Business Manager

In Meta Business Suite or Events Manager, create the pixel. Our guide to creating a Facebook pixel covers this step in more detail. In business settings, go to Data sources, then Datasets (some accounts still show Pixels), and click Add. Name it, usually after your store, and enter your website address.

Meta gives the pixel an ID. You do not need to copy any code: Shopify's app installs the pixel for you. You can also skip this step and create the pixel from inside Shopify's app in step 2.

Step 2: Add Facebook Pixel to your Shopify Store

In your Shopify admin, go to Settings, then Apps and sales channels, and open Facebook & Instagram. If it is not installed yet, add it from the Shopify App Store.

Follow the prompts to connect:

  • Your Facebook profile.
  • Your business portfolio.
  • Your Facebook Page and ad account.
  • The pixel you created, or a new one.

Then open the app's data sharing settings, turn data sharing on, and choose a level. Choose Maximum: it sends events through both the pixel in the browser and Meta's Conversions API from Shopify's servers.

Shopify then adds the pixel to your store and sends the standard events, such as product views, add to cart, checkout started and purchases.

Step 3: Verify Facebook Pixel installation

Check that events arrive before you rely on them.

In Events Manager, open your pixel and use Test Events. Enter your store's address, then browse: view a product, add it to the cart and start checkout. Each event should appear within a few seconds, and server events are labeled as coming from the server.

You can also use the Meta Pixel Helper Chrome extension to see which browser events fire on each page. Look for PageView, ViewContent and AddToCart as you browse, and Purchase after a test order.

If nothing shows up, or you see errors, use the troubleshooting section below.

How to Set Up Facebook Pixel via Facebook & Shopify Integration (Shopify Sales Channel)

The Facebook & Instagram app is the easiest and most reliable way to set up the Facebook pixel on Shopify, because it keeps your pixel, product catalog and ad account in sync without code.

Once the app is installed, setup takes a few steps:

  • Connect your Facebook profile.
  • Choose your business portfolio.
  • Select your Facebook Page, ad account and pixel.
  • Turn on data sharing and choose Maximum.
  • Confirm and finish.

Shopify then sends pixel events from every relevant part of your store: the home page, product pages, cart, checkout and the thank-you page.

With Enhanced or Maximum data sharing, the app also sends events from Shopify's servers through the Conversions API. Those still arrive when a visitor's browser or an ad blocker stops the pixel.

Using the app also avoids the most common mistakes, such as two copies of the pixel or missing checkout events.

Common Issues and How to Troubleshoot Facebook Pixel on Shopify

Most problems come from data sharing settings, the wrong pixel, or code added twice.

Pixel not firing on all pages

If Purchase or Add to Cart events are missing, check that data sharing is turned on in the Facebook & Instagram app and set to Maximum. Check that the app is connected to the right pixel, ad account and business portfolio.

No data showing in Events Manager

If the pixel is connected but nothing arrives, go back to Settings > Apps and sales channels > Facebook & Instagram and walk through the connection again. Then test with Test Events.

Duplicate Pixel firing

If you added pixel code to your theme by hand, or used another pixel app before, events may fire twice. Remove the old code or app and rely on Shopify's Facebook & Instagram app. Pixel Helper shows "Pixel Activated Multiple Times" when this happens.

Business or catalog mismatch

If setup fails with a message about the catalog belonging to a different business, your Page, catalog and pixel are owned by different business portfolios. Move them into one portfolio, then connect again.

If you still have problems, see why your Facebook pixel isn't working.

Best Practices for Shopify Facebook Pixel Setup

A few habits keep your tracking accurate after setup.

  • Use Shopify's Facebook & Instagram app. It is the supported method and keeps everything in sync.
  • Do not add the pixel to your theme by hand. It creates duplicate events, and theme code does not run on Shopify's checkout.
  • Set data sharing to Maximum. Events from the Conversions API still arrive when browsers block the pixel.
  • Test after big changes. Re-test with Test Events or Pixel Helper after changing your theme, adding apps or changing checkout.
  • Keep assets in one business portfolio. Your pixel, ad account, catalog and Page should belong to the same portfolio to avoid permission problems.

If you advertise on more than Meta, MultiPixels installs Meta, TikTok, Pinterest, Snapchat and GA4 pixels on a Shopify store without editing theme code. Install MultiPixels on your Shopify store to run several tracking pixels at once.

FAQ

Questions, answered.

Still unsure? Our support team is here to help.

SUPPORT

Talk to our team

The people who build MultiPixels answer every message.

Shopify's Facebook & Instagram app connects one pixel. If you need more, for example for separate ad accounts, use an app built for several pixels, such as MultiPixels, rather than adding code by hand.

Explore next

Keep reading.

All articles
An app window with one Install button becomes three rows for Snapchat, X and Pinterest, each marked with a green Active chip.
October 24, 2026 · PIXEL SETUP

How to Run Snapchat, X and Pinterest Pixels on Shopify Without Slowing Site

Read article
Table of four Purchase events with order values, one repeated row crossed out and labeled Duplicate.
October 22, 2026 · LOOKALIKE AUDIENCES

How to Build Lookalike Audiences from Shopify Purchase Data Using Pixels

Read
An app window with one "Add pixel" button expands into table rows for Facebook, TikTok and Pinterest, each marked Active.
October 20, 2026 · PIXEL SETUP

How to Add Multiple Ad Pixels Shopify Store Without Editing Theme Code

Read