Connecting Contentful to Salesforce
Contentful is headless content only — it has no checkout, no orders and no customers, which is the single most important thing to establish before anyone quotes for work. 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 front-end conversion, not a Contentful 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
Contentful forms into Salesforce: keep leads out of the CMS
For Contentful forms, create or update Salesforce Leads from the front end's API route, writing persisted click IDs, UTMs and the landing entry ID into custom fields carried through Lead conversion to the Opportunity. Never store submissions as Contentful entries. Send closed-won stages to ad platforms from Salesforce, and check that every editor-built form keeps the hidden fields.
On a Contentful site, the form is usually modeled as content (labels, field order, a thank-you message) while submission is handled by the front end's API route. That route is where Salesforce enters, and it is the right place: it can read the click identifiers and UTM values the front end persisted, create or update the Lead through the API, and write them into custom fields. Web-to-Lead is simpler but runs from the browser and gives you less control over deduplication.
The anti-pattern specific to this pair is storing form submissions as Contentful entries, often done because the CMS was the only writable system the agency had. It puts personal data into a content repository that editors, previews and every API key can read, and it leaves Salesforce populated by a later batch job with no matching rules applied. If you find a "Submission" content type, migrate it.
Salesforce's value here is offline timing. The landing page in Contentful produced the Lead; the Opportunity closes weeks later. Map the click IDs and the landing entry ID onto the Lead, confirm they carry through Lead conversion to the Opportunity, and send closed-won stages to ad platforms from Salesforce, not from the front end. Check which form variants editors can create, because a new form built from the content model without the hidden fields writes Leads with no source.
Contentful → Salesforce · what breaks
Why this join usually fails — Contentful → Salesforce
- 01
The Lead or Contact identity never reaches Contentful
Because Contentful is headless, the front end is a separate application — usually Next.js, Nuxt or similar — and that application is where client-side routing, caching and identifier capture all actually happen. Attributing a tracking problem to Contentful is nearly always a misdiagnosis.
- 02
Blaming the CMS for a front-end problem
Headless setups fail at the front end — client-side routing that fires one pageview per session, an identifier lost on a route change — and the CMS gets blamed. Contentful is not in that path at all.
- 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.
Contentful → Salesforce · the fix
What working looks like — Contentful → Salesforce
The Lead or Contact identity on every conversion
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
Contentful → Salesforce · architecture
How Contentful and Salesforce actually connect
- 1
Contentful holds the truth
Contentful stores content and serves it via API. The commercial record lives in your commerce platform, your CRM or your billing system, and that is where measurement belongs.
- 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 front-end conversion, not a Contentful record.
- 4
The event source decides reliability
Send from the system that holds the money. Contentful contributes the content layer and nothing to the conversion.
- 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.
Contentful → Salesforce · normal or broken
Working vs. broken, side by side — Contentful → Salesforce
Normal, not a fault
The Lead or Contact identity present on the conversion
Sent from your commerce, CRM or billing system
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
Because Contentful is headless, the front end is a separate application — usually Next.js, Nuxt or similar — and that application is where client-side routing, caching and identifier capture all actually happen. Attributing a tracking problem to Contentful is nearly always a misdiagnosis.
Sent from the browser
Headless setups fail at the front end — client-side routing that fires one pageview per session, an identifier lost on a route change — and the CMS gets blamed. Contentful is not in that path at all.
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
Contentful → Salesforce · diagnose
Diagnostic order — Contentful → Salesforce
- 01
Count conversions carrying the Lead or Contact identity
- 02
Follow one real conversion end to end
- 03
Establish which system holds the conversion before anything else
In a headless stack it is never the CMS, and starting there wastes the engagement.
- 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.
Contentful → Salesforce · prove
How it gets proven — Contentful → Salesforce
Source of truth
Whatever system takes the money — Contentful holds none of it.
- The Lead or Contact identity confirmed present on a live conversion.
- A test value confirmed present on the record in the UI, and confirmed to survive Lead conversion.
- The conversion confirmed sourced from the commerce or CRM system rather than from anything in the content layer.
Contentful → Salesforce · free audit
What we check in the free audit
- Count conversions carrying the Lead or Contact identity
- Follow one real conversion end to end
- Establish which system holds the conversion before anything else
- Write a test value and open the record in the UI
- Read the match rate, not the success message
Checked against
Whatever system takes the money — Contentful holds none of it.
Free30 minutesNo obligation
Contentful → Salesforce · when not to buy
When you don't need this — Contentful → Salesforce
- Measure identifier coverage yourself first — pull your last hundred conversions and count how many carry the Lead or Contact identity.
- There is no Contentful-specific tracking build. The work is in your front-end framework and your commerce system, and we would say so rather than bill for the CMS.
- 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.
Contentful → Salesforce · what we deliver
What gets built — Contentful → Salesforce
Identifier capture into Contentful
Capture and persist the identifier in the front-end application, server-side, and carry it into whichever system records the conversion.
Event source: your commerce, CRM or billing system
Send from the system that holds the money. Contentful contributes the content layer and nothing to the conversion.
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
Handled wherever the money lives.
Written guarantee
95%+ tracking accuracy
Measured against Whatever system takes the money — Contentful holds none of it.. Miss it and we keep working at no cost.
From $400 · See packages
FAQ
Contentful → Salesforce questions, answered
Handle the submit in your front end's server route and create the Lead through the Salesforce API with click IDs and UTMs in custom fields. Contentful should define the form, not store what people type into it.
Usually a form variant built by editors without the hidden attribution fields, or a route that drops the query string. Check each form template that submits to Salesforce.
Almost always because the Lead or Contact identity never reached the front-end conversion, not a Contentful record. Because Contentful is headless, the front end is a separate application — usually Next.js, Nuxt or similar — and that application is where client-side routing, caching and identifier capture all actually happen. Attributing a tracking problem to Contentful is nearly always a misdiagnosis. 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 commerce, CRM or billing system. Send from the system that holds the money. Contentful contributes the content layer and nothing to the conversion.
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 Contentful → Salesforce
- Contentful → Marketing CloudConnecting Contentful to Salesforce Marketing Cloud
- Salesforce → Google AdsConnecting Salesforce to Google Ads
- Salesforce → MetaConnecting Salesforce to Meta Conversions API
RELATED GUIDES
Where Contentful → Salesforce fits in the rest of your tracking
- Statamic → SalesforceConnecting Statamic to Salesforce
- Duda → SalesforceConnecting Duda to Salesforce
- Sitecore → SalesforceConnecting Sitecore to Salesforce
- Contentful → MarketoConnecting Contentful to Marketo
- Contentful → HubSpotConnecting Contentful to HubSpot
- Local servicesConversion tracking for local businesses, where most conversions bypass the website
- Umbraco → SalesforceConnecting Umbraco to Salesforce
- Ghost → SalesforceConnecting Ghost memberships to Salesforce
Free · 30 min
Get Contentful and Salesforce joined properly
Free30 minutesNo obligation
