Connecting LearnDash to TikTok Events API
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. TikTok's audience skews to exactly the browsers and app contexts where browser-side tracking performs worst. The join between them succeeds or fails on one thing: whether the ttclid reaches the LearnDash enrolment before the conversion happens, because TikTok can only match a conversion it can tie back to a click it recognizes.
Free30 minutesNo obligation
Specific to this pair
LearnDash to TikTok: course buyers who start in the in-app browser
TikTok course buyers often click in the in-app browser and buy later on a laptop, so write the ttclid to WordPress user meta at account creation. Send CompletePayment through the Events API for paid enrollments at the amount charged, with the order ID as event_id and hashed email; free signups go as CompleteRegistration. Never send $0 orders.
TikTok course sales tend to split across devices: the student clicks in TikTok, lands in the in-app browser, creates an account, and often buys later on a laptop. The ttclid is only useful if it reaches that later order, so capture it on landing and write it to WordPress user meta when the account is created, not only to a cookie, so a purchase from another device a day later still joins.
Send CompletePayment through the Events API for paid enrolments at the amount charged, with the order ID as event_id and the student's hashed email, which LearnDash always has because enrolment requires an account. Free course signups go as CompleteRegistration. Check whether a TikTok plugin for WooCommerce is already sending events on your site before adding your own sender; two senders with different event_ids double every sale.
Discount codes travel on TikTok through comments and creator videos, and a leaked 100% code can produce a burst of $0 orders overnight. Make sure CompletePayment is never sent for $0 orders, or TikTok will optimize toward people hunting free codes. Refunds have no TikTok event, so remove them from the revenue you compare against TikTok's reports.
LearnDash → TikTok · what breaks
Why this join usually fails — LearnDash → TikTok
- 01
The ttclid 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
The ttclid is lost in the in-app browser
TikTok traffic arrives through an in-app webview whose storage behavior is inconsistent. An identifier captured but not immediately persisted server-side often is not there by the time the conversion happens.
- 04
Nothing reconciles afterwards
TikTok Events Manager shows received events and their match status. As with Meta, arriving is not the test — deduplicated and matched is. Reconcile TikTok's reported conversions against the source system for the same window.
LearnDash → TikTok · the fix
What working looks like — LearnDash → TikTok
The ttclid on every enrolment
Conversions arriving in TikTok
Events appear in TikTok Events Manager, deduplicated against the pixel, and become usable for optimization.
Reconciled against the source
LearnDash → TikTok · architecture
How LearnDash and TikTok 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
TikTok Events API needs a click to match
TikTok matches server events using ttclid where available, falling back to hashed contact information. Both should be sent — the fallback is what carries the events where the click ID did not survive.
- 3
The identifier is the bridge
The ttclid, 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
TikTok deduplicates on event_id, the same pattern as Meta: the pixel and the Events API must send the same event_id for the same conversion. Mismatched IDs mean double counting.
LearnDash → TikTok · normal or broken
Working vs. broken, side by side — LearnDash → TikTok
Normal, not a fault
The ttclid present on the enrolment
Sent from the payment record joined to the enrolment
Deduplicated correctly
TikTok deduplicates on event_id, the same pattern as Meta: the pixel and the Events API must send the same event_id for the same conversion. Mismatched IDs mean double counting.
Reconciles with the source
Actually broken
The ttclid 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
TikTok traffic arrives through an in-app webview whose storage behavior is inconsistent. An identifier captured but not immediately persisted server-side often is not there by the time the conversion happens.
Nobody has reconciled it
LearnDash → TikTok · diagnose
Diagnostic order — LearnDash → TikTok
- 01
Count enrolments carrying the ttclid
- 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
Measure ttclid capture rate on TikTok traffic specifically
Not on all traffic. TikTok's in-app browser is the failure case, so a healthy overall capture rate can hide a poor one on exactly the traffic that matters.
- 05
Read the match rate, not the success message
TikTok Events Manager shows received events and their match status. As with Meta, arriving is not the test — deduplicated and matched is. Reconcile TikTok's reported conversions against the source system for the same window.
LearnDash → TikTok · prove
How it gets proven — LearnDash → TikTok
Source of truth
Paid enrolments from your payment system, held apart from free and granted access.
- The ttclid confirmed present on a live enrolment.
- Deduplication confirmed in Events Manager, and ttclid capture rate measured on TikTok traffic specifically.
- Paid enrolments reconciled at charged amounts against imported conversions.
LearnDash → TikTok · free audit
What we check in the free audit
- Count enrolments carrying the ttclid
- Follow one real conversion end to end
- Split enrolments by how access was granted
- Measure ttclid capture rate on TikTok traffic 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 → TikTok · when not to buy
When you don't need this — LearnDash → TikTok
- Measure identifier coverage yourself first — pull your last hundred enrolments and count how many carry the ttclid.
- If every enrolment is a direct purchase, one conversion action is correct and simpler.
- If TikTok is a small share of spend, the effort is hard to justify. It pays when TikTok is a channel you are actively scaling.
LearnDash → TikTok · what we deliver
What gets built — LearnDash → TikTok
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 TikTok
Server events to the TikTok Events API with the ttclid, hashed contact information and a matching event_id.
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 → TikTok questions, answered
Capture the ttclid on landing, store it on the WordPress user, and send CompletePayment from the paid order with the order ID as event_id. Free enrolments go as CompleteRegistration.
Many sign up on a phone in TikTok's in-app browser and pay later on another device. If the ttclid lived only in a browser cookie, the later purchase has nothing to join on.
Almost always because the ttclid 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.
The ttclid — TikTok's click identifier, appended to your landing page URL and also stored in the _ttp cookie. TikTok additionally matches on hashed email and phone. In-app browser behavior makes ttclid capture more fragile than the equivalents on other platforms, so persisting it server-side as soon as it is seen matters more here than elsewhere.
The payment record joined to the enrolment. Send paid enrolments at the amount charged. Free and granted enrolments carry no value.
TikTok Events Manager shows received events and their match status. As with Meta, arriving is not the test — deduplicated and matched is. Reconcile TikTok's reported conversions against the source system for the same window.
More on LearnDash → TikTok
- TikTok · Lead → booked callHow to track lead to booked call for TikTok Ads
- TikTok · Booked call → closed wonHow to track booked call to closed won for TikTok Ads
- TikTok · Free trial → paidHow to track free trial to paid for TikTok Ads
RELATED GUIDES
Where LearnDash → TikTok fits in the rest of your tracking
- TikTok · BootcampsTikTok Ads conversion tracking for coding bootcamps and career training providers
- TikTok · EducationTikTok Ads conversion tracking for education providers
- TikTok × Enrolment SystemHow to reconcile TikTok Ads against your application or enrolment system
- TikTok · Application → enrollmentHow to track application to enrollment for TikTok Ads
- 360Learning → TikTokConnecting 360Learning to TikTok Events API
- LearnDash → NextdoorConnecting LearnDash to Nextdoor Ads
- Tutoring and test prepConversion tracking for tutoring, measured in enrolled packages
- Tutor LMS → TikTokConnecting Tutor LMS to TikTok Events API
Free · 30 min
Get LearnDash and TikTok joined properly
Free30 minutesNo obligation
