Connecting Cookiebot to Salesforce
Cookiebot scans your site and blocks scripts automatically by category, which means it can stop a tag you rely on without anybody deciding to. 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 Cookiebot consent state 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
Cookiebot consent on Salesforce Leads: what sales may use
On Salesforce Leads, store the Cookiebot categories at form submission, the consent ID, and click identifiers only when marketing was granted, in custom fields or Salesforce's consent objects, never as permission to contact. Check field-level security for the integration user, and filter closed-won uploads to ad platforms on the stored marketing state.
In Salesforce the consent question changes shape. Cookiebot records what a browser allowed for cookies; Salesforce holds a person who may be emailed, called and pushed into ad audiences. Those are different permissions, and copying the banner choice into a Lead field labeled marketing consent invites sales to treat cookie consent as permission to contact, which it is not.
What belongs on the Lead is narrower: the Cookiebot categories at the time the form was submitted, the consent ID if you record it, and the click identifiers only when marketing was granted. Write them to custom fields from the form handler, and check that field-level security lets your integration user write them, since a silent rejection leaves the Lead looking unconsented. If your org already uses Salesforce's Individual and consent objects, map to those instead of inventing parallel fields.
The value shows up when closed-won opportunities are sent back to ad platforms. That upload should filter on the stored marketing state, so a deal that began with a visitor who declined marketing is not matched back to an ad click months later. Cookiebot only covers the web visit; consent captured on calls or at events comes from elsewhere and should never overwrite the web record.
Cookiebot → Salesforce · what breaks
Why this join usually fails — Cookiebot → Salesforce
- 01
The Lead or Contact identity never reaches Cookiebot
Scripts are blocked before execution, so an identifier-capture script placed in a blocked category never runs at all.
- 02
Automatic classification blocking the wrong script
The scanner decides what each script is. It gets things wrong, and a first-party capture script filed under marketing will be blocked for every visitor who declines marketing — including many who would have accepted what it actually does.
- 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.
Cookiebot → Salesforce · the fix
What working looks like — Cookiebot → 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
Cookiebot → Salesforce · architecture
How Cookiebot and Salesforce actually connect
- 1
Cookiebot holds the truth
Automatic blocking classifies scripts by scanning. A misclassified tag gets blocked for visitors who would have consented, and the loss is invisible because everything looks configured correctly.
- 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 Cookiebot consent state.
- 4
The event source decides reliability
Send consented conversions, with the consent rate and the blocked-category mix reported alongside.
- 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.
Cookiebot → Salesforce · normal or broken
Working vs. broken, side by side — Cookiebot → Salesforce
Normal, not a fault
The Lead or Contact identity present on the consent record
Sent from your order system, gated on consent
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
Scripts are blocked before execution, so an identifier-capture script placed in a blocked category never runs at all.
Sent from the browser
The scanner decides what each script is. It gets things wrong, and a first-party capture script filed under marketing will be blocked for every visitor who declines marketing — including many who would have accepted what it actually does.
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
Cookiebot → Salesforce · diagnose
Diagnostic order — Cookiebot → Salesforce
- 01
Count consent records carrying the Lead or Contact identity
- 02
Follow one real conversion end to end
- 03
Read the scan results and check how each of your scripts was classified
This takes ten minutes and it is the first thing to check when conversions drop after a CMP deployment.
- 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.
Cookiebot → Salesforce · prove
How it gets proven — Cookiebot → Salesforce
Source of truth
Your order system, with the visitor's consent categories recorded at the time of the event.
- 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 script classifications verified against what they collect.
Cookiebot → 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
- Read the scan results and check how each of your scripts was classified
- Write a test value and open the record in the UI
- Read the match rate, not the success message
Checked against
Your order system, with the visitor's consent categories recorded at the time of the event.
Free30 minutesNo obligation
Cookiebot → Salesforce · when not to buy
When you don't need this — Cookiebot → Salesforce
- Measure identifier coverage yourself first — pull your last hundred consent records and count how many carry the Lead or Contact identity.
- If you have no legal requirement for consent in your markets, adding automatic blocking will cost you data for no compliance benefit.
- 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.
Cookiebot → Salesforce · what we deliver
What gets built — Cookiebot → Salesforce
Identifier capture into Cookiebot
Verify which category your capture script is classified into, and keep capture in a category that matches what you actually collect.
Event source: your order system, gated on consent
Send consented conversions, with the consent rate and the blocked-category mix reported alongside.
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
Consent withdrawal stops future sends.
Written guarantee
95%+ tracking accuracy
Measured against Your order system, with the visitor's consent categories recorded at the time of the event.. Miss it and we keep working at no cost.
From $400 · See packages
FAQ
Cookiebot → Salesforce questions, answered
Yes, as custom fields written by the form handler when the Lead is created: categories, timestamp and consent ID. Keep it separate from email or call permissions, which are different consents.
Yes. Filter offline conversion uploads on the marketing consent stored on the Lead, so visitors who declined are not matched back to ad clicks.
Almost always because the Lead or Contact identity never reached the Cookiebot consent state. Scripts are blocked before execution, so an identifier-capture script placed in a blocked category never runs at all. 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 consent. Send consented conversions, with the consent rate and the blocked-category mix reported alongside.
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 Cookiebot → Salesforce
- Cookiebot → Marketing CloudConnecting Cookiebot to Salesforce Marketing Cloud
- Salesforce → Google AdsConnecting Salesforce to Google Ads
- Salesforce → MetaConnecting Salesforce to Meta Conversions API
RELATED GUIDES
Where Cookiebot → Salesforce fits in the rest of your tracking
- Termly → SalesforceConnecting Termly to Salesforce
- Usercentrics → SalesforceConnecting Usercentrics to Salesforce
- iubenda → SalesforceConnecting iubenda to Salesforce
- Cookiebot → HubSpotConnecting Cookiebot to HubSpot
- Cookiebot → MarketoConnecting Cookiebot to Marketo
- EcommerceConversion tracking for ecommerce brands, measured against your orders
- Osano → SalesforceConnecting Osano to Salesforce
- OneTrust → SalesforceConnecting OneTrust to Salesforce
Free · 30 min
Get Cookiebot and Salesforce joined properly
Free30 minutesNo obligation
