CredentialWhere to GetUsed ForMETA_ACCESS_TOKENMeta Developer Console → Graph API Explorer → Generate TokenAll Meta Marketing API callsMETA_PIXEL_IDMeta Events Manager → select your Pixel → copy Pixel IDIdentifying which pixel to configure
Token note: The System User access token (generated in Business Settings) is the primary credential for CAPI API calls. You still need a registered Meta App (App ID) to set up the CAPI integration in Events Manager — the App ID is required when creating the System User and configuring token permissions. Make sure the token includes these scopes:
ads_management,business_management,pages_read_engagement.
When setting up tracking for a new account, or when CPA shown in Meta Ads Manager is significantly higher than actual leads/sales (indicating a tracking gap). CAPI is especially critical for lead generation campaigns where offline conversions are the true business outcome.
Together: Pixel + CAPI gives Meta the most complete picture → better optimization → lower CPA over time.
If you're not using CAPI, you're likely overpaying for every lead. The gap can be 20–50% depending on industry and browser mix.
Before setting up CAPI, you need:
Use your e-commerce platform's built-in Meta integration. This is the easiest path:
PlatformHow to ConnectShopifyShopify Admin → Sales Channels → MetaWooCommercePlugins → Meta for WooCommerceOther platformsCheck Meta's partner directory at meta.com/partners
Steps (native integration):
Only use these if you are a developer or using a platform without native Meta integration.
MethodBest ForComplexityGoogle Tag Manager Server-SideTeams already using GTMMediumZapier / Make.comNo-code teams, non-standard tech stacksMediumMeta Conversions API via Meta Business ManagerSimple server events without developer resourcesLowDirect API IntegrationDevelopers building custom infrastructureHigh
For Direct API: use your META_ACCESS_TOKEN to send events to https://graph.facebook.com/v21.0/{pixel_id}/events.
ads_management, business_management, pages_read_engagementEventRecommended ForPageViewAll campaigns — helps Meta build audienceViewContentE-commerce product pagesAddToCartE-commercePurchaseE-commerce (critical — this is your conversion event)LeadLead generation (critical — matches your optimization goal)CompleteRegistrationWebinar, courses, freemium signupsContactLocal service businesses
In Meta Events Manager:
What to verify:
Event parameters that improve CAPI quality:
In Meta Events Manager, check:
Matching Quality benchmarks:
Meta's predefined event names: Lead, Purchase, PageView, ViewContent, AddToCart, InitiateCheckout, CompleteRegistration. Better optimization because Meta knows exactly what the event means.
Use only when no standard event fits. Define custom name and parameters yourself. Required for: offline sales, phone calls, specific business workflows.
IssueLikely CauseFixCAPI events not appearing in MetaToken expired or permissions wrongRegenerate access token with correct permissionsHuge gap between pixel and CAPI volumesCAPI not connected properlyCheck Events Manager → CAPI statusCPA artificially high in MetaCAPI not sending offline conversions (lead gen)Verify Lead event is firing server-sideEvents marked as "Unmatched"User data not being passed correctlyEnsure email/phone is hashed before sendingDuplicate events (double counting)Both pixel and CAPI firing without deduplicationPass event_id in both pixel and CAPI calls
For lead gen campaigns, the conversion happens offline — someone fills out a form, you call them, they sign up. Meta pixel can't see this.
What CAPI must send for lead gen:
CRM Integrations that support CAPI for leads: HubSpot, Salesforce, Zapier, Make.com.
If you're not sending offline lead data back to Meta: Meta is optimizing for form submissions only. You're paying for leads that never convert.
When both Pixel and CAPI send the same event (same event_id), Meta deduplicates automatically. Requirements: