Circle Separator3 mins read

How Do I Add Meta Pixel to My Shopify Store?

The recommended way to add Meta Pixel to Shopify is through the Facebook and Instagram by Meta sales channel. This connects an existing Meta Pixel or creates a new one without requiring JavaScript in your Shopify theme.

The setup uses three customer data-sharing levels: Standard, Enhanced, and Maximum.

Shopify Meta Pixel Setup at a Glance

TaskShopify location
Install the Meta integrationSales channels → Shopify App Store
Open pixel settingsSales channels → Facebook & Instagram → Settings
Enable trackingShare data settings
Connect or create a pixelCustomer data-sharing
Choose a tracking levelStandard, Enhanced, or Maximum
Check whether it worksMeta Ads Manager after customer activity occurs

How Do I Install Facebook and Instagram by Meta?

Install the Facebook and Instagram by Meta sales channel from your Shopify admin.

  1. Log in to Shopify.
  2. Go to Settings → Sales channels.
  3. Click Shopify App Store.
  4. Search for Facebook and Instagram by Meta.
  5. Click Add channel or Add app.
  6. Select Start setup and connect your Facebook account.

Shopify treats Facebook and Instagram by Meta as a sales channel. It therefore appears under Sales channels, rather than necessarily under Settings → Apps.

If the sales channel is already installed, open it from:

Shopify admin → Sales channels → Facebook & Instagram

How Do I Open Shopify's Meta Pixel Settings?

Open Share data settings inside the Facebook and Instagram sales channel, then enable Customer data-sharing.

  1. Open Facebook & Instagram under Sales channels.
  2. Click Settings.
  3. Select Share data settings.
  4. Turn on Customer data-sharing.

Shopify requires customer data-sharing to be enabled before you connect a Meta Pixel to your online store.

Which Meta Data-Sharing Level Should I Choose?

Choose Standard, Enhanced, or Maximum based on your privacy, consent, analytics, and advertising requirements.

  • Standard: Shares customer behavior data.
  • Enhanced: Shares more customer information.
  • Maximum: Shares the most available customer information, including details such as a customer's name, location, and email address.

A higher setting gives Meta more information for matching and advertising activity, but it also involves sharing more customer data. Review your privacy and consent requirements before selecting a level.

How Do I Connect or Create a Meta Pixel?

Connect an existing pixel from the Customer data-sharing section, or create one if your business does not have a Meta Pixel.

  1. Find the list of available pixels.
  2. Click Connect beside the Meta Pixel you want to use.
  3. If you do not have a pixel, click Create new.
  4. Click Confirm.

You can also create a Meta Pixel in Meta Ads Manager and return to Shopify to connect it.

After confirmation, Shopify connects the pixel to your online store. The pixel sends customer activity data to Meta for advertising measurement and campaign optimization.

How Do I Test Whether Meta Pixel Is Working?

Visit your store, perform a customer action, and then check the connected pixel in Meta Ads Manager.

  1. Open your Shopify store in a browser.
  2. Visit a product page.
  3. View the product or add it to the cart.
  4. Check the connected pixel in Meta Ads Manager.

Newly connected pixels may not show data immediately. Customer activity must occur before data appears in Meta's reporting tools.

Should I Install the Meta Pixel Twice on Shopify?

No. Use one main installation method for the same Meta Pixel.

If you previously pasted Meta Pixel code into your Shopify theme, remove that code before connecting the pixel through Facebook and Instagram by Meta. Two installations can send duplicate events and make advertising reports inaccurate.

To remove manually added code:

  1. Go to Online Store → Themes.
  2. Open the menu for your current theme.
  3. Click Edit code.
  4. Open theme.liquid.
  5. Remove the Meta Pixel code between the <head> and </head> tags.
  6. Save the file.

Also check for other installations from:

  • Facebook advertising apps
  • Analytics apps
  • Google Tag Manager
  • Marketing agencies

Another app or advertising provider may send the same event more than once. Shopify recommends checking for duplicate or incorrect data when another integration is involved.

Should I Use Shopify's Custom Pixels Area?

Usually, use the Facebook and Instagram by Meta integration instead of Shopify's Custom Pixels area.

Shopify recommends using an integrated app pixel when one is available. Custom pixels require more technical setup, and Meta's pixel SDK does not automatically send Shopify customer events unless the pixel is initialized and subscribed to those events correctly.

Use a custom pixel only when the native Meta integration does not support a tracking requirement that your store needs.

Why Is My Shopify Meta Pixel Not Receiving Data?

Check the connection, customer activity, duplicate installations, and privacy settings.

  • Confirm that Customer data-sharing is enabled.
  • Confirm that the correct Meta Pixel is connected.
  • Visit the store and generate fresh customer activity.
  • Remove manually added pixel code from theme.liquid.
  • Check for duplicate installations from apps, Google Tag Manager, or an agency.
  • Review Shopify's customer privacy and consent settings.
  • Allow time for new activity to appear in Meta Ads Manager.

Shopify's privacy controls can affect whether pixel data is collected or shared. This includes situations where a customer opts out of data sharing or targeted advertising.

For most Shopify stores, use Facebook and Instagram by Meta → Share data settings → Customer data-sharing → Connect or create Meta Pixel → Confirm, then test the pixel in Meta Ads Manager.

Next Read