Meta Conversions API for Indian E-commerce: Setup, Dedup, EMQ
If your Meta ads still rely only on the browser pixel, you are optimising on a partial picture of your own sales. Ad blockers, browser privacy features, in-app browsers and patchy mobile connections all drop events before they reach Meta. The fewer purchases Meta sees, the worse it gets at finding your next buyer.
The Conversions API (CAPI) fixes most of that by sending events from your server as well. But a bad CAPI setup can be worse than none: double-counted purchases, inflated ROAS, and an algorithm learning from noise. This guide covers how we set it up properly for Indian e-commerce brands on Shopify, WooCommerce and custom stacks.
What is the Meta Conversions API and why does it matter?
The Conversions API is a server-to-server connection between your store or backend and Meta. Instead of relying on a script running in the shopper’s browser, your server tells Meta “this person bought this order for this value”.
Meta’s Conversions API best practices are explicit on the core principle: use the Conversions API in addition to the Meta pixel, and share the same events through both. You are not replacing the pixel. You are building redundancy.
Why it matters more in India than most markets:
- Mobile-first traffic. Most shoppers arrive through the Instagram or Facebook in-app browser on mid-range Android phones over mobile data. Browser events drop more often in those conditions.
- Payment redirects. UPI apps and payment gateway redirects can break the thank-you page load that fires the pixel purchase.
- COD. A large share of orders are paid at the door, days later, which the browser cannot see at all.
How does Meta deduplicate pixel and Conversions API events?
This is where most setups go wrong. Meta’s deduplication documentation describes two methods.
Method 1 (recommended): event name plus event ID.
- The pixel’s
eventIDmust match the server’sevent_id. - The pixel’s event name must match the server’s
event_name. - Events are only deduplicated if received within 48 hours of the first event with that ID.
Method 2: event name plus fbp or external_id. This only works when the browser event arrives first, and Meta notes server events will not be discarded if no browser event arrived in the past 48 hours.
Use Method 1. In practice:
- Generate a unique event ID once, at the moment the event happens. For purchases, your order ID (or a hash of it) works well because both browser and server know it.
- Pass that ID to the pixel call as
eventID. - Pass the same value as
event_idin the server event. - Use identical event names on both sides.
Purchaseandpurchaseare not the same.
Then verify it. In Events Manager, use Test Events, place a real test order and confirm you see both the browser and server event, with the server one marked as deduplicated.
What is Event Match Quality and how do you improve it?
Event Match Quality (EMQ) is Meta’s score, out of 10, for how well the customer information on your server events can be matched to a Meta account. The best practices page notes it is only available for web events, and that only matched events can be used for attribution and delivery optimisation. Unmatched events still count for basic measurement, but they do not teach the algorithm anything about who buys.
To raise EMQ, send more of the right parameters, correctly formatted. Meta’s customer information parameters reference sets the rules:
| Parameter | What to send | Hash? | India-specific note |
|---|---|---|---|
em (email) |
Trimmed, lowercase | Yes, SHA-256 | Many COD buyers skip email; make it part of checkout where you can |
ph (phone) |
Digits only, with country code | Yes | Always prefix 91 for Indian numbers; strip leading zeros and +, spaces, dashes |
fn, ln |
First and last name, normalised | Yes | Use billing name fields, not “Customer” placeholders |
ct, st, zp, country |
City, state, PIN code, country | Yes | Pincode is reliable in India because every delivery needs one |
external_id |
Your customer or user ID | Recommended | Use the same ID across browser and server |
client_ip_address |
Shopper’s IP | Never hash | Capture from the browser session, not your server’s IP |
client_user_agent |
Shopper’s browser user agent | Do not hash | Required for website events |
fbp, fbc |
Meta browser and click ID cookies | Do not hash | Refresh regularly; they change over time |
The single biggest EMQ win for Indian brands is usually the phone number. Almost every order has one, and it is often missing the country code or sent with formatting that stops it matching.
A word on consent and privacy: only send customer data you are permitted to share under your privacy policy and India’s data protection rules. Be clear in your policy that you share hashed identifiers with advertising partners.
How do you set up the Conversions API on Shopify?
Shopify’s Facebook & Instagram app (by Meta) has CAPI built in. Shopify’s data sharing help page describes three levels:
- Standard: pixel only, which browser ad blockers can block.
- Enhanced: adds the Conversions API alongside the pixel, so purchase events go server to server.
- Maximum: uses the Conversions API and pixel, and keeps the store updated with Meta’s latest ad technology.
Step 1: Install and connect the app
Connect the correct Business Manager, ad account, pixel (dataset) and catalogue. The number one Shopify mistake I see is the app connected to an old pixel while ads optimise on a different one.
Step 2: Set data sharing to Maximum
Then check your privacy policy reflects it.
Step 3: Remove duplicate pixel code
If an old theme snippet, a third-party app or Google Tag Manager also fires the Meta pixel, you will double-count. One source of browser events, one source of server events.
Step 4: Verify in Events Manager
Check that purchases arrive from both browser and server, that deduplication is working, and that purchase values match your order values.
Step 5: Decide on GST in purchase value
Shopify order totals often include GST. If you want Meta ROAS to reflect real revenue, adjust your targets for the tax or use a setup that passes net value. More on why this matters in contribution margin vs dashboard ROAS.
How do you set up the Conversions API on WooCommerce?
WooCommerce’s Facebook for WooCommerce documentation says the Conversions API is integrated out of the box in the Meta for WooCommerce extension, and that pixel and CAPI data are deduplicated using a unique event ID. That document is marked as no longer updated, so check the current plugin release notes before you rely on it.
What we check on every WooCommerce build:
- Caching and CDN rules do not strip the pixel or serve the same event ID to every visitor.
- Checkout plugins (one-page checkout, COD fee plugins, custom thank-you pages) still fire the purchase event, with the order ID as the event ID.
- Hosting performance. Server events are sent from your WordPress server. A slow or overloaded host delays or drops them. If your shared hosting struggles during a sale, your CAPI does too.
How do you set up the Conversions API on a custom stack?
For custom builds, headless storefronts or apps, you have two routes.
Option A: Direct server integration
Your backend sends events to the Conversions API endpoint using Meta’s Business SDK or plain HTTP. Key rules from Meta’s server event parameters reference:
action_sourceis required and must reflect where the conversion happened (website,app,chat,phone_call,physical_store,system_generatedand others).event_timecan be up to 7 days before you send the event. If any event in a batch is older than 7 days, Meta returns an error for the entire request and processes none of them. Batch carefully.
Send events in near real time. Meta’s best practices note that sharing events when they happen helps campaigns perform best.
Option B: Conversions API Gateway
The Conversions API Gateway is Meta’s self-serve option in Events Manager. It runs in a cloud account you own (Meta lists AWS EKS, AWS ECS Express and GCP), receives browser events and forwards them to the Conversions API, and generates the deduplication event_id automatically. One instance can cover multiple domains and multiple pixels. Meta does not charge for the Gateway, but you pay for the cloud resources or a hosting partner.
The Gateway is good for brands without engineering capacity. Its limitation is that it mirrors what happens in the browser. It cannot see COD deliveries, RTO or WhatsApp orders. For those you need backend events, which brings us to the part most guides skip.
How should Indian COD brands send events to Meta?
A COD purchase is a promise, not a payment. If 25% of your COD orders come back, a campaign that looks like 3.0 ROAS on placed orders may be nowhere near that on delivered revenue.
Here is the event structure we use for COD-heavy brands:
| Event | When it fires | Source | Used for |
|---|---|---|---|
Purchase |
Order placed (prepaid or COD) | Pixel + CAPI | Optimisation signal |
OrderConfirmed (custom) |
COD order confirmed via WhatsApp or IVR | Backend CAPI | Analysis; possible optimisation event |
OrderDelivered (custom) |
Courier marks delivered | Backend CAPI | Real revenue reporting |
OrderRTO (custom) |
Order returned to origin | Backend CAPI | RTO rate by campaign and creative |
Three practical points:
- Keep
Purchaseat order placement for most brands. It is the fastest, highest-volume signal. Deliveries can arrive more than 7 days after the click, past theevent_timelimit, and lower volume makes learning harder. - Use the custom events to build RTO-adjusted reporting with custom conversions. Once you see which campaigns and creatives produce high RTO, fix them at the source.
- Test optimising on confirmed orders only when that event has enough weekly volume to exit learning. Meta’s learning phase documentation says ad sets usually exit learning after about 50 results in a week.
The COD confirmation flow itself, usually on WhatsApp, is in my RTO reduction playbook and the WhatsApp abandoned cart funnel.
A CAPI health checklist you can run today
- Purchases arrive from both browser and server in Events Manager.
- Server events show as deduplicated against browser events.
- Event names are identical on both sides.
- Event IDs are unique per event and shared between pixel and server.
- Phone numbers are sent with the 91 country code, digits only, hashed.
- Email, name, city, state, pincode sent and hashed where collected.
- IP address and user agent come from the shopper, not your server.
-
fbpandfbcare passed and refreshed. - Purchase value matches your order system, with a clear decision on GST.
- Only one source fires browser events (no duplicate pixels via apps or GTM).
- COD confirmation and delivery events flow from your backend.
- Someone reviews Events Manager diagnostics every week.
Final word
Clean signal is the cheapest performance gain in Meta advertising. When we rebuilt Aura Luxury Apparel’s account, first-party server-side tracking went in alongside the consolidated Advantage+ structure and the creative overhaul, and blended ROAS moved from 1.7x to 4.2x (case study). The tracking alone did not do that, but nothing else would have worked as well on bad data.
Once tracking is right, the next steps are a sensible Advantage+ sales campaign structure and a full account audit. If you want my team to set up or fix your CAPI, often as part of a website and CRO build or our performance marketing work, get in touch.
Frequently asked questions
Do I still need the Meta pixel if I use the Conversions API?
Yes. Meta's best-practice guidance is to use the Conversions API in addition to the pixel and share the same events through both. The redundant setup catches events either channel would miss on its own, and deduplication stops them being counted twice.
How does Meta deduplicate pixel and server events?
The recommended method is matching event names plus a shared ID: the pixel's eventID must match the server event's event_id, and the event names must match. Meta only deduplicates events received within 48 hours of the first event with that ID.
What is a good Event Match Quality score?
Meta scores each server event out of 10 in Events Manager and only shows it for web events. Rather than chase a number, aim to send email, phone with country code, IP address, user agent, fbp and fbc on every purchase event, and the score usually follows.
Is the Conversions API Gateway free?
Meta does not charge for the Gateway itself, but it runs in a cloud account you own (AWS or GCP options), or through a hosting partner, so you pay those cloud or partner fees.
How should COD orders be sent to Meta?
Send the Purchase event when the order is placed so the system gets a fast signal, and add separate custom events for confirmed and delivered orders from your backend. That lets you report RTO-adjusted performance by campaign, and test optimising on a deeper event once volume allows.