Log in Sign up
Spy on competitors

How Do I Set Up Meta's Conversions API (CAPI) Correctly?

How Do I Set Up Meta’s Conversions API (CAPI) Correctly?

Meta’s Conversions API (CAPI) sends conversion events directly from your server to Meta, bypassing browser-based tracking limitations from ad blockers and iOS 14.5+. Setting up CAPI correctly requires implementing server-side event sending, configuring event deduplication with the Meta Pixel, and validating data quality through Events Manager. Advertisers using CAPI alongside the Pixel see 15–25% more attributed conversions and significantly improved campaign optimization.

Why Is the Conversions API Necessary in 2026?

Browser-based tracking through the Meta Pixel now captures only 65–75% of actual conversion events. Ad blockers prevent Pixel fires for 15–25% of web users, iOS 14.5+ App Tracking Transparency blocks cross-site tracking for approximately 75% of iPhone users, and cookie expiration policies in Safari and Firefox further reduce Pixel reliability. The Conversions API sends events directly from your web server to Meta’s servers — no browser required. This server-to-server connection is not affected by ad blockers, iOS restrictions, or cookie policies. Meta requires CAPI for accurate attribution, and campaigns using CAPI data consistently outperform those relying on Pixel alone because Meta’s optimization algorithms receive more complete signal data.

What Are the Setup Methods for Conversions API?

MethodComplexityBest ForSetup Time
Partner integration (Shopify, WooCommerce, WordPress)LowE-commerce platforms15–30 minutes
Google Tag Manager server-sideMediumCustom websites with GTM2–4 hours
Direct API implementationHighCustom applications, advanced control1–3 days
Conversions API Gateway (Meta)MediumAWS-hosted websites1–2 hours

Shopify merchants get the simplest setup — enable CAPI in Shopify’s Facebook channel settings and it handles server-side event sending automatically. WooCommerce, WordPress, and other platforms offer plugins that configure CAPI without custom code. For custom implementations, Meta’s Marketing API documentation provides endpoints for sending standard events (Purchase, AddToCart, Lead, CompleteRegistration) with customer parameters (email, phone, IP address) for matching.

How Do I Implement Event Deduplication?

Event deduplication prevents double-counting when both the Pixel and CAPI send the same conversion event. Without deduplication, Meta counts each conversion twice — inflating your reported results and corrupting optimization signals. The solution: include an identical event_id parameter in both the Pixel fire and the CAPI event. When Meta receives two events with the same event_id within 48 hours, it counts them as one conversion. Generate a unique ID per transaction (order ID for purchases, form submission ID for leads) and pass it to both tracking methods. Verify deduplication in Events Manager — the “Deduplicated” column should show events being matched.

What Customer Parameters Should I Send with CAPI Events?

CAPI event matching quality determines how accurately Meta connects server-side events to ad impressions. Send as many customer parameters as possible: hashed email address (required), hashed phone number, first name, last name, city, state, zip code, country, external ID, and client IP address plus user agent. Meta hashes all personal data using SHA-256 before matching. The Event Match Quality score in Events Manager ranges from 1 to 10 — aim for 6.0 or higher. Scores below 5.0 indicate insufficient matching parameters, meaning Meta cannot reliably attribute conversions to specific ad exposures.

How Do I Validate My CAPI Setup?

Validate in three steps. First, check Events Manager’s “Test Events” tab — send test events from your server and confirm they appear in real time. Second, verify the Event Match Quality score exceeds 6.0 for each event type. Third, compare Pixel-only events versus CAPI events in the “Event Source Overview” — you should see CAPI capturing 15–25% more events than the Pixel alone. Common setup errors include mismatched event names (the Pixel sends “Purchase” but CAPI sends “purchase” — case matters), missing deduplication IDs, and incorrect hashing of customer parameters. Leo’s setup diagnostics automatically validate CAPI configuration and flag data quality issues.

What Impact Does CAPI Have on Campaign Performance?

Advertisers who implement CAPI correctly see measurable improvements: 15–25% increase in attributed conversions, 10–15% reduction in CPA as Meta’s algorithms optimize on more complete data, and improved Advantage+ performance because the system receives higher-quality conversion signals. The optimization improvement is cumulative — better data leads to better targeting, which leads to higher conversion rates, which generates more data. Meta’s internal case studies show CAPI implementation delivers a median 13% improvement in cost per result within the first 28 days. For advertisers managing campaigns across multiple platforms, Leo integrates CAPI data with Google and LinkedIn conversion data for unified, cross-platform performance visibility.