Connecting LearnDash to Salesforce
LearnDash runs courses inside WordPress, which means enrolment can happen through a purchase, a membership, a manual grant or a coupon — and only one of those is revenue. 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 LearnDash enrolment 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
LearnDash to Salesforce: track B2B seat sales and team onboarding
Salesforce fits LearnDash when you sell team training seats through LearnDash Groups, not $199 self-serve courses. Write ad click IDs onto the demo-request Lead and map them to the Opportunity, so closed-won contracts return to ad platforms as offline conversions. Then write seats used and completion rate from the group back onto the Account.
Salesforce is the wrong place for individual course buyers; a $199 self-serve purchase does not need a Lead. It is the right place when a LearnDash site sells to companies: training seats for a team, delivered through LearnDash Groups with a group leader managing the learners. Those deals come from a demo request or a sales call, close as an Opportunity, and are fulfilled by creating a group and enrolling the team.
Two joins make this useful. Going in: the demo or quote form writes the ad click identifiers and landing page onto the Lead, and those custom fields are mapped through Lead conversion onto the Opportunity, so a closed-won training contract can be sent back to ad platforms as an offline conversion. Coming back: once the group exists in LearnDash, write seats used and course completion rate onto the Account, which is what the account manager needs at renewal. Check whether your LearnDash group can store the Salesforce Account ID; a custom field or user meta is usually enough.
Keep self-serve and B2B apart in reporting. If the same course is also sold individually, an employee buying a seat on a company card can look like a lead that converted, and the deal value will be double-counted. Match on email domain and flag it rather than creating a second record.
LearnDash → Salesforce · what breaks
Why this join usually fails — LearnDash → Salesforce
- 01
The Lead or Contact identity never reaches LearnDash
Checkout runs through whichever WooCommerce or membership plugin is attached, so the identifier has to survive an extra handoff.
- 02
Granted access counted as sales
An admin enrolling a cohort, a membership granting bundled access and a coupon at one hundred percent all produce enrolment records identical to a paid one. Counting them inflates revenue by whatever your free access volume is.
- 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.
LearnDash → Salesforce · the fix
What working looks like — LearnDash → Salesforce
The Lead or Contact identity on every enrolment
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
LearnDash → Salesforce · architecture
How LearnDash and Salesforce actually connect
- 1
LearnDash holds the truth
LearnDash enrols users from several sources. Course access granted by a membership plugin or by an admin is not a sale and must not be counted as one.
- 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 LearnDash enrolment.
- 4
The event source decides reliability
Send paid enrolments at the amount charged. Free and granted enrolments carry no value.
- 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.
LearnDash → Salesforce · normal or broken
Working vs. broken, side by side — LearnDash → Salesforce
Normal, not a fault
The Lead or Contact identity present on the enrolment
Sent from the payment record joined to the enrolment
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
Checkout runs through whichever WooCommerce or membership plugin is attached, so the identifier has to survive an extra handoff.
Sent from the browser
An admin enrolling a cohort, a membership granting bundled access and a coupon at one hundred percent all produce enrolment records identical to a paid one. Counting them inflates revenue by whatever your free access volume is.
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
LearnDash → Salesforce · diagnose
Diagnostic order — LearnDash → Salesforce
- 01
Count enrolments carrying the Lead or Contact identity
- 02
Follow one real conversion end to end
- 03
Split enrolments by how access was granted
One field, and on established course sites the free share is usually larger than expected.
- 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.
LearnDash → Salesforce · prove
How it gets proven — LearnDash → Salesforce
Source of truth
Paid enrolments from your payment system, held apart from free and granted access.
- The Lead or Contact identity confirmed present on a live enrolment.
- A test value confirmed present on the record in the UI, and confirmed to survive Lead conversion.
- Paid enrolments reconciled at charged amounts against imported conversions.
LearnDash → Salesforce · free audit
What we check in the free audit
- Count enrolments carrying the Lead or Contact identity
- Follow one real conversion end to end
- Split enrolments by how access was granted
- Write a test value and open the record in the UI
- Read the match rate, not the success message
Checked against
Paid enrolments from your payment system, held apart from free and granted access.
Free30 minutesNo obligation
LearnDash → Salesforce · when not to buy
When you don't need this — LearnDash → Salesforce
- Measure identifier coverage yourself first — pull your last hundred enrolments and count how many carry the Lead or Contact identity.
- If every enrolment is a direct purchase, one conversion action is correct and simpler.
- 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.
LearnDash → Salesforce · what we deliver
What gets built — LearnDash → Salesforce
Identifier capture into LearnDash
Capture on landing and pass through the purchase flow to the enrolment record.
Event source: the payment record joined to the enrolment
Send paid enrolments at the amount charged. Free and granted enrolments carry no value.
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
Refunds reverse and should revoke access.
Written guarantee
95%+ tracking accuracy
Measured against Paid enrolments from your payment system, held apart from free and granted access.. Miss it and we keep working at no cost.
From $400 · See packages
FAQ
LearnDash → Salesforce questions, answered
Only B2B and team purchases. Individual self-serve buyers belong in your email or marketing tool, not as Leads a sales team has to triage.
Store the click identifiers on the Lead from the demo form, map them through to the Opportunity, and upload closed-won deals as offline conversions. Long sales cycles may exceed some platforms' upload windows.
Almost always because the Lead or Contact identity never reached the LearnDash enrolment. Checkout runs through whichever WooCommerce or membership plugin is attached, so the identifier has to survive an extra handoff. 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.
The payment record joined to the enrolment. Send paid enrolments at the amount charged. Free and granted enrolments carry no value.
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 LearnDash → Salesforce
- LearnDash → Marketing CloudConnecting LearnDash to Salesforce Marketing Cloud
- Salesforce → Google AdsConnecting Salesforce to Google Ads
- Salesforce → MetaConnecting Salesforce to Meta Conversions API
RELATED GUIDES
Where LearnDash → Salesforce fits in the rest of your tracking
- 360Learning → SalesforceConnecting 360Learning to Salesforce
- Tovuti → SalesforceConnecting Tovuti to Salesforce
- Paid Memberships Pro → SalesforceConnecting Paid Memberships Pro to Salesforce
- LearnDash → HubSpotConnecting LearnDash to HubSpot
- LearnDash → 6senseConnecting LearnDash to 6sense
- Tutoring and test prepConversion tracking for tutoring, measured in enrolled packages
- Restrict Content Pro → SalesforceConnecting Restrict Content Pro to Salesforce
- Tutor LMS → SalesforceConnecting Tutor LMS to Salesforce
Free · 30 min
Get LearnDash and Salesforce joined properly
Free30 minutesNo obligation
