Connecting Salesforce to HubSpot
Salesforce holds the opportunity, the amount and the close — the only place the actual revenue outcome is recorded. HubSpot is where sales works, so a conversion that never reaches it is invisible to the people who decide what a lead was worth. The join between them succeeds or fails on one thing: whether the contact identity — email, or the hubspotutk cookie reaches the Salesforce Lead or Opportunity before the conversion happens, because HubSpot can only match a conversion it can tie back to a click it recognizes.
Free30 minutesNo obligation
Specific to this pair
Salesforce and HubSpot: click IDs mapped through the connector sync
With both systems running, HubSpot's Salesforce connector field mappings decide attribution. Map click IDs and source properties from the HubSpot contact to the Salesforce Lead, then through conversion to Contact and Opportunity. Decide which system owns stage and amount, set each property's sync rule, and run a test lead from a real paid click through to closed-won.
When both systems run, HubSpot's Salesforce connector usually decides whether attribution works, and nobody reads its field mappings. HubSpot captures original source and click IDs on form submission; Salesforce owns the opportunity and the amount. The click IDs and source properties have to be mapped from the HubSpot contact to the Salesforce Lead, then through Lead conversion to Contact and Opportunity, or the closed-won amount can never be joined back to a campaign.
Decide which system owns lifecycle stage and amount. If Salesforce opportunities sync to HubSpot deals, closed-won in HubSpot should come from Salesforce, not be edited by hand on both sides. Check the connector's sync rule for each property, such as prefer Salesforce unless blank, always use Salesforce or two-way, for amount, close date and stage, and confirm that an opportunity moved back out of Closed Won updates the deal too.
The break peculiar to this pair: a Lead created directly in Salesforce, by a rep, a list import or web-to-lead, syncs into HubSpot with no hubspotutk, so original source becomes Offline Sources, or the same person gets a second contact because the email was typed differently. Run one test lead from a real paid click, convert it in Salesforce, close the opportunity, and check that the HubSpot deal shows the amount and the contact still shows the paid source.
Salesforce → HubSpot · what breaks
Why this join usually fails — Salesforce → HubSpot
- 01
The contact identity — email, or the hubspotutk cookie 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
Duplicate contacts
Two records for one person, each with half the history. Every downstream report is then wrong in a way that looks like a data problem rather than an integration problem.
- 04
Nothing reconciles afterwards
HubSpot shows the contact record and its timeline. A successful API response means HubSpot accepted the call, not that it resolved to the right contact — open the record and look.
Salesforce → HubSpot · the fix
What working looks like — Salesforce → HubSpot
The contact identity — email, or the hubspotutk cookie on every opportunity
Conversions arriving in HubSpot
The revenue or conversion lands on the contact record and its associated deal, where sales can see it and where HubSpot's own attribution reporting can use it.
Reconciled against the source
Salesforce → HubSpot · architecture
How Salesforce and HubSpot 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
HubSpot needs a click to match
HubSpot needs to resolve the incoming data to an existing contact or create one. Without an email or a hubspotutk it creates duplicates, and duplicate contacts break every report built on top of them.
- 3
The identifier is the bridge
The contact identity — email, or the hubspotutk cookie, 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
HubSpot deduplicates contacts on email address. Events and property updates against the same contact are idempotent by design, but a second contact created for the same person is not detected, and merging them afterwards is manual work.
Salesforce → HubSpot · normal or broken
Working vs. broken, side by side — Salesforce → HubSpot
Normal, not a fault
The contact identity — email, or the hubspotutk cookie present on the opportunity
Sent from a Salesforce flow, Apex trigger or scheduled export on StageName change
Deduplicated correctly
HubSpot deduplicates contacts on email address. Events and property updates against the same contact are idempotent by design, but a second contact created for the same person is not detected, and merging them afterwards is manual work.
Reconciles with the source
Actually broken
The contact identity — email, or the hubspotutk cookie 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
Two records for one person, each with half the history. Every downstream report is then wrong in a way that looks like a data problem rather than an integration problem.
Nobody has reconciled it
Salesforce → HubSpot · diagnose
Diagnostic order — Salesforce → HubSpot
- 01
Count opportunitys carrying the contact identity — email, or the hubspotutk cookie
- 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
Search for the test contact by email after sending
One record or two? Then check whether the properties landed on the contact or only on the form submission — they are different things and only the first is usable.
- 05
Read the match rate, not the success message
HubSpot shows the contact record and its timeline. A successful API response means HubSpot accepted the call, not that it resolved to the right contact — open the record and look.
Salesforce → HubSpot · prove
How it gets proven — Salesforce → HubSpot
Source of truth
A Salesforce report of Closed Won opportunities for the same window, by close date.
- The contact identity — email, or the hubspotutk cookie confirmed present on a live opportunity.
- One contact record confirmed, not two, with the property visible on the contact rather than only on the submission.
- A test lead converted end to end with the identifier confirmed present on the resulting opportunity.
Salesforce → HubSpot · free audit
What we check in the free audit
- Count opportunitys carrying the contact identity — email, or the hubspotutk cookie
- Follow one real conversion end to end
- Convert a test Lead and inspect the resulting Opportunity
- Search for the test contact by email after sending
- 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 → HubSpot · when not to buy
When you don't need this — Salesforce → HubSpot
- Measure identifier coverage yourself first — pull your last hundred opportunitys and count how many carry the contact identity — email, or the hubspotutk cookie.
- 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.
- HubSpot's native form and tracking code already handle the straightforward cases well. This is worth building when the conversion happens somewhere HubSpot's code cannot see.
Salesforce → HubSpot · what we deliver
What gets built — Salesforce → HubSpot
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 HubSpot
The HubSpot API — contact create-or-update with the properties, or a custom behavioral event where you need the timeline entry rather than a property.
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 → HubSpot questions, answered
The Lead was created in Salesforce or synced without a HubSpot cookie, so HubSpot never saw the visit before it. Capture forms through HubSpot or pass the hubspotutk.
Only if the custom fields exist on Lead, Contact and Opportunity and the lead field mapping is configured. Test by converting a lead.
Almost always because the contact identity — email, or the hubspotutk cookie 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.
HubSpot resolves to a contact by email address, or by the hubspotutk cookie value which ties an anonymous visitor to their eventual contact record. Sending the hubspotutk with a form submission is what lets HubSpot stitch the pre-conversion page views to the contact, which is where the original source attribution comes from.
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.
HubSpot shows the contact record and its timeline. A successful API response means HubSpot accepted the call, not that it resolved to the right contact — open the record and look.
More on Salesforce → HubSpot
- HubSpot → SalesforceConnecting HubSpot to Salesforce
- HubSpot → Marketing CloudConnecting HubSpot to Salesforce Marketing Cloud
- Stripe → HubSpotConnecting Stripe to HubSpot
RELATED GUIDES
Where Salesforce → HubSpot fits in the rest of your tracking
- HubSpot → SalesforceConnecting HubSpot to Salesforce
- Freshsales → HubSpotConnecting Freshsales to HubSpot
- Zoho → HubSpotConnecting Zoho CRM to HubSpot
- Zendesk Sell → HubSpotConnecting Zendesk Sell to HubSpot
- Salesforce → 6senseConnecting Salesforce to 6sense
- Law firmsConversion tracking for law firms, without sending case details anywhere
- Zoho Books → HubSpotConnecting Zoho Books to HubSpot
- Keap → HubSpotConnecting Keap to HubSpot
Free · 30 min
Get Salesforce and HubSpot joined properly
Free30 minutesNo obligation
