If you run Meta Ads lead generation campaigns and use Salesforce as your CRM, you have a significant opportunity to improve campaign performance by sending qualified lead and closed deal data from Salesforce back to Meta via the Conversions API. This creates a feedback loop where Meta’s algorithm learns to target users similar to your actual customers rather than optimising purely for form completions.
Why CRM Data Back to Meta Matters
Meta’s algorithm optimises for the conversion signal you give it. If your conversion signal is “Lead Form Completion,” it optimises for users most likely to complete a form — which includes low-intent, accidental, and unqualified submissions.
When you send Salesforce data back to Meta:
- Qualified Lead events: Meta learns that these specific users (who completed the form AND qualified) are the target. It shifts targeting toward people similar to qualified leads, not just any form completer.
- Closed Won events: if you send the actual sale (Opportunity closed-won), Meta’s algorithm can optimise toward users most likely to become customers, dramatically improving campaign ROI over time.
How to Connect Salesforce to Meta CAPI
Option 1: Meta’s Native Salesforce Integration
Meta has a native CRM integration for Salesforce. In Meta Business Manager, go to Events Manager → Data Sources → Create Data Source → CRM → Salesforce. Follow the setup wizard to connect your Salesforce instance and configure which Salesforce objects and events to send to Meta.
This is the simplest approach if your Salesforce account is eligible for the native integration. It handles authentication and data mapping without custom development.
Option 2: Zapier/Make Automation
Set up a Zapier or Make scenario that:
- Triggers when a Salesforce Lead or Contact status changes (e.g. to MQL, SQL, or Closed Won)
- Sends a CAPI event to Meta with the hashed contact email and the appropriate event type
This approach is more flexible than the native integration and works for any Salesforce setup. It requires a Zapier/Make account and a basic understanding of the Meta CAPI event format.
Option 3: Custom Salesforce Apex Trigger
For Salesforce-heavy organisations with developer resources, build a custom Apex trigger that fires a callout to your server when a Lead or Opportunity status changes. Your server then sends the CAPI event to Meta. This approach provides full control over the data and logic but requires Salesforce development.
What Data to Send from Salesforce to Meta
Required fields
- event_name: Lead (for qualified leads), CompleteRegistration (for demo completions), Purchase (for closed deals)
- event_time: Unix timestamp of when the event occurred
- user_data: hashed email and/or hashed phone of the Salesforce contact
Recommended optional fields
- event_source_url: the URL where the original form was submitted (improves match quality)
- value and currency: deal value from the Salesforce Opportunity (for Purchase events)
- client_ip_address and client_user_agent: if available from the original form submission, these improve match rates
Deduplication with Browser-Side Lead Events
If you are also tracking form submissions via the browser-side Meta Pixel (Lead event), your CAPI events need deduplication. Without it, a single lead submission generates two Lead events — one from the browser pixel and one from Salesforce CAPI when the lead is created.
To deduplicate: include the same event_id in both the browser pixel Lead event and the CAPI Lead event. The event_id should be a unique identifier for the form submission (e.g. a timestamp + form ID combination, or the Salesforce Lead ID).
Expected Impact on Campaign Performance
After enabling Salesforce → Meta CAPI for qualified leads:
- Lead quality tends to improve over 4–8 weeks as Meta’s algorithm shifts targeting
- Cost per qualified lead may decrease even if cost per form completion stays similar
- If you send Closed Won data, Meta can eventually optimise toward “users similar to people who bought” rather than “users similar to people who filled a form”
The impact is larger for higher-volume campaigns. Accounts with 50+ qualified leads per month will see faster algorithm learning than smaller accounts.
Book your free audit here and we will help you set up the Salesforce to Meta CAPI data flow that improves your lead gen campaign performance over time.