Skip to content
Advertising

Facebook pixel on Shopify: set up the Meta pixel and Conversions API

Set up the Facebook pixel on Shopify with Meta's official app: data sharing levels, Conversions API, domain verification, event tests and the mistakes to avoid.

Clonify Team

Editorial

11 min read
Advertising

The simplest way to set up the Facebook pixel on Shopify is the free Facebook & Instagram app by Meta. You add it as a sales channel, connect your business portfolio, Facebook Page and ad account, then turn on customer data sharing at the Enhanced or Maximum level so your store sends events through both the Meta pixel and the Conversions API. Finish by verifying your domain and testing each event in Events Manager before you spend money on ads.

What you need before you start

Shopify lists a few requirements for the Facebook & Instagram channel. Check them first, or the setup can stall halfway on a missing asset.

  • A personal Facebook account. You log in with it during setup.
  • A published Facebook Page for your business, connected to a business portfolio in Meta's Business Manager. Your Facebook account needs full control of both.
  • An ad account added to that business portfolio. If you have never advertised, you must add one before you can create Meta campaigns.
  • An online store that is not password protected, and a valid sender email in your Shopify settings.
  • A business located in one of the countries supported for Shops on Facebook and Instagram, with products available for direct purchase from your verified domain.
  • To sell on Instagram, an Instagram professional account linked to your Facebook Page.

If you are still building the store, finish your product pages first. Ads send traffic to them, and tracking only tells you what happens once visitors arrive.

Step 1: install the Facebook & Instagram app

Facebook & Instagram by Meta is a sales channel, not a regular app. Once installed, it appears under Sales channels in your admin, not under Settings > Apps. On desktop:

  1. In your Shopify admin, go to Settings > Sales channels.
  2. Click Shopify App Store and search for "Facebook".
  3. Click Add channel (or Add app) on Facebook & Instagram by Meta.
  4. Click Start set up on the feature you want to install first.
  5. Click Connect account and log in to Facebook.
  6. Connect the assets the feature needs, such as your business portfolio, Facebook Page and ad account.
  7. Accept the terms and conditions, then click Finish setup.

The assets you connect for the first feature are reused for the others, although some, like the ad account, can still ask for a separate step. On mobile, the same flow starts from Sales channels in the Shopify app: tap Facebook, then Add Facebook.

Two details save a lot of back and forth:

  • The business portfolio you select must own the Facebook Page. If it doesn't, the Page won't appear in the list during onboarding.
  • Each staff member who connects the channel must use their own Facebook account, with full control of the business portfolio and the Page.

Step 2: choose your data sharing level

This setting decides whether your store uses the Conversions API or only the browser pixel. Shopify offers three customer data sharing levels:

LevelWhat runsAd blockersCustomer data shared
StandardMeta pixel onlyCan stop the pixel from sending dataBrowsing behavior
EnhancedMeta pixel + Conversions APICan't block the purchase event, which is sent server to serverName, location, email address, phone number and browsing behavior
MaximumMeta pixel + Conversions API, updated with Meta's latest advertising technologySame as EnhancedSame as Enhanced

To set your level:

  1. In your Shopify admin, go to Sales channels > Facebook & Instagram.
  2. Click Settings, then Data sharing settings.
  3. In the Customer data sharing section, turn on customer data sharing.
  4. In the Choose level section, select Maximum, or Enhanced if Maximum isn't offered.
  5. If no pixel is connected yet, click Connect next to the pixel you want to use.

The options you see depend on when you installed the app, so an older installation can show different privacy settings than a new one.

Why Maximum or Enhanced beats Standard

With Standard, everything depends on the visitor's browser. If an ad blocker stops the pixel, the sale never reaches Meta, and your campaigns optimize on incomplete data. Meta's own best practice is to use the Conversions API in addition to the pixel and to send the same events through both.

Customer details such as email and phone also help Meta match each event to a person. Events Manager rates this with an Event Match Quality score out of 10 for web events, and Meta notes that sending more customer information parameters can raise it.

Tell your customers

Data sharing is optional, and you decide how much to share. If you turn it on, tell customers how their data is shared and keep your privacy policy up to date; Shopify offers a privacy policy generator to help. This is general information, not legal advice: check the privacy rules that apply in the countries where you sell.

Step 3: verify your domain in Meta Business settings

Domain verification proves to Meta that your business owns your store's domain, so only authorized businesses can manage links and content tied to it. Shopify's requirements for the channel also refer to your verified domain.

Meta offers three methods: a meta-tag on your homepage, an HTML file uploaded to your site, or a DNS TXT record. On Shopify, the meta-tag is usually the quickest:

  1. Open Meta Business settings and select the business portfolio linked to your store.
  2. Go to Brand safety and suitability > Domains, click Add, then Create a domain.
  3. Enter the domain customers see, for example yourstore.com, and click Add.
  4. Choose Add a meta-tag and copy the tag Meta generates.
  5. In Shopify, go to Online Store > Themes, click the ... button next to your current theme, then Edit code.
  6. Open layout/theme.liquid, paste the tag inside the head section, right after the line that opens it, and click Save.
  7. Back in Meta, select your domain and click Verify domain.

If the status still shows Not verified, wait a while and click Verify domain again: detection isn't always immediate, especially after a DNS change. Meta renames menus from time to time, so if the wording differs, look for Domains in the brand safety part of your business settings.

Prefer DNS? Add the TXT record Meta gives you at the provider that manages your domain's DNS. It doesn't depend on your theme, so it survives a theme change. With the meta-tag method, copy the tag into the new theme's theme.liquid whenever you switch themes.

One error worth knowing: if setup says your myshopify.com domain is already linked to another business portfolio, check your other portfolios in Business Manager settings, remove the domain from the one that has nothing to do with this store, and run the onboarding again.

Step 4: check that every event reaches Meta

Shopify's Meta pixel sends these standard events:

EventFires when
PageViewA visitor views a page
ViewContentA visitor views a product
SearchA visitor makes a search
AddToCartA visitor adds a product to the cart
InitiateCheckoutA visitor clicks the checkout button
AddPaymentInfoA visitor enters payment information in the checkout
PurchaseA visitor completes a purchase and views the thank you page

Meta's Test Events tool, in Events Manager, lets you confirm that Meta receives your events, including server events, and that duplicates are removed. A quick test routine:

  1. Turn off ad blockers and privacy extensions, or use a clean browser profile.
  2. In Events Manager, open your pixel and start a test with the Test Events tool.
  3. On your store, view a product, run a search, add to cart, go to checkout and enter payment details.
  4. Check that each event appears once, with the right product and value.
  5. Place a real order on a cheap product to see Purchase arrive, then cancel and refund it in Shopify.

How deduplication works

With Enhanced or Maximum, the same purchase can reach Meta twice: once from the browser and once from the server. Meta keeps one when both carry the same event name and the same event ID and arrive within 48 hours of each other, and it generally keeps the first one received. Two separate installations don't share event IDs, which is why a duplicate pixel inflates your numbers.

What the purchase value includes

Shopify sends the order's total price as the purchase value, and its help page notes that this includes duties, taxes and discounts. The revenue and ROAS shown in Ads Manager are therefore not your profit. Judge campaigns against your own margins, as explained in our guide to break-even ROAS.

Common mistakes and how to fix them

Installing the pixel twice

Meta's base code pasted in theme.liquid, a custom pixel under Settings > Customer events, or another tracking app running alongside the official app all send events a second time. Shopify's guidance is to remove or modify existing pixels before you add a new one, so customer events aren't counted twice. Search theme.liquid for leftover pixel code and keep a single source.

Pasting code into Additional scripts

Older tutorials tell you to paste a purchase script into the Additional scripts box of the checkout settings. That no longer works: since August 28, 2025 this section is view-only, and stores on non-Plus plans had until August 26, 2026 to upgrade their Thank you and Order status pages. Shopify recommends app pixels to keep tracking customer events, so let the official Meta app handle tracking.

Staying on Standard

Standard relies on the browser alone, so ad blockers can stop events, including purchases. Switch to Maximum or Enhanced in Data sharing settings; it takes a minute.

Connecting the wrong portfolio or Page

If your Page doesn't show up during setup, it usually belongs to another business portfolio. Fix ownership in Business Manager first, make sure your account has full control of both, then restart the onboarding.

Testing with an ad blocker on

Ad blockers can stop browser events, so a test run with one active shows missing events even when the setup is fine. Always test in a clean browser before you change anything.

What to do once tracking works

With clean events, Meta has what it needs to optimize campaigns for purchases. Before your first test, work out your break-even point, then plan your campaigns with our guide to Facebook ads for dropshipping.

To see which offers and angles already work in your niche, browse competitors' active ads in the Meta Ad Library. To go faster, the Clonify AdSpy searches Meta's official Ad Library, along with those of Google, Pinterest and Snapchat, with filters by country and, depending on the library, platform, status and format, so you can spot products and creatives that are running before you spend on your own tests.

FAQ

Is the Facebook & Instagram app free?

Yes. Shopify describes Facebook & Instagram by Meta as free to use with all Shopify plans, subject to store eligibility. You only pay for the ads you run on Meta.

Do I need to add the Meta pixel code to my theme?

No. The app connects your pixel and sends events for you, and adding the base code by hand as well can create duplicate events. The only code you may paste into your theme is the domain verification meta-tag, which doesn't track anything.

Which data sharing level should I choose?

Choose Maximum if you see it, otherwise Enhanced. Both combine the Meta pixel with the Conversions API, so your purchase events are sent server to server and browser ad blockers can't stop them. Standard uses the browser pixel only.

Is domain verification still worth doing?

Yes. It proves your business owns the domain, so only your business can manage links and content tied to it, and Shopify's requirements for the channel refer to a verified domain. With the meta-tag method, it takes a few minutes.

Why doesn't Meta show the same number of sales as Shopify?

Meta reports the conversions it attributes to your ads using its own attribution settings, so its totals rarely match your Shopify orders exactly. A count close to double usually points to a duplicate pixel: check theme.liquid, Settings > Customer events and any other tracking app.

Sources

AdSpy

Active ads from Meta, Google, Pinterest and Snapchat

No credit card required

facebook pixel
meta pixel
conversions api
shopify
facebook ads

Comments (0)

Get more guides like this one

We only use your email to send you our new guides. Unsubscribe at any time by writing to dpo@clonify.fr. Privacy policy