D2C brand · 5 min read

How do I set up the Meta pixel and Conversions API for my D2C store?

The short answer

The Meta pixel is a small piece of code in your store that tells Meta when someone views a product, adds to cart or buys. The Conversions API sends the same events from your server, so they still arrive when a browser blocks the pixel. Set up both through your store's official Meta channel app, turn on the highest data-sharing setting it offers, verify your domain, check that events arrive once and not twice, and test with a real order before you spend on ads.

Not sure about your case? Ask an expert, free ↓

What do the pixel and the Conversions API actually do?

You launch your first ad, and Meta's dashboard shows twenty clicks and no purchases, though your store shows three orders. The ad is not necessarily failing. Meta may simply not know about the orders.

The pixel runs in the buyer's browser. When someone opens a product page, adds to cart or pays, it sends that event to Meta. This lets Meta find more people like your buyers, and lets you count results. But browsers, ad blockers and phone privacy settings can stop it from sending.

The Conversions API (often called CAPI) sends the same events from your store's server to Meta, not from the browser. It is not a replacement for the pixel. Meta's own guidance is to use both, so that when one misses an event the other can supply it, and to give each event the same ID so Meta counts it once.

How do I set it up on Shopify?

  1. Create your assets in Meta Business Suite: a business portfolio, an ad account and a pixel (called a dataset in newer screens). Use your own email as the admin and add a second admin you trust.
  2. Install the official Facebook and Instagram channel app from the Shopify app store and connect your business portfolio, pixel and Instagram account.
  3. Choose the highest data-sharing option the app offers. It is usually called maximum, and it sends events through the pixel and through CAPI. Lower settings send less.
  4. Verify your domain in Meta's Brand Safety or domain settings. Domain verification lets you control which events count.
  5. Check the events. At the least you want PageView, ViewContent, AddToCart, InitiateCheckout and Purchase.
  6. Place a test order and check it in Meta's Events Manager test events screen. You should see each event once, with a source tag that shows browser and server.

Shopify's own settings change from time to time, so follow the on-screen steps rather than a screenshot from an old blog. If you use WooCommerce, the official Meta plugin for WooCommerce does the same job. A custom store needs a developer to send server events with a shared event ID.

How do I check that it is working?

CheckWhat good looks likeWhat to do if not
Events Manager shows Purchase from both browser and serverOne purchase per order, tagged with both sources and mergedIf you see doubles, the event ID is missing or mismatched. Fix deduplication before spending.
Event match qualityA decent score on Purchase. Higher is better because Meta can link the event to a personSend more customer details with consent: email, phone, name, city. A checkout asking for a phone number helps.
Purchase count against your storeMeta shows a similar number to your store, allowing for the attribution windowA large gap needs the checks on Meta against Shopify numbers.
Purchase valueMatches the order total including or excluding GST consistentlyPick one and keep it, or your ROAS will mislead you.
Page speedStore still loads quickly after installRemove duplicate pixel scripts and unused apps.

Do not run ads for the first time until you have seen a real test purchase arrive once, with the right value.

What usually goes wrong?

  • Installing the pixel code by hand and also through an app, so every event fires twice.
  • Skipping domain verification, then finding some events are limited.
  • Using a COD order as a purchase and not telling Meta later that it failed. The platform keeps optimising for orders that never arrive.
  • Setting the pixel up on the day you launch the ad, with no test purchase.
  • Giving agency staff your personal admin login instead of adding them as a partner, then losing control of the account.

Good tracking will not make a weak offer work, but a missing pixel will make a good one look bad. Once it is running, set your limits as in the ad stop-loss rule and keep a backup, as in backup ad accounts.

Questions people ask

Do I need the Conversions API if I have the pixel?

Meta recommends using both. The pixel can be blocked by browsers or privacy settings, and the server connection fills some of the gap. Most store apps set up both together.

Does it cost anything to set up?

The Meta channel app on Shopify and the official WooCommerce plugin are free to install at the time of writing. A developer for a custom store costs extra; check current offers.

Will CAPI fix my ROAS?

It will usually give Meta more of your real orders, but it does not remove all differences between Meta's numbers and your store's. See the next page for why they differ.

Customers and marketing · D2C brand

More on customers and marketing for a d2c brand

32 pages on this. You are on number 16.

  1. Do influencers work for a small D2C brand, and what do they charge?
  2. How do I get repeat customers for my D2C brand without more discounts?
  3. How do I set up the Meta pixel and Conversions API for my D2C store?
  4. How much does a D2C store cost to set up and run in India?
  5. Is a founder story or a founder's face worth it for a D2C brand?
  6. What does rebranding a D2C brand involve and cost in India?
  7. How do I get my D2C brand's first Google, Amazon and website reviews?
  8. How do I shoot product photos for my D2C brand on a small budget?
All 32 on customers and marketing →

Reading about it is one thing; doing it in your d2c brand is another. If you'd like a hand bringing in customers, tell us where you are and a person will reply, free.

Get help with this ↓

What now?

Next question · 3 of 7 in Paid ads and CACWhy does Meta show a different ROAS from my Shopify numbers? →

Where are you?

One tap, and we point you to the right next step.

Menu

Read

Ask an expert Ask an expertFree, real peopleHub
Ask an expert