DATALYR

Salesforce to Meta Conversions API.

Send Salesforce qualified leads and won deals to Meta so ads optimize on the pipeline that closes. Each stage reaches your Meta Pixel with the ad click attached.

What gets sent.

What DATALYR sends from Salesforce to Meta Conversions API
DATALYR eventWhen it firesSent to Meta asWhat it carries
call_bookedYour Zap fires on a booked call or demoScheduleA fixed value you enter, the email and the ad click when the email matches a visit
lead_qualifiedYour Zap fires on a lead marked qualifiedLeadA fixed value you enter, the email and the ad click when the email matches a visit
deal_wonYour Zap fires on an opportunity moving to Closed WonPurchaseThe deal amount as the value, with the deal ID as the order ID. Never counted as revenue

How it's matched.

DATALYR checks these in order and stops at the first one that finds the ad click.

  1. The contact email. Zapier events match by email alone, to a visit DATALYR already knows from an identify call on your form, a booking or a payment

Meta gets the click ID (fbc, built from the _fbc cookie or fbclid) and browser ID (fbp), plus email, phone and name hashed with SHA-256 when known. DATALYR sends the same event ID the browser pixel uses, so Meta merges the pair into one conversion.

How it works.

  1. 01

    Connect Salesforce.

    Salesforce connects through Zapier. Build one Zap per stage, add Webhooks by Zapier with your write key, and paste the request body from the Zapier card in Sources. Put the tracking script on your landing pages.

  2. 02

    Connect Meta.

    Open Sources, select connect on Meta Ads and sign in with Facebook Login for Business. Set the primary ad account. In Conversions, select manage rules, then new rule: trigger event lead_qualified, target platform Meta, your pixel, platform event Lead. Set a fixed value: what a qualified lead is worth to you.

  3. 03

    Check one conversion.

    Mark one test lead qualified in Salesforce for a contact who filled in your form from a Meta ad click. Find lead_qualified in Events, then open the newest row in Conversions and read the reply from Meta.

Check it worked.

  • In Events, the lead_qualified row has source zapier, and in Users the pageview and the lead_qualified sit on one user. If the lead has no campaign, call identify() on your form with the email.
  • Set a Test Events code on the rule, then select send test event. The event shows in Events Manager under Test events with the name, value and currency you mapped. Without a code, a test is a real conversion.
  • Open the newest row in Conversions. Its status reads sent, and the response body carries Meta's own acceptance field.

View docsZapierMeta AdsConversion delivery

Questions, answered.

Contact us
  • One that happens within a week of the click. Meta optimizes on a 7-day window, so a booked call or a qualified lead teaches it more than a deal that closes a month later.

  • No. deal_won carries the deal amount as contract value, so no DATALYR revenue report counts it. Cash comes from a payment source such as Stripe.

  • A DATALYR write key from Settings, API, a Zapier plan with multi-step Zaps and Webhooks by Zapier, and the tracking script on your landing pages.

See what really drives revenue.

Real-time attribution, analytics and conversions for every channel, campaign and ad, ready for your team and your agents.

Get started