Store setup3 min read

Shopify Facebook Pixel Setup: Connect Your Meta Pixel

Connect a Meta pixel to your Shopify store through the Facebook & Instagram channel, avoid duplicate pixels, and confirm it works in Ads Manager.

In this guide
  1. How do I connect a Meta pixel to my Shopify store?
  2. Which data-sharing level should I choose?
  3. What if I already added pixel code to my theme?
  4. How do I check that the pixel is working?
  5. How do I change or remove my pixel?
  6. Where else does Shopify manage pixels?
  7. FAQ
  8. Sources

To set up a Facebook (Meta) pixel on Shopify, go to Sales channels > Facebook & Instagram > Settings > Share data settings. Turn on data sharing, choose Standard, Enhanced or Maximum, select your pixel and click Confirm. Then check in Facebook Ads Manager that it works.

This guide walks through each step in order, in plain words. Every step comes from Shopify’s help center, linked in the Sources at the end.

How do I connect a Meta pixel to my Shopify store?

  1. From your Shopify admin, go to Sales channels > Facebook & Instagram.
  2. Click Settings, and then click Share data settings.
  3. In the Customer data-sharing section, click the Enable data-sharing toggle.
  4. In the Choose data-sharing level section, select Standard, Enhanced, or Maximum.
  5. Select your pixel from the list. You can connect an existing pixel or create a new one.
  6. Click Confirm.

If you already added pixel code to your theme or to your Online Store preferences, remove it first. The section on old pixel code below shows how.

Which data-sharing level should I choose?

Level What it sends to Meta
Standard Customer behavior only
Enhanced and Maximum Customer behavior, plus customer information, including name, location and email address
  • Standard sends only customer behavior.
  • Enhanced and Maximum also send customer information, including name, location, and email address.
  • Your rules come first. Pick the level that fits your privacy policy and the rules of the countries you sell to.

What if I already added pixel code to my theme?

Remove the old pixel code before you connect a pixel through the channel. Otherwise your store will have more than one pixel, which can result in duplicate or incorrect data in your reports.

  • Pixel code pasted into your theme. Delete that Meta pixel code from your theme code.
  • Pixel added in Online Store preferences. Go to Online Store > Preferences, click Change in the Meta pixel section, delete the Meta pixel, and click Save.
  • An agency or an app runs your ads or traffic. Check with them that adding a pixel won’t cause duplicate or incorrect data in your reports.

How do I check that the pixel is working?

  • Use Ads Manager. After you add the pixel, confirm it is working by using Facebook Ads Manager.
  • Give a new pixel time. With a new pixel, no data shows in Facebook Ads Manager until there is customer activity on your store.
  • Check before a big sale. Do this check well before a sale, so you have time to fix problems.

How do I change or remove my pixel?

  1. From your Shopify admin, go to Sales channels > Facebook & Instagram and click Settings.
  2. In the Share data settings section, click Change to remove your current pixel.
  3. Connect another pixel, or create a new one.

Where else does Shopify manage pixels?

  • Customer events. Shopify manages pixels from the Customer events section of your admin, at Settings > Customer events.
  • Two kinds of pixel. Pixels there are either app pixels, installed through marketing and data collection apps, or custom pixels, added manually by a developer.
  • Which to use. Shopify’s help recommends an app pixel when one fits your needs, and a custom pixel only if no app pixel meets them.

FAQ

Where do I add the Facebook pixel in Shopify?

Go to Sales channels > Facebook & Instagram > Settings > Share data settings, then select your pixel and click Confirm.

Do I need to paste code into my theme?

No, not when you use the Facebook & Instagram channel. If you already pasted pixel code into your theme, remove it so your store doesn’t run two pixels.

Why is no data showing in Ads Manager?

With a new pixel, you need to wait for customer activity before any data is displayed in Facebook Ads Manager.

What is the difference between Standard, Enhanced and Maximum?

Standard sends only customer behavior. Enhanced and Maximum also send customer information, including name, location, and email address.

Sources