Blog/Guides & Know-how

Meta Conversions API (CAPI) explained for Indian businesses

Pixel vs Conversions API, event_id deduplication, SHA-256 hashed customer data, event match quality, WhatsApp datasets and sending offline sales back to Meta.

LinkModus team · · 6 min read

Short answer

The Meta Conversions API (CAPI) lets your server or CRM send events such as Lead and Purchase directly to Meta, alongside or instead of the browser pixel. It recovers conversions the pixel misses, lets you report sales that happen offline or on WhatsApp, and gives Meta’s algorithm better signals about which ads bring paying customers. To work well, server events need an event_id for deduplication with the pixel and customer details (phone, email) normalised and hashed with SHA-256.

Most Indian advertisers run Meta ads optimised for leads, then wonder why the leads are poor. Part of the reason is simple: Meta only knows what you tell it. If the only signal it gets is “form submitted”, it finds more people who submit forms. If you tell it which of those people later paid ₹45,000 for a course or booked a flat in Whitefield, it can look for more of them.

That feedback loop is what the Conversions API is for. This guide explains it in plain terms first, then covers the fields your developer will care about.

What is the difference between the pixel and the Conversions API?

The pixel is JavaScript that runs in the visitor’s browser; the Conversions API is your server telling Meta directly what happened.

Meta PixelConversions API
Where it runsThe visitor’s browserYour server, CRM or a partner tool
Affected by ad blockers and browser privacyYesNo
Can report offline / WhatsApp / phone salesNoYes
SetupPaste a scriptNeeds a developer or an integration
Identifies the person byCookies (fbp, fbc)Hashed phone/email plus click ids you pass

The pixel sees a visit and a button click. It cannot see that the lead picked up a call two days later and paid by UPI. Your CRM can. That is the gap CAPI closes.

How does event_id deduplication work?

If the pixel and your server both report the same conversion, give both the same event_id and event_name, and Meta keeps only one.

Example: a visitor submits an enquiry on your Gurugram clinic’s landing page. The page fires a pixel Lead event with eventID: "lead_8842". Your server, which saved the enquiry, sends a CAPI Lead event with event_id: "lead_8842". Meta matches them and counts one lead. If the pixel was blocked, the server event alone still counts.

Without a shared id, you get double counting: Events Manager shows twice the leads you actually got, and your cost per lead looks better than reality.

Generate the id once, at the moment the conversion happens, and pass it to both places. A random id created separately on each side defeats the purpose.

What customer data do you send, and how is it hashed?

You send identifiers in user_data so Meta can match the event to a person; personal ones are normalised and hashed with SHA-256 first.

Normalising means making the value consistent before hashing, because a hash of “Priya@Gmail.com ” and “priya@gmail.com” are completely different. Typical rules:

  • Email: trim spaces, lowercase.
  • Phone: digits only, with country code, no plus sign or leading zero. An Indian mobile becomes 919876543210.
  • Name, city: lowercase, no punctuation. Country as the two-letter code in.

Some fields are sent as they are, not hashed: the fbc click id and fbp browser id cookies, the client IP address and user agent, and, for click-to-WhatsApp ads, the ctwa_clid. A server event looks roughly like this:

POST https://graph.facebook.com/<version>/<PIXEL_OR_DATASET_ID>/events

{
  "data": [{
    "event_name": "Purchase",
    "event_time": 1764300000,
    "event_id": "order_10231",
    "action_source": "system_generated",
    "user_data": {
      "ph": ["<sha256 of 919876543210>"],
      "em": ["<sha256 of priya@gmail.com>"],
      "fbc": "fb.1.1764000000000.AbCdEf..."
    },
    "custom_data": { "currency": "INR", "value": 45000 }
  }]
}

Under India’s DPDP Act, sharing customer data with an ad platform should be covered by a clear notice and consent. Hashing reduces exposure, but it is not a substitute for consent. Take advice if you are unsure.

What is event match quality?

Event match quality (EMQ) is Meta’s score, shown in Events Manager, for how well your server events can be matched to Meta accounts.

It is shown on a scale up to 10 per event type. More and better identifiers raise it: a phone number plus email plus fbc matches far more reliably than an email alone. For Indian audiences, the phone number is usually the strongest identifier, because almost every lead gives one and many people sign up to Facebook and Instagram with it. If your score is low, check that phone numbers include the 91 country code before hashing. Missing country codes are one of the most common reasons for poor matching in Indian accounts.

How do WhatsApp conversations fit in?

For click-to-WhatsApp ads, Meta supports sending conversion events tied to the WhatsApp conversation itself, using a dataset connected to your WhatsApp Business Account.

When someone taps a click-to-WhatsApp ad, the first message carries a click id (ctwa_clid). When that person later becomes a qualified lead or pays, your system can send an event with action_source set to business_messaging, the messaging channel set to WhatsApp, and that click id in user_data. Meta can then match the sale to the exact ad click, without any website involved. This is the most direct way for WhatsApp-first businesses, such as a Mumbai real estate broker or a Hyderabad coaching centre, to tell Meta what a good lead looks like.

How do you send offline sales back to Meta?

Record the sale in your CRM, then send it as a server event with the amount, currency, a stable event id and the customer’s hashed identifiers.

  1. Capture identifiers at lead time. Phone, email, and click ids (fbc or ctwa_clid) when they exist.
  2. Record the real outcome. “Paid ₹45,000 on 12 November” in the CRM, not just “interested”.
  3. Send promptly. Meta expects events reasonably close to when they happened, and older events may be rejected or count less. Check Meta’s current limits for your action source.
  4. Use the order id as event_id, so a retry never reports the same sale twice.
  5. Optionally send a qualified-lead event earlier in the funnel, because sales can take weeks and the algorithm learns faster with more events.

Then, once enough events flow in, you can optimise campaigns for those deeper events instead of raw leads. Read why Facebook leads are junk for the bigger picture.

What are the common Conversions API mistakes?

Most broken CAPI setups fail on a handful of details that are easy to check.

  • Sending every event twice without an event_id, so Events Manager doubles your leads.
  • Hashing un-normalised data, such as a phone with spaces or without 91, so nothing matches.
  • Hashing fields that must be sent raw, such as fbc, fbp or the IP address.
  • Wrong event_time, for example milliseconds instead of seconds, or the time you sent instead of the time it happened.
  • Reporting “sales” that are not sales, such as every quote sent. Meta then optimises towards the wrong people.
  • No monitoring. An expired access token silently stops events. Check Events Manager weekly.

Use the Test Events tool in Events Manager while setting up: it shows each server event as Meta receives it, with warnings about missing or badly formatted fields.

How LinkModus helps

LinkModus keeps the ad, the conversation, the lead score and the sale in one record, so it can report real outcomes to Meta without a developer. Its Conversions API feedback sends recorded sales, and optionally qualified leads, back to Meta for click-to-WhatsApp and lead form campaigns, deduplicated so a sale is reported once. You also see cost per paying customer for each ad in Meta ads attribution, which is the number that tells you whether the feedback is working.

Frequently asked questions

What is the Meta Conversions API?+

It is a way to send conversion events, such as leads and purchases, from your server or CRM directly to Meta, instead of relying only on the pixel in the visitor’s browser. Meta uses these events to measure and optimise your ads.

Do I need both the Meta Pixel and the Conversions API?+

For a website, Meta recommends running both. The pixel catches browser activity, the Conversions API fills the gaps left by ad blockers and browser restrictions, and a shared event_id lets Meta remove the duplicates.

How does Meta deduplicate pixel and server events?+

When the pixel and the server send the same event with the same event_name and the same event_id, Meta counts it once. Without a matching event_id, the same purchase can be counted twice.

Which customer data must be hashed for the Conversions API?+

Personal fields such as email, phone, name, city and date of birth must be normalised and hashed with SHA-256 before sending. Click ids, browser ids, IP address and user agent are sent unhashed.

Can I send offline or WhatsApp sales to Meta?+

Yes. Sales that close on WhatsApp, on a call or in a store can be sent as server events with the right action_source, so Meta learns which ads produce paying customers rather than just clicks or chats.

Answer every enquiry, see which ad paid for it

LinkModus replies on WhatsApp in seconds, qualifies the lead and traces each sale back to its ad. First week free.