Connecting RudderStack to Salesforce
RudderStack routes events from your applications to every downstream tool, which makes it the single point where a naming mistake propagates simultaneously to every ad platform you run. Sending conversions into Salesforce rather than out of it is how marketing data reaches the place sales actually works. The join between them succeeds or fails on one thing: whether the Lead or Contact identity reaches the RudderStack event before the conversion happens, because Salesforce can only match a conversion it can tie back to a click it recognizes.
Free30 minutesNo obligation
Specific to this pair
RudderStack to Salesforce: identify calls that create real Leads
RudderStack's Salesforce destination creates or updates Leads from identify traits, so trait names must map to Salesforce field API names, with click IDs and UTMs landing in custom __c Lead fields. Identify only once there is a real lead with a stable userId, to avoid duplicates. Confirm fields populate, then send closed-won opportunities back as offline conversions.
RudderStack's Salesforce destination works mainly from identify calls, creating or updating Leads from traits; check the current docs for whether your version can target Contacts or custom objects as well. That makes trait names the contract: a trait has to map to a Salesforce field API name, and custom fields end in __c. Click identifiers and UTM values travel as traits and land in custom Lead fields you create first.
The trap is calling identify too early. An identify on a newsletter signup creates a Lead; a second identify with a different email from the same person creates another. Salesforce matching rules vary by org, and duplicate Leads with half the click history each are the standard result. Identify only when there's a real lead, with a stable userId, and decide which system owns the Lead record.
Salesforce can reject a write through field-level security or a validation rule while the call appears to succeed. Check RudderStack's event delivery status for the destination, then open the Lead in Salesforce and confirm the click ID field is populated. Revenue then comes back the other way: closed-won opportunities carrying the original click IDs, ready for offline conversion imports to the ad platforms.
RudderStack → Salesforce · what breaks
Why this join usually fails — RudderStack → Salesforce
- 01
The Lead or Contact identity never reaches RudderStack
Client-side sources lose identifiers to blocking and short cookie lifetimes; server-side sources have no browser context and must be handed the identifier explicitly by the application.
- 02
One schema change, every destination wrong at once
Centralization is the point and the risk. Rename an event property in one place and every ad platform, warehouse table and email tool receives the new shape on the same afternoon.
- 03
Writes that succeed and change nothing
Field-level security, validation rules and required-field constraints can reject a write while the API reports success. Open the record and look rather than trusting the response.
- 04
Nothing reconciles afterwards
Check the record in Salesforce itself, not the API response. Then confirm the value survives Lead conversion onto the Contact, Account and Opportunity — the mapping is separate and is usually the thing that was missed.
RudderStack → Salesforce · the fix
What working looks like — RudderStack → Salesforce
The Lead or Contact identity on every event
Conversions arriving in Salesforce
The marketing context appears on the record and flows into the opportunity, where sales and reporting can both use it.
Reconciled against the source
RudderStack → Salesforce · architecture
How RudderStack and Salesforce actually connect
- 1
RudderStack holds the truth
The warehouse copy is what makes a pipeline like this auditable. You can ask what was actually sent, rather than inferring it from what each destination decided to display.
- 2
Salesforce needs a click to match
Salesforce needs a resolvable record and a custom field to write to. Field-level security and validation rules can silently reject writes, which is a Salesforce-specific failure that returns success at the API level and changes nothing.
- 3
The identifier is the bridge
The Lead or Contact identity, captured at the visit and carried into the RudderStack event.
- 4
The event source decides reliability
Send from your backend once the transaction is settled. A pipeline that only forwards browser events inherits every browser event's problems and adds a hop.
- 5
Deduplication at the destination
Salesforce deduplicates according to whatever matching rules your org has configured, which vary enormously between instances. Duplicate Leads are the standard failure and merging them afterwards is manual work.
RudderStack → Salesforce · normal or broken
Working vs. broken, side by side — RudderStack → Salesforce
Normal, not a fault
The Lead or Contact identity present on the event
Sent from the RudderStack server-side source
Deduplicated correctly
Salesforce deduplicates according to whatever matching rules your org has configured, which vary enormously between instances. Duplicate Leads are the standard failure and merging them afterwards is manual work.
Reconciles with the source
Actually broken
The Lead or Contact identity missing on most records
Client-side sources lose identifiers to blocking and short cookie lifetimes; server-side sources have no browser context and must be handed the identifier explicitly by the application.
Sent from the browser
Centralization is the point and the risk. Rename an event property in one place and every ad platform, warehouse table and email tool receives the new shape on the same afternoon.
Counted twice, or not at all
Field-level security, validation rules and required-field constraints can reject a write while the API reports success. Open the record and look rather than trusting the response.
Nobody has reconciled it
RudderStack → Salesforce · diagnose
Diagnostic order — RudderStack → Salesforce
- 01
Count events carrying the Lead or Contact identity
- 02
Follow one real conversion end to end
- 03
Compare warehouse event counts against each destination's reported counts
Divergence localizes the fault immediately — to a transformation, to a filter, or to the destination's own deduplication.
- 04
Write a test value and open the record in the UI
The API saying it worked and the field actually holding the value are different things in Salesforce more than anywhere else.
- 05
Read the match rate, not the success message
Check the record in Salesforce itself, not the API response. Then confirm the value survives Lead conversion onto the Contact, Account and Opportunity — the mapping is separate and is usually the thing that was missed.
RudderStack → Salesforce · prove
How it gets proven — RudderStack → Salesforce
Source of truth
Your warehouse tables, which RudderStack writes to alongside the ad platforms — the same events, landing somewhere you can query them.
- The Lead or Contact identity confirmed present on a live event.
- A test value confirmed present on the record in the UI, and confirmed to survive Lead conversion.
- Warehouse purchase counts reconciled against each destination's received count for a closed window.
RudderStack → Salesforce · free audit
What we check in the free audit
- Count events carrying the Lead or Contact identity
- Follow one real conversion end to end
- Compare warehouse event counts against each destination's reported counts
- Write a test value and open the record in the UI
- Read the match rate, not the success message
Checked against
Your warehouse tables, which RudderStack writes to alongside the ad platforms — the same events, landing somewhere you can query them.
Free30 minutesNo obligation
RudderStack → Salesforce · when not to buy
When you don't need this — RudderStack → Salesforce
- Measure identifier coverage yourself first — pull your last hundred events and count how many carry the Lead or Contact identity.
- If you have one website and one ad platform, a pipeline is infrastructure you will maintain for a benefit you do not yet have.
- If your Salesforce org is administered by a team you cannot get time with, scope their availability before starting — this build is usually blocked on admin access rather than on the work.
RudderStack → Salesforce · what we deliver
What gets built — RudderStack → Salesforce
Identifier capture into RudderStack
Capture on the web source, persist against the user identity, and attach it to server-side events so a purchase recorded by your backend still knows which click preceded it.
Event source: the RudderStack server-side source
Send from your backend once the transaction is settled. A pipeline that only forwards browser events inherits every browser event's problems and adds a hop.
Dispatch to Salesforce
API writes to the Lead or Contact record, or a platform event, carrying the marketing context as custom field values.
Reversals where they exist
Emit an explicit reversal event on refund and route it to every destination that accepted the original.
Written guarantee
95%+ tracking accuracy
Measured against Your warehouse tables, which RudderStack writes to alongside the ad platforms — the same events, landing somewhere you can query them.. Miss it and we keep working at no cost.
From $400 · See packages
FAQ
RudderStack → Salesforce questions, answered
Trait names need to match Salesforce field API names, including the __c suffix for custom fields. Create the click ID fields in Salesforce first.
Usually identify calls fire on low-intent actions or with changing emails. Identify only on real leads with a stable userId, and check your org's matching rules.
Almost always because the Lead or Contact identity never reached the RudderStack event. Client-side sources lose identifiers to blocking and short cookie lifetimes; server-side sources have no browser context and must be handed the identifier explicitly by the application. Measure coverage before debugging the dispatch.
Salesforce resolves on its own record identity — a Lead, a Contact, or an Account — rather than on a click identifier. What you are doing here is attaching marketing context to a record so the pipeline carries it, which means the click identifier arrives as a custom field value rather than as a matching key. The hazard is duplicates: two Leads for one person means two records with half the history each.
The RudderStack server-side source. Send from your backend once the transaction is settled. A pipeline that only forwards browser events inherits every browser event's problems and adds a hop.
Check the record in Salesforce itself, not the API response. Then confirm the value survives Lead conversion onto the Contact, Account and Opportunity — the mapping is separate and is usually the thing that was missed.
More on RudderStack → Salesforce
- RudderStack → Marketing CloudConnecting RudderStack to Salesforce Marketing Cloud
- Salesforce → Google AdsConnecting Salesforce to Google Ads
- Salesforce → MetaConnecting Salesforce to Meta Conversions API
RELATED GUIDES
Where RudderStack → Salesforce fits in the rest of your tracking
- VWO → SalesforceConnecting VWO to Salesforce
- Dynamic Yield → SalesforceConnecting Dynamic Yield to Salesforce
- Optimizely → SalesforceConnecting Optimizely to Salesforce
- RudderStack → 6senseConnecting RudderStack to 6sense
- RudderStack → HubSpotConnecting RudderStack to HubSpot
- B2BConversion tracking for B2B, from first touch to closed-won
- Tealium → SalesforceConnecting Tealium to Salesforce
- mParticle → SalesforceConnecting mParticle to Salesforce
Free · 30 min
Get RudderStack and Salesforce joined properly
Free30 minutesNo obligation
