Meta Conversions API (CAPI) is the server-to-server data connection that sends conversion events from your website directly to Meta. Bypassing the user's browser, iOS opt-out screens, and ad blockers. It exists because iOS 14, Safari ITP, and modern browsers gutted what the Meta Pixel could see. In 2026, CAPI is no longer optional for serious Meta advertisers.
This guide covers what CAPI is, why it matters, how it works, how to set it up, and how AI marketing agents now monitor CAPI health continuously instead of catching pixel breakage weeks late.
What is CAPI, exactly
Note
Definition. Meta Conversions API (CAPI) is a server-to-server data connection that sends conversion events (purchases, leads, sign-ups, page views) directly from your server to Meta's ad platform. Unlike the Meta Pixel, which runs in the user's browser and depends on cookies, CAPI runs server-side and is unaffected by browser tracking restrictions, ad blockers, or iOS opt-out. Meta uses CAPI data to attribute conversions to ads, optimize campaign delivery, and build lookalike audiences.
CAPI was launched in 2020 (originally called the "Server-Side API") and became central to Meta advertising in 2021 when iOS 14's App Tracking Transparency (ATT) collapsed the share of users opting in to pixel tracking. By 2024, Meta required CAPI for most advertisers running serious budgets. By 2026, Meta auto-disables campaigns that fail CAPI health checks for extended periods.
Why CAPI matters in 2026
Three concrete reasons CAPI earns its place.
Pixel-only tracking misses 20-40 percent of conversions
iOS 14's ATT, Safari's Intelligent Tracking Prevention, Firefox's Enhanced Tracking Protection, and ad blockers all cripple what the browser-side Meta Pixel can see. A pixel that worked perfectly in 2019 reports 60-80 percent of actual conversions in 2026. CAPI fills that gap by sending the data server-side.
Worse data means worse algorithm decisions
Meta's ad delivery algorithm optimizes based on the conversion data it receives. If 30 percent of your conversions never reach Meta, the algorithm thinks those campaigns underperformed and shifts spend away. CAPI lets the algorithm see the full picture, which improves CPA and ROAS by 15-30 percent on most accounts.
Lookalike audiences degrade without CAPI
Lookalike audiences are built from the conversion data Meta sees. Pixel-only tracking produces smaller and less representative seed audiences. CAPI restores audience size and quality.
CAPI versus pixel tracking
| Feature | Meta Pixel | Conversions API (CAPI) |
|---|---|---|
| Where it runs | User's browser (client-side) | Your server (server-side) |
| Affected by iOS opt-out | Yes (significantly) | No |
| Affected by ad blockers | Yes | No |
| Affected by Safari ITP | Yes | No |
| Setup difficulty | Easy (paste a snippet) | Medium (server config required) |
| Event accuracy | 60-80 percent in 2026 | 95-99 percent |
| Recommended in 2026 | Use alongside CAPI | Use alongside Pixel |
The right setup runs both Pixel and CAPI. CAPI fills the gaps the Pixel misses; the Pixel handles the events CAPI does not (page-view-only signals).
How to set up CAPI
The path depends on your stack. Three common routes:
Shopify (or other ecommerce platforms with native integration)
Most major ecommerce platforms (Shopify, BigCommerce, WooCommerce) have native CAPI integrations. Setup is usually:
- Open the Meta Pixel app inside your platform's admin
- Connect your Meta Business account
- Toggle "Conversions API" to on
- Match conversion events (Purchase, AddToCart, ViewContent, Lead)
- Verify event firing in Meta Events Manager (24-48 hours)
Time investment: 1-2 hours for non-technical operators.
Google Tag Manager (server container)
For brands with custom websites, GTM Server Container is the cleanest path. Setup involves:
- Create a server-side GTM container in Google Cloud
- Configure the Meta Conversions API tag template
- Set up a server-side endpoint your client-side GTM forwards events to
- Match events between Pixel and CAPI using
event_idfor deduplication - Verify in Meta Events Manager
Time investment: 4-8 hours for someone familiar with GTM.
Custom server-side integration
For headless or custom-stack sites, the integration is a direct API call from your server to Meta's CAPI endpoint after each conversion event. Example pseudocode:
// On purchase confirmation
await fetch('https://graph.facebook.com/v19.0/PIXEL_ID/events', {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({
data: [{
event_name: 'Purchase',
event_time: Math.floor(Date.now() / 1000),
event_id: orderId, // for Pixel/CAPI deduplication
action_source: 'website',
user_data: {
em: hashedEmail,
ph: hashedPhone,
client_ip_address: userIp,
client_user_agent: userAgent,
fbc: fbcCookie,
fbp: fbpCookie,
},
custom_data: {
currency: 'USD',
value: orderTotal,
},
}],
access_token: META_ACCESS_TOKEN,
}),
});
Time investment: 1-3 days for a developer including deduplication logic.
Common CAPI mistakes
Five mistakes that show up in CAPI audits.
No deduplication between Pixel and CAPI. When both fire for the same event without an event_id, Meta double-counts the conversion. Use the same event_id (typically the order ID or a UUID) across both Pixel and CAPI.
Sending unhashed user data. Personal data (email, phone) must be SHA-256 hashed before sending to Meta. Sending raw values violates Meta's terms and gets your account flagged.
Missing fbc and fbp parameters. These are the click ID and browser ID cookies Meta uses to attribute server-side events back to specific ad clicks. Without them, attribution suffers.
Sending events too late. Meta wants events within 24 hours of occurrence. Batch jobs that process orders weekly miss the attribution window for ad delivery optimization.
Ignoring Event Match Quality (EMQ). Meta scores your CAPI events on EMQ. A 0-10 measure of how well-identified each event is. Below 7 hurts attribution; above 8 is the goal. AI agents monitor EMQ continuously.
How AI agents monitor CAPI
The shift in 2026 is that CAPI health stops being a "set up and forget" config and becomes something an AI agent watches continuously.
A modern AI marketing agent like Hyper monitors:
- Pixel-CAPI parity: Are the two firing for the same events with proper deduplication?
- Event Match Quality (EMQ): Is the EMQ score above 8 across all events?
- Latency: Are events arriving at Meta within 24 hours?
- Volume drops: Did CAPI stop firing on a specific event last Tuesday?
- Hash quality: Are personal data fields properly SHA-256 hashed?
When something drifts, the agent flags it (Slack, email) and can sometimes auto-fix common issues (re-running a missed batch, re-hashing a field). The result: pixel breakage gets caught in hours instead of weeks. For accounts running 25K USD plus per month on Meta, hours-vs-weeks of broken tracking is the difference between a tightly-optimized campaign and one quietly hemorrhaging spend.
Autonomous marketing
Grow your business faster with AI agents
- Automates Google, Meta + 5 more platforms
- Handles your SEO end to end
- Improves website conversions
- Runs social media for you
Frequently asked questions
Q: Is Conversions API mandatory in 2026?
Effectively yes. Meta has not made it formally mandatory but auto-disables campaigns that fail CAPI health checks repeatedly, and the cost of pixel-only tracking (20-40 percent missed conversions, weaker lookalikes, worse algorithm performance) makes CAPI the de facto requirement for serious advertisers.
Q: Can I use Conversions API instead of the Meta Pixel?
Technically yes, but recommended setup is both. The Pixel still handles page-view signals and browser-side data CAPI cannot easily capture. The two work together with deduplication via event_id.
Q: How do I set up CAPI without a developer?
Use a platform-native integration. Shopify, BigCommerce, WooCommerce, and most major ecommerce platforms have native CAPI integrations that take 1-2 hours of clicking through admin screens. For custom sites, Google Tag Manager Server Container is the no-code path.
Q: What is Event Match Quality (EMQ)?
EMQ is Meta's 0-10 score for how well-identified each CAPI event is. Higher scores come from sending more user data fields (hashed email, phone, fbc, fbp, IP, user agent). Below 7 hurts attribution; above 8 is the goal.
Q: Does CAPI work for Instagram and Messenger ads?
Yes. CAPI is for the entire Meta ad ecosystem (Facebook, Instagram, Messenger, Audience Network, Threads). Setup is identical regardless of which Meta surface the ads run on.
Q: How do I know if my CAPI is working?
Check Meta Events Manager. Each event should show 'Server' as a source alongside 'Browser' (when the Pixel also fires). EMQ score should be above 7. Latency should be within 24 hours. Run the Test Events tool for one transaction to validate end-to-end.
Q: What is the difference between Conversions API and the Conversions API Gateway?
The Conversions API is the underlying server-to-server protocol. The Conversions API Gateway is Meta's hosted service that simplifies setup for brands without server-side capacity. Basically a managed CAPI relay. Both end up sending the same data to Meta.
Q: Does Google have something equivalent to Conversions API?
Yes. Google Enhanced Conversions plus Google's server-side tagging via Google Tag Manager Server. Same idea (server-side data delivery), different platform. Most modern ecommerce stacks set up both Meta CAPI and Google Enhanced Conversions in parallel.
What to do next
For Meta advertisers running 5K USD plus per month, set up CAPI this week if you have not. The platform path (Shopify, BigCommerce, WooCommerce) takes a few hours; the GTM path takes a day; the custom path takes 1-3 days for a developer. Compare to losing 20-40 percent of conversion data. The math is obvious.
For ongoing CAPI health monitoring, Hyper is an AI marketing agent that runs CAPI audits hourly across Meta plus Google Enhanced Conversions, GA4, and the rest of the analytics stack. Free 30-day trial, paid plans from 49 USD/month.
For deeper context: What is Attribution, What is ROAS, Best Meta Ads AI Tools 2026.