In this article
Browser tracking alone misses many conversions because of ad blockers, browser privacy features and slow pages. Meta recommends using the Pixel together with the Conversions API (CAPI), which sends the same events from your server. Done right, your campaigns optimise on more complete data.
From my own work: I set up Meta tracking for e-commerce stores and built an open-source Conversions API gateway. The most common mistake I see is sending server events without an event_id, so Meta counts purchases twice.
1. Install the Pixel
Create a dataset (Pixel) in Events Manager and install it via your platform integration or Google Tag Manager (About the Pixel). Track standard events: PageView, ViewContent, AddToCart, InitiateCheckout, Purchase, Lead.
2. Add the Conversions API
| Platform | Easiest option |
|---|---|
| WooCommerce | Meta’s official integration, or a server-side gateway |
| Shopify | Facebook & Instagram app (data sharing set to Maximum) |
| Custom site | Send events to the Conversions API endpoint from your server |
3. Deduplicate with event_id
When the same Purchase is sent by both Pixel and CAPI, give both the same event_name and event_id (for example the order number). Meta then keeps one (deduplication guide).
4. Improve match quality (with consent)
- Send hashed email and phone (with country code), plus fbp/fbc cookies, IP and user agent.
- Only collect what your privacy policy and user consent allow.
- Check Event Match Quality in Events Manager.
5. Test
- Use Test Events in Events Manager with a test code.
- Make a real test order and confirm one Purchase with the right value and currency.
- Watch the Diagnostics tab for duplicate or missing parameters.
Running ads? Start with Facebook ads for beginners.
Need help with this on your own site or business?
I build and secure WordPress sites, web apps and AI automations end to end, in Bangla and English: a free discovery call, a written scope with a fixed quote, a focused first version, then testing, deployment and monitoring.
See the portfolio and the AI agent services, or tell me what you need.
FAQ
Do I still need the Pixel if I use CAPI?
Meta recommends using both; the Pixel captures browser context and CAPI fills the gaps.
Why are purchases counted twice?
Usually missing or different event_id values between Pixel and server events.
Is CAPI legal under privacy laws?
It can be used compliantly with proper consent, a clear privacy policy and hashed personal data.











