Connecting OneTrust to Salesforce
OneTrust sits upstream of every tag on the site, which makes it the single system most able to change your conversion volume overnight without anybody touching a tag. 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 OneTrust consent record 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
OneTrust consent written onto Salesforce leads and contacts
Write the visitor's OneTrust advertising choice, GPC presence and timestamp to Lead fields, or Salesforce's Individual and contact point consent objects, at form submission. Map that field from Lead to Contact and Opportunity, use cookie or advertising consent rather than newsletter consent, and filter every offline gclid upload on it, with withdrawals reaching the record before the next upload.
Salesforce is where consent and conversions meet the person. A Lead created from a web form should carry the visitor's OneTrust choice at the time of submission, because later offline-conversion uploads to Google Ads or Meta read from that record. Write the consent state (advertising granted or not, GPC present, timestamp) to fields on the Lead, or to Salesforce's consent data model, the Individual and contact point consent objects, if your org already uses it.
Check whether OneTrust's own CRM integration fits your setup, since OneTrust sells preference and consent management that can sync to records. Note that cookie-banner consent and email marketing consent are different things in OneTrust and often live in different modules. The field that gates ad uploads must come from the cookie or advertising choice, not from the newsletter checkbox.
The usual failure: a sales-ops job uploads Closed Won opportunities with gclids to Google Ads every night and never looks at consent, because consent lives in OneTrust and the upload lives in Salesforce. Map the consent field from Lead to Contact and Opportunity on conversion, add it to the upload query's filter, and treat a withdrawal in OneTrust as an update that must reach the record before the next upload.
OneTrust → Salesforce · what breaks
Why this join usually fails — OneTrust → Salesforce
- 01
The Lead or Contact identity never reaches OneTrust
The identifier can only be captured after consent is given, so a visitor who consents on the second page has already lost the parameter from the first.
- 02
A governance change that looks like broken tracking
A privacy team tightens a banner on a Tuesday and a fifth of conversions disappear. The marketing team spends a week debugging tags that are working exactly as configured, because nobody connects the two systems.
- 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.
OneTrust → Salesforce · the fix
What working looks like — OneTrust → Salesforce
The Lead or Contact identity on every consent record
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
OneTrust → Salesforce · architecture
How OneTrust and Salesforce actually connect
- 1
OneTrust holds the truth
Consent is not a tracking detail, it is the gate. A conversion from a visitor who declined cannot lawfully be sent to an ad platform, and the share who decline is the ceiling on everything you report.
- 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 OneTrust consent record.
- 4
The event source decides reliability
Send only conversions where consent for advertising purposes was actually granted, and report the unconsented share as a stated number rather than a gap.
- 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.
OneTrust → Salesforce · normal or broken
Working vs. broken, side by side — OneTrust → Salesforce
Normal, not a fault
The Lead or Contact identity present on the consent record
Sent from your order system, gated on the consent record
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
The identifier can only be captured after consent is given, so a visitor who consents on the second page has already lost the parameter from the first.
Sent from the browser
A privacy team tightens a banner on a Tuesday and a fifth of conversions disappear. The marketing team spends a week debugging tags that are working exactly as configured, because nobody connects the two systems.
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
OneTrust → Salesforce · diagnose
Diagnostic order — OneTrust → Salesforce
- 01
Count consent records carrying the Lead or Contact identity
- 02
Follow one real conversion end to end
- 03
Correlate conversion drops against the consent change log first
Before touching a tag. In governed environments this explains the drop more often than any technical fault does.
- 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.
OneTrust → Salesforce · prove
How it gets proven — OneTrust → Salesforce
Source of truth
Your order or CRM system, with the consent state at the time of the event recorded alongside.
- The Lead or Contact identity confirmed present on a live consent record.
- A test value confirmed present on the record in the UI, and confirmed to survive Lead conversion.
- Consented conversions reconciled against imported figures, with the consent rate stated explicitly in the report.
OneTrust → Salesforce · free audit
What we check in the free audit
- Count consent records carrying the Lead or Contact identity
- Follow one real conversion end to end
- Correlate conversion drops against the consent change log first
- Write a test value and open the record in the UI
- Read the match rate, not the success message
Checked against
Your order or CRM system, with the consent state at the time of the event recorded alongside.
Free30 minutesNo obligation
OneTrust → Salesforce · when not to buy
When you don't need this — OneTrust → Salesforce
- Measure identifier coverage yourself first — pull your last hundred consent records and count how many carry the Lead or Contact identity.
- If your consent rate is very low, improving the banner experience will do more for your reporting than any tracking build — and that is a design and legal conversation, not a tagging one.
- 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.
OneTrust → Salesforce · what we deliver
What gets built — OneTrust → Salesforce
Identifier capture into OneTrust
Capture into a pending buffer on landing and only persist and dispatch once consent is recorded — never the reverse, and never 'capture now, ask later'.
Event source: your order system, gated on the consent record
Send only conversions where consent for advertising purposes was actually granted, and report the unconsented share as a stated number rather than a gap.
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
Withdrawal of consent should stop future sends and, where the platform supports it, trigger a deletion request.
Written guarantee
95%+ tracking accuracy
Measured against Your order or CRM system, with the consent state at the time of the event recorded alongside.. Miss it and we keep working at no cost.
From $400 · See packages
FAQ
OneTrust → Salesforce questions, answered
Write the consent state captured at form submission onto the Lead, or use OneTrust's CRM integration if your plan includes it. Confirm which OneTrust module holds the advertising choice versus email preferences.
They should respect the advertising choice the person made, so filter uploads on a consent field stored on the record. Without it, opted-out customers reach ad platforms through the CRM.
Almost always because the Lead or Contact identity never reached the OneTrust consent record. The identifier can only be captured after consent is given, so a visitor who consents on the second page has already lost the parameter from the first. 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.
Your order system, gated on the consent record. Send only conversions where consent for advertising purposes was actually granted, and report the unconsented share as a stated number rather than a gap.
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 OneTrust → Salesforce
- OneTrust → Marketing CloudConnecting OneTrust to Salesforce Marketing Cloud
- Salesforce → Google AdsConnecting Salesforce to Google Ads
- Salesforce → MetaConnecting Salesforce to Meta Conversions API
RELATED GUIDES
Where OneTrust → Salesforce fits in the rest of your tracking
- Termly → SalesforceConnecting Termly to Salesforce
- Usercentrics → SalesforceConnecting Usercentrics to Salesforce
- Complianz → SalesforceConnecting Complianz to Salesforce
- OneTrust → MarketoConnecting OneTrust to Marketo
- OneTrust → HubSpotConnecting OneTrust to HubSpot
- EcommerceConversion tracking for ecommerce brands, measured against your orders
- CookieYes → SalesforceConnecting CookieYes to Salesforce
- iubenda → SalesforceConnecting iubenda to Salesforce
Free · 30 min
Get OneTrust and Salesforce joined properly
Free30 minutesNo obligation
