Connecting LearnDash to Amplitude
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. Amplitude is built around behavioural cohorts, which makes the identity resolution and the event taxonomy load-bearing in a way they never are for an ad pixel. The join between them succeeds or fails on one thing: whether the user ID and device ID pair reaches the LearnDash enrolment before the conversion happens, because Amplitude can only match a conversion it can tie back to a click it recognizes.
Free30 minutesNo obligation
Specific to this pair
LearnDash to Amplitude: revenue only on paid enrolments, not grants
To send LearnDash data to Amplitude, use the WordPress user ID as Amplitude user ID in both browser and server events, add an access-source property to every enrollment, and send price and quantity only on paid-order enrollments at the amount charged. Set insert_id from the order or enrollment ID and send refunds as negative revenue against the buyer.
LearnDash is a good fit for Amplitude because a course is a product people use over weeks: lessons completed, quizzes passed, courses finished. The cohort question worth answering is whether learners who paid behave differently from learners who were granted access, and that only works if the enrolment event says how access was granted. Add an access-source property (purchase, membership, admin, coupon, free) to every enrolment event.
Revenue fields are where this pair usually goes wrong. Send price and quantity only on enrolments backed by a paid order, using the amount actually charged after discounts, and leave them empty on granted and 100% coupon enrolments. If you populate price from the course's list price on every enrolment, Amplitude's revenue reporting multiplies your free access into income. Use the WordPress user ID as the Amplitude user ID, both in the browser SDK and in server-side events from your enrolment and order hooks, and set insert_id from the order or enrolment ID so a retried request is not counted twice.
Group enrolments need one more decision. LearnDash Groups let a manager buy seats for a team; decide whether revenue belongs to the buyer or is split across seats, and do not send it on each learner's enrolment as well. Refunds should go in as a negative revenue event against the original buyer.
LearnDash → Amplitude · what breaks
Why this join usually fails — LearnDash → Amplitude
- 01
The user ID and device ID pair 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
Revenue events that carry no revenue
Amplitude will happily accept a purchase event with no price field. The event count looks correct, the funnel looks correct, and the revenue reporting stays at zero — which people usually discover a quarter later when someone asks what a cohort is worth.
- 04
Nothing reconciles afterwards
Amplitude shows the event in the user's activity stream with its properties expanded. Read the properties, because an event that arrives without its revenue fields still looks like a success.
LearnDash → Amplitude · the fix
What working looks like — LearnDash → Amplitude
The user ID and device ID pair on every enrolment
Conversions arriving in Amplitude
The event lands on the user, joins their behavioural history, and becomes available for cohorts, funnels and retention.
Reconciled against the source
LearnDash → Amplitude · architecture
How LearnDash and Amplitude 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
Amplitude needs a click to match
Amplitude needs a device or user identifier, an event type and its properties. Revenue events need the price and quantity fields specifically, or the revenue reporting stays empty while events flow normally.
- 3
The identifier is the bridge
The user ID and device ID pair, 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
Amplitude deduplicates on insert_id. Omit it and a retried batch is counted twice, which shows up as a phantom spike that someone will eventually build a hypothesis on.
LearnDash → Amplitude · normal or broken
Working vs. broken, side by side — LearnDash → Amplitude
Normal, not a fault
The user ID and device ID pair present on the enrolment
Sent from the payment record joined to the enrolment
Deduplicated correctly
Amplitude deduplicates on insert_id. Omit it and a retried batch is counted twice, which shows up as a phantom spike that someone will eventually build a hypothesis on.
Reconciles with the source
Actually broken
The user ID and device ID pair 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
Amplitude will happily accept a purchase event with no price field. The event count looks correct, the funnel looks correct, and the revenue reporting stays at zero — which people usually discover a quarter later when someone asks what a cohort is worth.
Nobody has reconciled it
LearnDash → Amplitude · diagnose
Diagnostic order — LearnDash → Amplitude
- 01
Count enrolments carrying the user ID and device ID pair
- 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
Check a purchase event for the price and quantity fields specifically
Not whether the event arrived — whether the revenue fields are populated, in the exact names Amplitude expects.
- 05
Read the match rate, not the success message
Amplitude shows the event in the user's activity stream with its properties expanded. Read the properties, because an event that arrives without its revenue fields still looks like a success.
LearnDash → Amplitude · prove
How it gets proven — LearnDash → Amplitude
Source of truth
Paid enrolments from your payment system, held apart from free and granted access.
- The user ID and device ID pair confirmed present on a live enrolment.
- Revenue reconciled per transaction against your billing system, with identity merge behaviour verified across signup.
- Paid enrolments reconciled at charged amounts against imported conversions.
LearnDash → Amplitude · free audit
What we check in the free audit
- Count enrolments carrying the user ID and device ID pair
- Follow one real conversion end to end
- Split enrolments by how access was granted
- Check a purchase event for the price and quantity fields specifically
- 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 → Amplitude · when not to buy
When you don't need this — LearnDash → Amplitude
- Measure identifier coverage yourself first — pull your last hundred enrolments and count how many carry the user ID and device ID pair.
- If every enrolment is a direct purchase, one conversion action is correct and simpler.
- If nobody is building cohorts or retention analysis, this is a large amount of instrumentation for reporting a dashboard already gives you.
LearnDash → Amplitude · what we deliver
What gets built — LearnDash → Amplitude
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 Amplitude
The Amplitude HTTP V2 API, posted server-side with the identity, event type and properties.
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 → Amplitude questions, answered
Send a revenue event from the paid order, with price set to the amount charged and quantity, on the WordPress user ID. Granted, membership and free enrolments should carry an access-source property and no price.
The browser SDK and the server events are using different IDs. Use the WordPress user ID as the user ID in both, and identify in the browser as soon as the learner logs in.
Almost always because the user ID and device ID pair 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.
Amplitude tracks both a device ID and a user ID and merges them when a user identifies. The merge rules decide who counts as one person, so a mistake here does not produce a small error — it changes every retention curve and cohort size in the account.
The payment record joined to the enrolment. Send paid enrolments at the amount charged. Free and granted enrolments carry no value.
Amplitude shows the event in the user's activity stream with its properties expanded. Read the properties, because an event that arrives without its revenue fields still looks like a success.
More on LearnDash → Amplitude
- Stripe → AmplitudeConnecting Stripe to Amplitude
- PayPal → AmplitudeConnecting PayPal to Amplitude
- Shopify → AmplitudeConnecting Shopify to Amplitude
RELATED GUIDES
Where LearnDash → Amplitude fits in the rest of your tracking
- Moodle → AmplitudeConnecting Moodle to Amplitude
- Tutor LMS → AmplitudeConnecting Tutor LMS to Amplitude
- Docebo → AmplitudeConnecting Docebo to Amplitude
- LearnDash → MatomoConnecting LearnDash to Matomo
- LearnDash → Adobe AnalyticsConnecting LearnDash to Adobe Analytics
- Tutoring and test prepConversion tracking for tutoring, measured in enrolled packages
- 360Learning → AmplitudeConnecting 360Learning to Amplitude
- Tovuti → AmplitudeConnecting Tovuti to Amplitude
Free · 30 min
Get LearnDash and Amplitude joined properly
Free30 minutesNo obligation
