If your Meta ads report far fewer purchases or leads than your store or CRM shows, the cause is often lost tracking, not bad ads. Browser-only tracking with the Meta Pixel misses events when ad blockers, browser privacy features or slow pages stop the script. The Conversions API (CAPI) sends the same events from your server. Used together with proper deduplication, they give Meta's delivery system better signals. This guide explains how they fit together and how to set them up without double counting.
Pixel vs Conversions API
| Meta Pixel | Conversions API | |
|---|---|---|
| Runs in | The visitor's browser | Your server or a server-side tag manager |
| Blocked by ad blockers | Often | No |
| Good for | Browsing events: PageView, ViewContent, AddToCart | Reliable conversions: Purchase, Lead, CompleteRegistration |
| Can send offline or delayed events | No | Yes (for example, a lead qualified later in the CRM) |
Meta recommends using both. The Pixel catches browser context; the API makes sure key conversions arrive.
Four ways to set up the Conversions API
- Platform integration: WooCommerce, Shopify and other platforms have official Meta integrations that send server events for standard e-commerce actions. Fastest option for most stores.
- Conversions API Gateway: a Meta-provided setup that runs in your own cloud account and mirrors pixel events server-side with little code.
- Server-side Google Tag Manager: a server container on your own subdomain receives events and forwards them to Meta and other platforms. Flexible, but you host and maintain it.
- Direct API calls: your backend sends events to the Graph API. Best for custom platforms and CRM events.
Deduplication: the step people get wrong
If the Pixel and the API both send "Purchase" for the same order, Meta must know they are one event. It deduplicates when both events share the same event name and the same event ID, received close together (Meta's documentation describes a 48-hour window).
- Generate one ID per action, such as the order number, on your server.
- Send it in the Pixel call as
eventID:fbq('track','Purchase',{value:250,currency:'EGP'},{eventID:'order_1042'}) - Send the same value as
event_idin the server event, withevent_nameset toPurchase.
Without matching IDs, you will see roughly double the conversions and Meta will optimise on wrong data.
What to send with each server event
event_name,event_time(Unix seconds),action_source(website),event_source_urlevent_idfor deduplication- Customer information to help matching: email and phone hashed with SHA-256 after normalising (lowercase email, phone with country code and no symbols), plus client IP address and user agent (not hashed)
- The
_fbpand_fbccookie values asfbpandfbcwhen available custom_datasuch asvalue,currencyand content IDs for purchases
Events Manager shows an Event Match Quality score for each event. Sending more of the matching keys above, correctly formatted, usually raises it.
Test before you trust it
- Open Events Manager, Test events and copy the test code.
- Send server events with
test_event_codeand trigger the same action in the browser. - Check that both appear and that Meta marks them as deduplicated.
- Remove the test code before going live.
Privacy and consent
- Show a clear privacy policy and, where required, collect consent before tracking.
- Never send sensitive information (health, financial details, national ID) in event parameters or URLs.
- Hash customer information before sending; Meta's integrations do this for you.
Hosting considerations
Platform integrations run inside your existing site, so WooCommerce hosting is enough. A server-side tag manager container or a custom event service needs its own always-on server with HTTPS; a small Linux VPS or Cloud VPS works, placed close to your visitors.
Checklist
- Pixel and API both active for Purchase and Lead
- Matching event_id and event_name for deduplication
- Hashed email and phone, IP, user agent, fbp and fbc sent
- Test events confirmed in Events Manager
- Privacy policy and consent in place
Good tracking only helps if the page converts. Make sure ads land on a focused page; see landing page vs website. Need help connecting your store or CRM to the Conversions API? Talk to our development team.



