Connecting CookieYes to Salesforce
CookieYes serves smaller sites that adopted a consent banner because a plugin suggested it, which frequently means the banner is stricter than the business's legal position requires. 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 CookieYes 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
CookieYes consent on the Salesforce Lead, apart from email opt-in
Write the CookieYes categories to their own custom fields on the Salesforce Lead, separate from email opt-in. At form submit, read the consent cookie and store it with the gclid or fbclid and a timestamp, so closed-won upload jobs filter on it. Confirm field-level security allows the write and that the fields map through Lead conversion to Contact and Opportunity.
Salesforce is where CookieYes consent gets confused with marketing consent. The banner records whether a visitor allowed analytics and advertising cookies; a form checkbox records whether they agreed to be emailed. Those are different permissions, and a Lead carrying one must not be read as having the other. Write the CookieYes categories to their own custom fields on the Lead, separate from email opt-in fields.
That matters when Salesforce later feeds ad platforms: closed-won uploads to Google or Meta, or audience syncs out of Salesforce's marketing tools. If a Lead's click identifiers were captured without advertising consent, every downstream upload repeats the problem. The join is the form submission: read the consent cookie at submit, store it with the gclid or fbclid and a consent timestamp, and have the upload job filter on that field.
Two Salesforce-specific checks. First, open a test Lead and confirm the consent fields are actually populated, because field-level security can block a write while the API returns success. Second, confirm the fields map through Lead conversion onto the Contact and Opportunity, or consent disappears exactly when the deal becomes worth uploading. A form that submits before the banner loads produces Leads with blank consent, which should be treated as no consent.
CookieYes → Salesforce · what breaks
Why this join usually fails — CookieYes → Salesforce
- 01
The Lead or Contact identity never reaches CookieYes
Default configurations frequently block before consent, so identifier capture is lost on the first page for every visitor.
- 02
A banner stricter than the law requires
Plugins default to the strictest setting because that is safest for the plugin vendor. For a business whose customers are all in a market with different rules, that default costs a large share of measurable conversions and buys no protection that was needed.
- 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.
CookieYes → Salesforce · the fix
What working looks like — CookieYes → 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
CookieYes → Salesforce · architecture
How CookieYes and Salesforce actually connect
- 1
CookieYes holds the truth
For a small business the practical question is often whether the banner configuration matches the obligation. A default-deny banner in a market with no such requirement is data thrown away for nothing.
- 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 CookieYes consent record.
- 4
The event source decides reliability
Send consented conversions with the consent rate stated.
- 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.
CookieYes → Salesforce · normal or broken
Working vs. broken, side by side — CookieYes → 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
Default configurations frequently block before consent, so identifier capture is lost on the first page for every visitor.
Sent from the browser
Plugins default to the strictest setting because that is safest for the plugin vendor. For a business whose customers are all in a market with different rules, that default costs a large share of measurable conversions and buys no protection that was needed.
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
CookieYes → Salesforce · diagnose
Diagnostic order — CookieYes → Salesforce
- 01
Count consent records carrying the Lead or Contact identity
- 02
Follow one real conversion end to end
- 03
Confirm which regulations actually apply to your customer base
A legal question, not a technical one, and worth answering before accepting a default that costs you a third of your data.
- 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.
CookieYes → Salesforce · prove
How it gets proven — CookieYes → Salesforce
Source of truth
Your order system, with consent state attached to 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 the configuration checked against the obligation.
CookieYes → 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
- Confirm which regulations actually apply to your customer base
- 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 consent state attached to the event.
Free30 minutesNo obligation
CookieYes → Salesforce · when not to buy
When you don't need this — CookieYes → Salesforce
- Measure identifier coverage yourself first — pull your last hundred consent records and count how many carry the Lead or Contact identity.
- This is the common case for small sites: get the legal position confirmed first. The right banner may be considerably lighter than the one installed.
- 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.
CookieYes → Salesforce · what we deliver
What gets built — CookieYes → Salesforce
Identifier capture into CookieYes
Check the default blocking behaviour against your actual legal obligation, then capture accordingly.
Event source: your order system, gated on consent
Send consented conversions with the consent rate stated.
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 stops future sends.
Written guarantee
95%+ tracking accuracy
Measured against Your order system, with consent state attached to the event.. Miss it and we keep working at no cost.
From $400 · See packages
FAQ
CookieYes → Salesforce questions, answered
No. Cookie consent covers tracking technologies on your site; email opt-in covers marketing messages. Store them in separate fields.
Read the consent cookie when the form submits and write each category to a custom field with a timestamp. Check the cookie's format on your own install first.
Almost always because the Lead or Contact identity never reached the CookieYes consent record. Default configurations frequently block before consent, so identifier capture is lost on the first page for every visitor. 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 stated.
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 CookieYes → Salesforce
- CookieYes → Marketing CloudConnecting CookieYes to Salesforce Marketing Cloud
- Salesforce → Google AdsConnecting Salesforce to Google Ads
- Salesforce → MetaConnecting Salesforce to Meta Conversions API
RELATED GUIDES
Where CookieYes → Salesforce fits in the rest of your tracking
- Osano → SalesforceConnecting Osano to Salesforce
- Complianz → SalesforceConnecting Complianz to Salesforce
- Termly → SalesforceConnecting Termly to Salesforce
- CookieYes → 6senseConnecting CookieYes to 6sense
- CookieYes → MarketoConnecting CookieYes to Marketo
- EcommerceConversion tracking for ecommerce brands, measured against your orders
- Usercentrics → SalesforceConnecting Usercentrics to Salesforce
- Cookiebot → SalesforceConnecting Cookiebot to Salesforce
Free · 30 min
Get CookieYes and Salesforce joined properly
Free30 minutesNo obligation
