Meta Conversions API (CAPI) Setup: Complete Guide for Bangladeshi Businesses

Meta Conversions API (CAPI) setup guide for Bangladeshi businesses

By Humayun Kabir Naim — Digital Marketing Specialist, 5+ years · Fiverr seller since 2018 · Upwork freelancer · BA, University of Dhaka · PGD in Marketing

Last updated: December 2026

Quick Answer

Meta Conversions API (CAPI) setup means sending your purchase, lead and checkout events from your own server straight to Meta, alongside the browser pixel. You keep the pixel, generate an access token in Events Manager, connect a server (usually through Google Tag Manager server-side or a platform integration), and match every event with the same event ID on both sides so Meta counts each conversion once. For a WooCommerce store in Bangladesh, the practical route is GTM server-side with the order ID as the event ID — and I walk through the whole thing below.

If you run Facebook ads for a shop in Dhaka and your Ads Manager numbers never match your real orders, you are not imagining it. The pixel fires in the buyer’s browser, and browsers are exactly where tracking breaks now: ad blockers, iOS privacy prompts, a thank-you page that never loads, a slow mobile connection on a bus in Mirpur. The order still happens. The pixel just never gets to report it.

That is the gap Meta Conversions API closes. I set this up for stores because it is the single most reliable fix I know for “my ads show 4 purchases but I got 11 orders”. This guide covers what CAPI is, the four ways Meta lets you set it up, the exact WooCommerce route I use, and how to test it so you can trust the numbers.

What Is the Meta Conversions API?

The Conversions API is a server-to-server connection. Instead of the buyer’s browser telling Meta “a purchase happened”, your own server tells Meta directly. Meta’s own documentation describes it as a complement to the pixel, not a replacement — and that distinction matters more than anything else in this guide. You run both. The pixel keeps catching what it can in the browser, the server catches what the browser misses, and deduplication makes sure Meta counts each conversion once.

Think of it this way: the pixel is a shop assistant shouting the order across a noisy market. CAPI is the same order written down and handed over in person. Both carry the same message. Meta only records one.

Why the Pixel Alone Stops Being Enough

I see the same pattern again and again when I audit a store’s tracking. Ads Manager reports fewer purchases than WooCommerce shows. Cost per purchase looks worse than it really is. Meta’s algorithm then optimises on incomplete data, which means it finds fewer people like your real buyers.

Three things cause most of the loss. First, ad blockers and browser privacy settings stop the pixel firing at all. Second, iOS asks users whether an app may track them, and many say no — Meta loses the click ID it needs to connect the ad to the order. Third, the purchase event often depends on the thank-you page loading, and plenty of buyers close the tab or lose connection before it does. None of these is a bug in your store. They are the normal state of browsing in 2026, and the fix is to stop depending on the browser for your most important event.

A server event does not care whether the buyer blocked a script. Your server already knows the order happened — it created the order. Sending that fact to Meta from the server is simply using the record you already have.

What You Need Before You Start

Before touching any settings, gather these. Every one of them comes from your own accounts, and having them ready turns a two-day job into an afternoon.

What you need Where to find it Why it matters
A Meta pixel (dataset) already installed Events Manager → your dataset → Settings CAPI events land in the same dataset as your pixel events, so the pixel ID is the address your server events go to
Access token Events Manager → dataset Settings → Conversions API → Generate access token This is the password your server uses to talk to Meta; keep it server-side only, never in browser code
Business Manager access with developer permissions Business Settings → People Only someone with the right permissions can see and generate the token
A list of the events you want to send Your own funnel: PageView, ViewContent, AddToCart, InitiateCheckout, Purchase, Lead Decide this before you build; adding events later means re-testing everything
A server to send from GTM server container, a hosting service, or your platform’s integration This is the route you choose in the next section

One warning from Meta’s own guidance that I repeat to every client: treat the access token like a password. It goes in your server container or your plugin settings, never in JavaScript a visitor can read. For larger setups, create a system user in Business Manager and issue the token there, so it is not tied to one employee’s account.

The Four Ways to Set Up CAPI (and Which One I Recommend)

Meta’s Business Help Center lists four setup routes: partner integration, the Conversions API Gateway, manual setup, and a direct integration. They are not four versions of the same job — they suit very different stores. Here is how I choose between them.

Route Effort Best for Main limit
Partner integration Low — mostly settings Shopify or WooCommerce stores whose platform already has a built-in Meta connection You can only send what the partner supports
Conversions API Gateway Medium — a hosted server instance Stores that want server copies of web events with little code Mirrors web events; does not send CRM stages by itself
Manual setup (GTM server-side) Medium — container setup, no custom code for the standard path WooCommerce stores that also want GA4 server-side in the same container Needs a hosted server container and someone to maintain it
Direct integration High — your developers call the API Custom stores and CRM/lead events that no plugin covers Engineering time and ongoing maintenance

For most Bangladeshi WooCommerce stores, I recommend the manual route through Google Tag Manager server-side. It costs the least to run, it carries GA4 server-side in the same container, and it gives you full control over which events go where. If your store runs on Shopify, start with the partner integration instead — it is already built in, and you should only move to GTM server-side if you need events the integration cannot send. And if your developer budget is zero and your only goal is “send my purchases server-side”, the official Meta for WooCommerce plugin with its server-side events turned on will get you there.

One rule whatever route you pick: choose one main path per event. Two systems sending the same Purchase with different event IDs is how duplicates are born.

Meta Conversions API Setup, Step by Step (WooCommerce + GTM Server-Side)

This is the setup I use on most WooCommerce stores. It follows the same order Meta’s own getting-started guide uses, with the WooCommerce-specific parts spelled out.

Step 1: Confirm the pixel works in the browser first

Open Events Manager and check that your pixel events are arriving from the browser. If the pixel itself is broken, CAPI will only copy a broken setup to the server. You need a working browser baseline so you can compare the two later and see the server events arriving beside them.

Step 2: Create the server container and point a subdomain at it

In Google Tag Manager, create a server container. It needs hosting — Google Cloud Run is the default, and a practical guide I read for this post puts typical small-store cost at roughly $5–15 a month there. In Bangladesh, I usually point clients at a managed host instead: my own PixelFly review on this site covers their free plan, which includes 15,000 events a month and allows a custom domain, and Stape is the other managed host most WooCommerce guides use. Whichever you choose, point a subdomain such as track.yourdomain.com at it. First-party subdomains keep your cookies alive longer, which is half the point of doing this.

Step 3: Build a clean data layer in WooCommerce

WooCommerce does not create a GA4 ecommerce data layer by itself, so you need a plugin or a little code. I use GTM4WP (Google Tag Manager for WordPress): install it, add your web container ID, and under its Integration settings turn on WooCommerce with the ecommerce data layer in GA4 format. Then open your site and check the data layer carries view_item, add_to_cart, begin_checkout and purchase, with product items and values. If the purchase event is missing its value, fix that now — a CAPI event without a value is nearly useless for optimisation.

Step 4: Send web events to the server container

In your web GTM container, send the GA4 events to the server container instead of straight to Google. The base Google tag fires on all pages and carries a Transport URL pointing at your subdomain. One catch I have hit more than once: the base Google tag must fire before your event tags, or the forwarding silently fails and you spend an hour wondering why the server preview is empty.

Step 5: Add the Meta CAPI tag in the server container

In the server container, add the Meta Conversions API tag and enter your pixel ID and the access token you generated in Step 1 of the preparation stage. Map the incoming GA4 event to the Meta event name — purchase to Purchase, and so on. The spelling must match exactly, including the capital letter, because Meta matches events by name.

Step 6: Send the purchase from WooCommerce itself

This is the step most guides skip and most setups get wrong. Do not rely on the thank-you page to fire the purchase. Send it from the order itself, using an order status hook, so the purchase reaches the server even if the buyer never sees the confirmation page. Store a flag in the order meta recording that the conversion was sent, and check it before sending, so each order is sent exactly once. Capture the fbclid click ID when the visitor first lands, carry it through checkout in a hidden field, and save it to the order meta — that click ID is what lets Meta connect the order back to the ad that brought the buyer.

Step 7: Deduplicate with the order ID

Use the order ID as the event_id for Meta on both the browser copy and the server copy of the event, and as the transaction ID in GA4. Meta’s deduplication rule is simple and strict: same event name plus same event ID, and it only matches within 48 hours of the first copy arriving. If the browser and server use different IDs, Meta counts two purchases. If the names differ by one capital letter, it counts two purchases. Get this one field right and the whole setup holds together.

Meta Conversions API setup: browser pixel vs server-side events compared

What Goes Inside a CAPI Event

Every server event Meta accepts has the same skeleton. Meta’s developer documentation lists event_name, event_time, action_source and user_data as required, and website events also need event_source_url. The parts people get wrong are the details, so here they are plainly:

  • event_name — a standard name such as Purchase or Lead, spelled exactly as the pixel spells it. Case-sensitive.
  • event_time — a Unix timestamp in seconds, of when the conversion happened, not when you sent it. Meta rejects any event older than seven days, and one stale event fails the whole request.
  • user_data — the customer details Meta uses for matching: hashed email, hashed phone, the browser ID (fbp) and the click ID (fbc). Normalise first, then hash with SHA-256: email trimmed and lowercased, phone as digits only with the country code and no plus sign. Never hash fbc, fbp, the IP address or the user agent — Meta needs those raw.
  • event_id — your deduplication key. The order ID for a purchase, a lead ID for a lead. Same value on both copies.
  • action_source — where the conversion happened, such as website. It describes the user’s context, not your server.

Send as much customer data as you legitimately have. Meta scores this as Event Match Quality, a score out of 10 shown per event in Events Manager, and it is the clearest single number for whether your server events are matchable. A Purchase with a hashed email, phone, click ID and browser ID will score far higher than one carrying only an IP address. If your EMQ sits low, the fix is almost always “send more of the customer data you already hold”, not a new tool.

How I Set This Up for a Store — What I Actually Do

When a store owner messages me about missing purchases, I start in Events Manager, not in GTM. I look at how many purchases the pixel reported in the last seven days and compare that with the store’s real orders in the same window. If the gap is small, the pixel may just need its thank-you page event checked. If the gap is wide — and it usually is — I plan the server route.

My first decision is always the hosting. For a shop doing a few hundred orders a month, a managed host with a free tier is enough, and I have tested PixelFly’s free container myself on a real server container for the review on this site — it sent test events that showed up in GTM Preview and in the event logs. For a bigger store, or one that also wants GA4 server-side in the same place, I go with a GTM server container on a managed host and put GA4, Meta CAPI and the Google Ads conversion tag in it together, all reading the same incoming event. One container, one data layer, three destinations. That is the whole architecture.

Then I build the data layer before I touch any tag. I install GTM4WP, turn on the WooCommerce ecommerce layer, and place a test order myself to watch the purchase event come through with the right value in BDT. Only when the data layer is clean do I wire up the server tags. The mistake I see most often is the reverse order: tags first, data layer never checked, and then a week of debugging events that were never built properly in the first place.

Deduplication gets its own test. I place a real order, watch the browser Purchase and the server Purchase arrive in Events Manager’s Test Events view, and check that Meta shows one purchase, not two. If it shows two, the event IDs do not match, and I fix that before anything goes live. I never trust a setup I have not tested with a real order — preview mode alone is not proof.

Testing: Prove It Works Before You Trust It

Meta gives you a proper way to test, and you should use it. In Events Manager, open your dataset, go to Test Events, and copy the test event code into your CAPI tag. Then browse your site and place a test order. You should see both the browser event and the server event arrive, and the matching pair marked as deduplicated.

Testing Meta Conversions API events in Events Manager before going live

My testing order, every time:

  1. GTM web Preview — the events fire in the browser and carry the right parameters, including event_id.
  2. GTM server Preview — the GA4 client receives the event and the Meta CAPI tag fires with a 200 status.
  3. Events Manager Test Events — both browser and server copies appear, and the pair shows as deduplicated.
  4. A real order — compare a few days of orders against WooCommerce and watch Event Match Quality. Then remove the test event code and go live.

After launch, give it a week before judging. Watch whether the purchase count in Ads Manager moves closer to your real orders, and whether Event Match Quality climbs. Do not change the setup every day — server events take time to settle, and daily edits will hide the signal.

What CAPI Costs in Bangladesh

The API itself is free — Meta charges nothing for receiving events. What you pay for is the server that sends them. Your real cost is hosting, and it is small for most Bangladeshi stores.

Option Typical cost Notes
Managed host free tier (PixelFly Free) ৳0 15,000 events a month on the free plan, per my own review on this site; custom domain allowed on the free plan
Google Cloud Run (self-hosted sGTM) Roughly $5–15 a month Typical small-store cost per the AgencyChange setup guide; you manage the container yourself
Managed sGTM host (Stape and similar) Paid plans — check current pricing You pay for the hosting, not the API; one container can carry GA4, CAPI and Google Ads together
Platform integration (Shopify / Meta for WooCommerce) ৳0 extra Included in the platform’s own Meta connection; no separate server to run

Costs checked December 2026; managed hosts change their plans, so confirm the current price on the provider’s own pricing page before you commit. For a small shop, the honest answer is that the free tier of a managed host usually covers the first months, and the real investment is the half-day of setup, not the monthly bill.

Mistakes That Break a CAPI Setup

Most broken setups I look at fail in one of five ways. All five are avoidable.

Mistake What happens The fix
Two systems sending the same event with different event IDs Meta counts every purchase twice One main path per event; same order ID as event_id everywhere
Access token pasted into browser code Anyone can read it and send fake events to your dataset Token lives server-side only; use a system user token for bigger setups
Purchase fired only from the thank-you page Orders are lost when the page never loads Send the purchase from the order status hook instead
Event names that do not match the pixel Browser and server copies never deduplicate Same spelling, same capitalisation, on both sides
No customer data sent with the event Low Event Match Quality; Meta cannot connect events to people Send hashed email, phone, fbp and fbc with every event

CAPI and Lead Generation Businesses

Everything above works for shops, but if you collect leads instead of orders — a coaching institute, a real estate page, a service business taking WhatsApp enquiries — the same setup carries over with different events. Send Lead when the form is submitted, and send the later stages (qualified, booked, closed) from your CRM if you can. Meta’s own setup guidance lists four routes for leads too, and the manual and direct routes are the ones that can carry CRM stages; the Gateway on its own mirrors web events and will not send them.

For lead businesses, the deduplication key is your lead ID rather than an order ID, and the same rule holds: the same ID on the browser copy and the server copy, within 48 hours. The payoff is the same as well. When Meta can see which leads actually became customers, instead of only which forms were submitted, it optimises for buyers instead of form-fillers.

Frequently Asked Questions

Do I still need the Meta pixel after setting up CAPI?
Yes. Meta recommends running both together. The pixel catches browser events instantly and carries the click ID and browser ID; CAPI catches what the browser misses. Deduplication with a shared event_id keeps each conversion counted once.

Is Meta Conversions API free?
The API itself is free. You pay only for the server that sends the events — a managed host’s free tier, roughly $5–15 a month on Google Cloud Run for a small store, or a paid managed plan. Costs checked December 2026.

How do I set up Meta Conversions API on WooCommerce?
The practical route is GTM server-side: build a clean data layer with GTM4WP, host a server GTM container, add the Meta CAPI tag with your pixel ID and access token, send the purchase from the order status hook, and deduplicate with the order ID as the event_id. Or use the official Meta for WooCommerce plugin, which adds CAPI events on order completion.

What is Event Match Quality in CAPI?
Event Match Quality is Meta’s score out of 10, shown per event in Events Manager, estimating how well the customer information on your server events can be matched to a Meta account. Send hashed email, phone, the browser ID and the click ID to raise it.

Why is Meta counting my purchases twice after CAPI?
Because the browser and server copies do not share the same event name and event_id. Meta only deduplicates when both match, within 48 hours. Use the order ID as the event_id on both sides and check the spelling of the event name, including capital letters.

Can I set up CAPI without a developer?
Yes, for the standard paths. A partner integration or a plugin needs no code, and the GTM server-side route needs container setup rather than programming. You only need a developer for a direct API integration or for CRM events no plugin covers.

Start With the Purchase Event

If you take one thing from this guide, take this: start with Purchase, and start with deduplication. You do not need ten events on day one. One event, sent reliably from the server with the order ID as its event ID, will fix more of your reporting than a perfect ten-event setup that double-counts everything.

Once Purchase is clean and Event Match Quality is healthy, add AddToCart and InitiateCheckout the same way, then the lead stages if your business collects leads. And if the setup feels like more than you want to handle yourself, that is exactly the work I do — server-side tracking setup with GTM server-side, Meta CAPI and GA4, for WooCommerce stores and lead businesses in Bangladesh. You can reach me on WhatsApp at +8801878028178, or read my server-side tracking expert page for the full service. My server-side tracking setup guide for WooCommerce covers the wider GTM server-side build this post sits inside, and if you run Facebook ads on top of this tracking, my Facebook ads expert page explains how I use clean conversion data to run the campaigns themselves.