Tracking · 7 min read

How to Set Up the Meta Conversions API on Shopify

By Rashid Khaliq, expert media buyerUpdated

Short answer: On Shopify, the easiest way to set up the Meta Conversions API is through the official Facebook & Instagram app: connect your Business portfolio, pixel and ad account, set customer data sharing to Maximum, remove any old pixel code from your theme, and test a purchase in Meta Events Manager.

Why the Conversions API matters

The Meta pixel runs in the shopper's browser. Ad blockers, privacy settings and iOS restrictions stop some of those events from reaching Meta. The Conversions API (CAPI) sends the same events from the server, so more purchases are counted and Meta has better data to optimise your ads.

Step 1: Install the Facebook & Instagram app

  1. In Shopify admin, go to the app store and install Facebook & Instagram by Meta.
  2. Log in with the Facebook account that has admin access to your Business portfolio.
  3. Select the correct Business portfolio, Facebook Page, ad account and dataset (pixel). Picking an old or wrong pixel is one of the most common mistakes.

Step 2: Turn on Maximum data sharing

In the app's settings, open Data sharing and choose Maximum. This sends events through both the pixel and the Conversions API. Standard or Enhanced only use part of that setup.

Step 3: Remove duplicate pixel code

  • Check your theme files (theme.liquid) for old fbq('init') code.
  • Check other apps (review apps, page builders, old tracking apps) that may also fire the pixel.
  • Check Shopify's customer events / custom pixels for an old Meta pixel.

Two pixels firing on the same page usually means purchases are counted twice and ROAS looks better than it really is.

Step 4: Test in Events Manager

  1. Open Meta Events Manager and select your dataset.
  2. Use Test events and browse your store: view a product, add to cart, start checkout.
  3. Place a test order (a 100% discount code works) and check that one Purchase event arrives with the right value and currency.
  4. Look for the "Browser" and "Server" labels on the events and make sure they are deduplicated, not counted twice.

Step 5: Verify your domain and check Event Match Quality

Verify your store domain in Business settings → Brand safety → Domains. Then check the Event Match Quality score for Purchase in Events Manager. Higher match quality means Meta can link more purchases to the people who saw your ads.

Common problems

  • Purchase value is 0: usually an old pixel or a third-party checkout app sending events without value.
  • Wrong currency: store currency and ad account currency mismatch, or multi-currency settings.
  • No server events: data sharing is not set to Maximum, or the app is connected to a different dataset.

Need it done for you? See Shopify pixel setup.

About the author

Rashid Khaliq is an expert media buyer and Meta ads specialist with 3+ years of experience and 100+ clients, running Meta, Google, TikTok and Snapchat ads for e-commerce brands and local service businesses. More about Rashid.

FAQ

Common questions

Do I need a developer to set up CAPI on Shopify?

No. For most Shopify stores the Facebook & Instagram app with Maximum data sharing is enough. A developer or server-side setup is only needed for custom checkouts or advanced cases.

How do I know if the Conversions API is working?

In Meta Events Manager, open your dataset and look at the Purchase event. You should see events received from both Browser and Server, deduplicated, with correct value and currency.

Will the Conversions API improve my ROAS?

It improves measurement and the data Meta uses to optimise, which often helps performance. It doesn't fix weak offers or creatives on its own.

Free audit call

Let's find what's holding your ads back

Book a free 30-minute audit call. I'll review your ad account, tracking and offer, and tell you exactly what to fix first.

Prefer to order through Fiverr or Upwork? Message me and I'll send you the right link.

WhatsApp+92 309 7976680
Emailhello@rashidmediabuyer.com
Calendarcalendly.com/rashid-khaliq ↗ LinkedInRashid Khaliq ↗
Free audit