CreativeWebBoost Get my price Book a free call

Meta Pixel and Conversions API Setup for Shopify: Step-by-Step

By Md ForhadUpdated Nov 19, 202610 min read
Meta Pixel and Conversions API Setup for Shopify: Step-by-Step

Quick answer: The easiest Shopify Conversions API setup is free and needs no code. Install the Facebook & Instagram by Meta sales channel, connect your Meta pixel, and set customer data sharing to Enhanced or Maximum. Then place a test order and check in Meta Events Manager that the Purchase event arrives from both the browser and the server, and is counted only once.

Key takeaways

  • The Meta pixel tracks from the shopper’s browser. The Conversions API (CAPI) sends the same events from Shopify’s server to Meta, so ad blockers cannot stop them.
  • On Shopify, CAPI turns on when you pick Enhanced or Maximum data sharing in the Facebook & Instagram channel. Standard is pixel only.
  • Only one pixel should be on your store. Remove old pixel code from your theme and old tracking apps, or you will count sales twice.
  • Always test with Test Events and a real low-cost order before you trust the numbers or spend more on ads.
  • Check tracking every month by comparing Shopify orders with Meta Purchase events.

Why the pixel alone is not enough anymore

Meta ads learn from your sales data. When a shopper buys, Meta needs to know which ad they saw so it can find more people like them. If that data is missing, Meta optimizes on guesses, and your cost per sale goes up.

The Meta pixel is a small script that runs in the shopper’s browser. It works, but browsers today block a lot. Ad blockers can stop it. Privacy settings on phones and browsers limit cookies. Some shoppers close the page before the script fires.

The Conversions API fixes most of this. Instead of the browser telling Meta “someone bought,” your store’s server tells Meta directly. Shopify’s own help center explains that server to server data cannot be blocked by browser ad blockers.

The best setup is not “pixel or CAPI.” It is both together. The pixel catches browsing events quickly, and CAPI fills the gaps. Meta then removes the duplicates so each sale counts once.

Question Meta pixel (browser) Conversions API (server)
Where the event comes from The shopper’s browser Shopify’s server
Blocked by ad blockers? Yes, often No
Needs code on Shopify? No, the Meta channel adds it No, the Meta channel adds it
Best use Fast browsing signals like page views Reliable purchase and checkout signals

Before you start: what you need

Gather these first. It saves a lot of back and forth later.

  • Admin access to your Shopify store. Staff accounts may not see sales channel settings.
  • A Meta Business portfolio (formerly Business Manager) that you own or have full control of.
  • Your Facebook Page and ad account inside that portfolio.
  • Access to Data Sources in Events Manager. Shopify community threads show that missing permissions here is a common reason the Enhanced or Maximum option throws an error.
  • An updated privacy policy. Enhanced and Maximum share customer details like name, location and email with Meta, so tell shoppers you do this.

If an old freelancer or agency set up your pixel, check who owns it. Many store owners find their pixel sits in someone else’s business account. Ask for ownership or create a new pixel in your own portfolio.

Step-by-step Shopify Conversions API setup

This is the no-code method using the official Facebook & Instagram by Meta channel. It is free and works for most Shopify stores.

  1. Install the channel. In Shopify admin, go to Settings, then Apps and sales channels. Open the Shopify App Store, search for Facebook & Instagram by Meta, and add it.
  2. Connect your Meta accounts. Open the channel, click to connect, and log in to Facebook. Choose your Business portfolio, Facebook Page and ad account. Accept the terms.
  3. Open data sharing settings. Inside the channel, click Settings, then Data sharing settings (some versions say Share data settings).
  4. Turn on customer data sharing. Switch on the Enable data-sharing toggle.
  5. Choose your level. Pick Enhanced or Maximum. Both use the pixel plus the Conversions API. Maximum also uses Meta’s latest ad technology, so most stores running ads pick Maximum.
  6. Connect your pixel. Select your existing pixel and click Connect, or click Create new if you do not have one. Click Confirm.
  7. Wait, then test. Give it about 20 to 30 minutes, then move to the testing steps below.

That is the whole Shopify Conversions API setup for most stores. You do not need to paste code into your theme. Shopify adds the pixel and sends server events for you.

Standard vs Enhanced vs Maximum

Level What it uses Who it suits
Standard (Conservative on older installs) Meta pixel only, browsing behavior Stores not running Meta ads yet
Enhanced Pixel plus Conversions API, plus customer details for matching Stores running ads that want server tracking
Maximum Pixel plus Conversions API, customer matching and Meta’s latest ad technology Most stores actively spending on Meta ads

Remove duplicate pixels first

This is the step most store owners skip, and it causes the most damage. If your store has two pixels, or one pixel fired twice, every sale can show up twice in Ads Manager. Meta then thinks your ads work better than they do, and you scale the wrong campaigns.

Shopify’s help center says that if you added pixel code to your theme before, you should remove it after connecting the pixel through the Facebook & Instagram channel. Check these places:

  • theme.liquid: look between the head tags for old pixel code. Duplicate your theme first, and only remove the code if you are comfortable, or ask a developer.
  • Online Store Preferences: older stores had a Meta pixel field here. Clear it if the channel now handles the pixel.
  • Other apps: pixel apps, review apps or upsell apps that add their own tracking.
  • Google Tag Manager: a GTM tag sending Purchase on top of the Shopify channel is a classic cause of doubled sales.
  • Customer events: check Settings, then Customer events, for custom pixels you no longer need.

One clean source of truth beats three half-working ones.

How to test your setup in Events Manager

Never assume tracking works because the app says “connected.” Test it like a real shopper.

  1. Open Meta Events Manager and select your pixel (also called a dataset).
  2. Click the Test events tab and enter your store URL. It opens your store with a test code attached.
  3. Browse like a shopper: view a product, add to cart, start checkout.
  4. Complete a real order on a low-cost product, or create a draft order and mark it paid.
  5. Go back to Test events. You should see ViewContent, AddToCart, InitiateCheckout and Purchase.
  6. Click the Purchase row. Check that value and currency are correct, and that it shows from both Browser and Server.

Also install the free Meta Pixel Helper Chrome extension. It shows which pixel IDs fire on each page. If you see two different pixel IDs, you have a duplicate to remove.

Setup checklist

  • Facebook & Instagram by Meta channel installed and up to date
  • Correct Business portfolio, Page, ad account and pixel connected
  • Data sharing set to Enhanced or Maximum
  • Old theme pixel code and extra tracking apps removed
  • Purchase shows from Browser and Server in Test events
  • Purchase value and currency are correct
  • Your domain is verified in Meta Business settings
  • Privacy policy mentions data sharing with Meta

Deduplication and Event Match Quality, in plain English

Two terms show up in Events Manager that confuse almost everyone. Here is what they mean.

Deduplication is how Meta knows the browser event and the server event are the same sale. It works when both copies have the same event name (like Purchase) and the same event ID, and arrive within 48 hours of each other. With the official Shopify channel, this is handled for you. If you add a third-party app or GTM, you must make sure event IDs match, or sales will double.

Event Match Quality (EMQ) is a score out of 10 that shows how well Meta can match an event to a real person. More customer details, like email and phone, sent correctly and with consent, raise the score. Good deduplication does not raise EMQ. They solve different problems.

Simple ways to help EMQ on Shopify:

  • Use Maximum data sharing if your privacy policy allows it.
  • Ask for email early, for example with a signup popup or at checkout.
  • Collect phone numbers with the country code.
  • Do not block checkout pages from tracking with filters or custom scripts.

Common problems and quick fixes

Problem Likely cause Fix
Purchases doubled in Ads Manager Two pixels, or a GTM or app tag on top of the Shopify channel Keep one source. Remove extra code and apps, then retest.
No server events in Test events Data sharing still on Standard Switch to Enhanced or Maximum, wait 30 minutes, retest.
Error when choosing Enhanced or Maximum Missing permissions in Meta or Shopify Make sure your Meta user has access to the pixel in Data Sources.
Purchase missing, but AddToCart works Checkout script, custom checkout app, or Shop Pay flow issue Do a full test order and check Diagnostics in Events Manager.
Meta shows fewer sales than Shopify Normal attribution gap, or lost browser events Compare weekly. A small gap is normal, a large gap needs a check.

Once it works, add a monthly habit. Open Events Manager, look at Diagnostics, and compare last week’s Shopify orders with Meta Purchase events. Theme updates and new apps can quietly break tracking. If you are spending real money on ads, also read our guide on how much to spend on Facebook ads for a Shopify store, because budget decisions only make sense when tracking is accurate.

How we handle this at CreativeWebBoost: Before we launch or take over any Meta ad account, we audit tracking first. We check who owns the pixel, look for duplicate pixels in the theme and apps, set data sharing to the right level, and place a test order to confirm Purchase arrives from both browser and server. We then compare Shopify orders with Meta events for the first weeks, so budget decisions are made on real numbers, not double counted ones.

This article is part of Facebook & Instagram Ads for Shopify: The Complete Guide. Want it done for you? See Facebook & Instagram Ads Management.

Once your tracking is clean, the numbers in Ads Manager finally show what is really happening. If they show lots of visits but few orders, the problem is usually the store, not the ads. Our guide on why a Shopify store gets traffic but no sales walks through what to fix first.

Frequently asked questions

Is the Conversions API free on Shopify?

Yes. The Facebook & Instagram by Meta sales channel is free, and turning on Enhanced or Maximum data sharing enables the Conversions API at no cost. Paid tracking apps exist, but most small and mid-size stores do not need them to start.

Do I need a developer to set up the Conversions API on Shopify?

Usually no. The official channel handles the pixel and server events without code. You may want help if your store has old pixel code in the theme, a custom checkout, or several tracking apps that need cleaning up.

Should I choose Enhanced or Maximum data sharing?

Both turn on the Conversions API. Maximum also uses Meta’s latest ad technology, so most stores running Meta ads choose it. Whichever you pick, make sure your privacy policy explains that you share customer data with Meta.

Why does Meta show different sales numbers than Shopify?

Shopify counts every order. Meta counts sales it can link to an ad within your attribution window, and some events are lost or filtered. A small gap is normal. A large gap, or Meta showing more sales than Shopify, usually points to missing or duplicate tracking.

How often should I check my Meta tracking?

Test right after setup, after any theme or app change, and at least once a month. A quick test order plus a look at Diagnostics in Events Manager takes about ten minutes and can save a lot of wasted ad spend.

Get your Meta tracking checked

Good ads cannot fix bad data. If you are not sure your pixel and Conversions API are set up right, or your Meta numbers do not match Shopify, we can look at it for you. Start with a free store audit, or see how our Facebook and Instagram ads management for Shopify stores works. You can also read our step-by-step Facebook ads guide for Shopify next.

CreativeWebBoost
Written by Md Forhad, founder of CreativeWebBoost

Md Forhad has worked in e-commerce for 5+ years, designing Shopify stores, running Facebook and Instagram ads and making AI video ads for brands in jewelry, grooming, dancewear and barber supplies. He has shared real client calls and store reviews on YouTube since 2020.

About us · Our work · Client reviews · LinkedIn · YouTube

Want us to do this for your store?

Get a free store audit or book a free 30-minute call. We design Shopify stores, run Facebook & Instagram ads and make AI video ads.

Book a free callFree store audit

Keep reading

⚡ Need a fast answer?Book a quick call first, then message us on WhatsApp. We reply fast.