Meta’s Conversion API (CAPI) is a tool that lets your website or app send important customer actions (could be purchases, sign-ups or leads) directly to Meta (Facebook/Instagram) for tracking and ads optimization.
Think of it like this:
- Pixel tracks actions through the browser.
- Conversion API tracks actions directly from your server.
This means you can still measure and optimize ads even if browser tracking gets blocked by ad blockers or privacy rules. It helps Meta’s algorithm understand which ads work best so it can show them to the right people.
How to Set Up API (CAPI)

Understand What You’ll Need
- A Meta Business Manager account.
- Access to your Meta Pixel.
- Admin access to your website or eCommerce platform (Shopify, WordPress, etc.).
- Developer help (optional but useful) if you’re doing a manual setup.
Choose Your Setup Method
- If you use platforms like Shopify, WooCommerce, Wix or Google Tag Manager, Meta has one-click or guided integrations.
- For custom websites or apps, you’ll need to send events from your server to Meta using their API endpoints.
- Use Google Tag Manager Server-Side to route events from your server to Meta.
Set Up CAPI via Partner Integration
- Example: Shopify.
- In Shopify admin, go to Settings, then to Apps and sales channels and Facebook & Instagram.
- Connect your store to your Meta Business Manager.
- Enable Conversion API in the settings.
- Choose “Maximum” or “Enhanced” data sharing for best results.
- Example: WordPress / WooCommerce.
- Install the Facebook for WooCommerce plugin.
- Connect your store to Meta Business Manager.
- Turn on Conversion API in the plugin settings.
If Doing Manual Setup
- Go to Events Manager in Meta Business Suite.
- Select your Pixel, then Settings and Scroll to Conversions API.
- Click Generate Access Token (keep this secure).
- In your server code, send POST requests with event details (purchase, lead, etc.) to:
- https://graph.facebook.com/vXX.X//events.
- Include: Event name (for example: “Purchase”), Event time, User data (hashed email, phone, etc.) and Access token.
Test Your Setup
- In Events Manager, use Test Events to see if data flows from your server.
- Compare browser events (Pixel) vs. server events (CAPI) to ensure both work.
Monitor And Optimize
- Keep an eye on Event Match Quality in Meta, higher match that equals better ad optimization.
- Combine Pixel plus CAPI for the best tracking resilience.
Conclusion
Using Meta’s Conversion API alongside the Pixel gives you stronger, more reliable tracking. You can send accurate data even when browsers block cookies, which helps Meta target your ads better and improve results. Set it up, test it and keep refining so your campaigns stay effective and competitive.