Connecting Salesforce to Customer.io
Salesforce holds the opportunity, the amount and the close — the only place the actual revenue outcome is recorded. Customer.io triggers messages from behaviour, which means an event you send is not recorded — it is acted on, usually within seconds, by sending something to a real person. The join between them succeeds or fails on one thing: whether the person identifier you assign reaches the Salesforce Lead or Opportunity before the conversion happens, because Customer.io can only match a conversion it can tie back to a click it recognizes.
Free30 minutesNo obligation
Specific to this pair
Salesforce deal stages driving Customer.io, minus the accidents
Send Customer.io two Salesforce transitions: a trial account getting an open opportunity, so upgrade nudges stop, and Closed Won, so onboarding starts at signature. Match on the product user ID stored on the Contact, not email, and consider an Account object if your plan has objects. Point every Salesforce sandbox at a separate test workspace.
In a SaaS company Customer.io usually runs trial and onboarding messages while Salesforce holds the sales-assisted deal. Two transitions are worth sending: the trial account getting an open opportunity, so self-serve upgrade nudges stop for people a rep is already working, and Closed Won, so onboarding starts on the day the contract is signed rather than when someone remembers.
Match on the product user ID stored on the Contact, not the Contact's email. Reps edit emails, add aliases, or log a work address for someone who signed up with a personal one, and an email mismatch creates a second person in Customer.io. Because a deal belongs to an account, check whether your Customer.io plan includes objects; an Account object carrying deal stage reaches every user of that account at once instead of person by person.
The failure specific to this pair is sandboxes. Full and partial copy sandboxes in Salesforce contain real customer emails, and a flow tested there still calls whatever endpoint it is pointed at. If that is the production workspace, testing the Closed Won flow emails real customers about deals that never happened. Point every sandbox at a separate test workspace through its own named credential, and check this again after each sandbox refresh.
Salesforce → Customer.io · what breaks
Why this join usually fails — Salesforce → Customer.io
- 01
The person identifier you assign never reaches Salesforce
Lead conversion is where identifiers die. A custom field on Lead that has no mapped counterpart on Contact or Opportunity is silently discarded when the Lead converts, and nobody notices until months of data are unattributable.
- 02
The identifier is lost at lead conversion
This one failure explains most broken Salesforce attribution. The data is captured correctly, then thrown away by a mapping nobody configured.
- 03
A test event sending a real email
Because campaigns evaluate on arrival, there is no safe place to test in production. A malformed purchase event fired during development against a live workspace will send a real order confirmation to a real person, and that cannot be recalled.
- 04
Nothing reconciles afterwards
Customer.io shows the event and the resulting campaign activity on the person's timeline. Check what the event triggered, not just that it arrived.
Salesforce → Customer.io · the fix
What working looks like — Salesforce → Customer.io
The person identifier you assign on every opportunity
Conversions arriving in Customer.io
The event lands on the person, evaluates against every campaign trigger and segment condition, and may send immediately.
Reconciled against the source
Salesforce → Customer.io · architecture
How Salesforce and Customer.io actually connect
- 1
Salesforce holds the truth
The opportunity carries the amount, stage and close date. Because Leads convert into Contacts, Accounts and Opportunities, the identifier must be mapped through the conversion or it is dropped exactly at the moment the record becomes valuable.
- 2
Customer.io needs a click to match
Customer.io needs the person identifier, the event name and any attributes the campaign conditions reference. An event whose attributes are missing will still trigger a campaign, which may then send a message with an empty placeholder in it.
- 3
The identifier is the bridge
The person identifier you assign, captured at the visit and carried into the Salesforce Lead or Opportunity.
- 4
The event source decides reliability
Fire on the transition into Closed Won, carrying the amount and the identifier. Note that Salesforce's own advertising integrations vary in what they support — build on the record, not on a connector that might change.
- 5
Deduplication at the destination
Customer.io does not deduplicate events. A purchase sent twice can enter a workflow twice and send two emails, and unlike a reporting duplicate the customer sees this one.
Salesforce → Customer.io · normal or broken
Working vs. broken, side by side — Salesforce → Customer.io
Normal, not a fault
The person identifier you assign present on the opportunity
Sent from a Salesforce flow, Apex trigger or scheduled export on StageName change
Deduplicated correctly
Customer.io does not deduplicate events. A purchase sent twice can enter a workflow twice and send two emails, and unlike a reporting duplicate the customer sees this one.
Reconciles with the source
Actually broken
The person identifier you assign missing on most records
Lead conversion is where identifiers die. A custom field on Lead that has no mapped counterpart on Contact or Opportunity is silently discarded when the Lead converts, and nobody notices until months of data are unattributable.
Sent from the browser
This one failure explains most broken Salesforce attribution. The data is captured correctly, then thrown away by a mapping nobody configured.
Counted twice, or not at all
Because campaigns evaluate on arrival, there is no safe place to test in production. A malformed purchase event fired during development against a live workspace will send a real order confirmation to a real person, and that cannot be recalled.
Nobody has reconciled it
Salesforce → Customer.io · diagnose
Diagnostic order — Salesforce → Customer.io
- 01
Count opportunitys carrying the person identifier you assign
- 02
Follow one real conversion end to end
- 03
Convert a test Lead and inspect the resulting Opportunity
If the identifier is not on the Opportunity, the field mapping is missing. This takes five minutes and rules out the most likely cause outright.
- 04
Confirm which workspace you are writing to before sending anything
Environment separation is the whole safety mechanism in behaviour-triggered tools, and it is the thing most often skipped.
- 05
Read the match rate, not the success message
Customer.io shows the event and the resulting campaign activity on the person's timeline. Check what the event triggered, not just that it arrived.
Salesforce → Customer.io · prove
How it gets proven — Salesforce → Customer.io
Source of truth
A Salesforce report of Closed Won opportunities for the same window, by close date.
- The person identifier you assign confirmed present on a live opportunity.
- Events confirmed on person profiles with the triggered campaign activity verified, in a test workspace before production.
- A test lead converted end to end with the identifier confirmed present on the resulting opportunity.
Salesforce → Customer.io · free audit
What we check in the free audit
- Count opportunitys carrying the person identifier you assign
- Follow one real conversion end to end
- Convert a test Lead and inspect the resulting Opportunity
- Confirm which workspace you are writing to before sending anything
- Read the match rate, not the success message
Checked against
A Salesforce report of Closed Won opportunities for the same window, by close date.
Free30 minutesNo obligation
Salesforce → Customer.io · when not to buy
When you don't need this — Salesforce → Customer.io
- Measure identifier coverage yourself first — pull your last hundred opportunitys and count how many carry the person identifier you assign.
- If your Salesforce instance is heavily customized and administered by another team, scope their availability before commissioning this — the build is usually blocked on admin access rather than on the tracking work.
- If your messaging is scheduled rather than behavioural, a simpler email platform does the job and removes the whole class of accidental-send risk.
Salesforce → Customer.io · what we deliver
What gets built — Salesforce → Customer.io
Identifier capture into Salesforce
Custom field on Lead, matching custom field on Contact and Opportunity, and the field mapping configured so conversion carries it across. Verify by converting a test lead and reading the resulting opportunity.
Event source: a Salesforce flow, Apex trigger or scheduled export on StageName change
Fire on the transition into Closed Won, carrying the amount and the identifier. Note that Salesforce's own advertising integrations vary in what they support — build on the record, not on a connector that might change.
Dispatch to Customer.io
The Customer.io Track API, posted server-side from your order or product system with the person identifier and event attributes.
Reversals where they exist
An opportunity moved back out of Closed Won can be retracted, and enterprise pipelines do this often enough to be worth wiring.
Written guarantee
95%+ tracking accuracy
Measured against A Salesforce report of Closed Won opportunities for the same window, by close date.. Miss it and we keep working at no cost.
From $400 · See packages
FAQ
Salesforce → Customer.io questions, answered
Send an event or attribute when the account gets an open opportunity, and use it as an exit or filter condition on the trial campaigns. Match on your product user ID stored on the Contact.
Yes, if its flows point at your production workspace, because copy sandboxes hold real customer emails. Give each sandbox its own credentials to a test workspace.
Almost always because the person identifier you assign never reached the Salesforce Lead or Opportunity. Lead conversion is where identifiers die. A custom field on Lead that has no mapped counterpart on Contact or Opportunity is silently discarded when the Lead converts, and nobody notices until months of data are unattributable. Measure coverage before debugging the dispatch.
Customer.io identifies people by an ID you control, with email as a common choice. Anonymous events can be sent and later merged, but a mismatch creates a second profile — and a second profile means a second copy of every campaign that person is enrolled in.
A Salesforce flow, Apex trigger or scheduled export on StageName change. Fire on the transition into Closed Won, carrying the amount and the identifier. Note that Salesforce's own advertising integrations vary in what they support — build on the record, not on a connector that might change.
Customer.io shows the event and the resulting campaign activity on the person's timeline. Check what the event triggered, not just that it arrived.
More on Salesforce → Customer.io
- Stripe → Customer.ioConnecting Stripe to Customer.io
- PayPal → Customer.ioConnecting PayPal to Customer.io
- Shopify → Customer.ioConnecting Shopify to Customer.io
RELATED GUIDES
Where Salesforce → Customer.io fits in the rest of your tracking
- Insightly → Customer.ioConnecting Insightly to Customer.io
- Zoho → Customer.ioConnecting Zoho CRM to Customer.io
- GoHighLevel → Customer.ioConnecting GoHighLevel to Customer.io
- Salesforce → BrazeConnecting Salesforce to Braze
- Salesforce → Marketing CloudConnecting Salesforce to Salesforce Marketing Cloud
- Law firmsConversion tracking for law firms, without sending case details anywhere
- Copper → Customer.ioConnecting Copper to Customer.io
- Freshsales → Customer.ioConnecting Freshsales to Customer.io
Free · 30 min
Get Salesforce and Customer.io joined properly
Free30 minutesNo obligation
