Connecting Divi to Salesforce
Divi is a theme and builder combined, which means the site's structure and its forms are the same product — and a theme update can change both at once. 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 Divi form submission 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
Divi forms into Salesforce Leads with click IDs that survive
Divi's contact module cannot post to Web-to-Lead, so relay submissions server-side into the Lead object or use a Salesforce-capable form plugin. Add Lead fields for gclid, fbc, ttclid and landing page, mapped through lead conversion to Contact and Opportunity so closed-won stages can return to ad platforms. Deduplicate before creating.
The usual shortcut is Salesforce Web-to-Lead, but the Divi contact module submits to WordPress over AJAX and does not let you point it at a custom form action. So you either replace it with a form plugin that supports Salesforce, or relay the Divi submission server-side, through a WordPress hook, a webhook handler or a connector service, into the Lead object. Divi's Email Optin module lists Salesforce as a provider in some versions; check yours, and note it is built for newsletter signups, not for carrying click identifiers.
Whichever route, create custom Lead fields for gclid, fbc, ttclid and landing page, fill them from the values captured on landing, and map them in Salesforce's Lead conversion settings to matching Contact and Opportunity fields. That mapping is what lets you later send closed-won stages back to ad platforms with the original click ID, which is the reason to put Divi leads in Salesforce rather than an inbox.
Two Divi-specific failures. Duplicate Leads: Divi does no deduplication, so someone who submits the homepage form and then the quote form creates two Leads unless your matching rules or the relay check first. And silent stops: if the relay is triggered by code in the parent theme, a Divi update removes it while the form keeps showing its success message, so leads stop reaching Salesforce with no error on the site. Compare a week of notification emails against Leads created by source.
Divi → Salesforce · what breaks
Why this join usually fails — Divi → Salesforce
- 01
The Lead or Contact identity never reaches Divi
Custom code added to theme templates is vulnerable to updates, and Divi's contact module submits over AJAX.
- 02
Tracking removed by a theme update
Code placed directly into theme files disappears when the theme updates. The site keeps working, the forms keep submitting, and the conversions stop arriving with no error anywhere.
- 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.
Divi → Salesforce · the fix
What working looks like — Divi → Salesforce
The Lead or Contact identity on every submission
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
Divi → Salesforce · architecture
How Divi and Salesforce actually connect
- 1
Divi holds the truth
Because the builder is the theme, tracking added into templates can be lost or duplicated by a theme update in ways a plugin-based setup would not experience.
- 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 Divi form submission.
- 4
The event source decides reliability
Send qualified outcomes per form, with the identifier passed through a hidden field.
- 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.
Divi → Salesforce · normal or broken
Working vs. broken, side by side — Divi → Salesforce
Normal, not a fault
The Lead or Contact identity present on the submission
Sent from your CRM 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
Custom code added to theme templates is vulnerable to updates, and Divi's contact module submits over AJAX.
Sent from the browser
Code placed directly into theme files disappears when the theme updates. The site keeps working, the forms keep submitting, and the conversions stop arriving with no error anywhere.
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
Divi → Salesforce · diagnose
Diagnostic order — Divi → Salesforce
- 01
Count submissions carrying the Lead or Contact identity
- 02
Follow one real conversion end to end
- 03
Check whether tracking code sits in theme files or in a child theme
If it is in the parent theme, it is one update away from vanishing.
- 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.
Divi → Salesforce · prove
How it gets proven — Divi → Salesforce
Source of truth
Your CRM record, joined to the submission.
- The Lead or Contact identity confirmed present on a live submission.
- A test value confirmed present on the record in the UI, and confirmed to survive Lead conversion.
- Qualified outcomes reconciled per form against imported conversions, with code placement verified update-safe.
Divi → Salesforce · free audit
What we check in the free audit
- Count submissions carrying the Lead or Contact identity
- Follow one real conversion end to end
- Check whether tracking code sits in theme files or in a child theme
- Write a test value and open the record in the UI
- Read the match rate, not the success message
Checked against
Your CRM record, joined to the submission.
Free30 minutesNo obligation
Divi → Salesforce · when not to buy
When you don't need this — Divi → Salesforce
- Measure identifier coverage yourself first — pull your last hundred submissions and count how many carry the Lead or Contact identity.
- Sites using a separate form plugin and a tag manager are insulated from the theme-update risk.
- 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.
Divi → Salesforce · what we deliver
What gets built — Divi → Salesforce
Identifier capture into Divi
Use a child theme or the builder's supported code integration areas rather than editing templates directly, and bind to the AJAX submission.
Event source: your CRM record
Send qualified outcomes per form, with the identifier passed through a hidden field.
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
Disqualified submissions reverse.
Written guarantee
95%+ tracking accuracy
Measured against Your CRM record, joined to the submission.. Miss it and we keep working at no cost.
From $400 · See packages
FAQ
Divi → Salesforce questions, answered
Not through Web-to-Lead, because the Divi contact module posts to WordPress over AJAX. Use a form plugin with Salesforce support, or relay the Divi submission server-side into the Lead object with your click-ID fields mapped.
Store it in a custom Lead field at submit, then map that field to a matching Opportunity field in Salesforce's Lead field mapping. Convert a test Lead and check the Opportunity in the UI.
Almost always because the Lead or Contact identity never reached the Divi form submission. Custom code added to theme templates is vulnerable to updates, and Divi's contact module submits over AJAX. 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 CRM record. Send qualified outcomes per form, with the identifier passed through a hidden field.
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 Divi → Salesforce
- Divi → Marketing CloudConnecting Divi to Salesforce Marketing Cloud
- Salesforce → Google AdsConnecting Salesforce to Google Ads
- Salesforce → MetaConnecting Salesforce to Meta Conversions API
RELATED GUIDES
Where Divi → Salesforce fits in the rest of your tracking
- Elementor → SalesforceConnecting Elementor to Salesforce
- Bricks → SalesforceConnecting Bricks Builder to Salesforce
- Divi → 6senseConnecting Divi to 6sense
- Divi → HubSpotConnecting Divi to HubSpot
- Web and dev agenciesConversion tracking for web agencies, measured in signed contracts
- Elementor → MarketoConnecting Elementor to Marketo
- Bricks → MarketoConnecting Bricks Builder to Marketo
- Elementor → 6senseConnecting Elementor to 6sense
Free · 30 min
Get Divi and Salesforce joined properly
Free30 minutesNo obligation
