Connecting LearnWorlds to Segment
LearnWorlds is a hosted course platform for creators and small training businesses, with the school on its own domain or subdomain. Segment is a customer data platform rather than an ad network, so sending to it is not about matching a conversion — it is about putting one clean event where every other destination can read it. The join between them succeeds or fails on one thing: whether the userId and anonymousId reaches the LearnWorlds enrolment before the conversion happens, because Segment can only match a conversion it can tie back to a click it recognizes.
Free30 minutesNo obligation
Specific to this pair
LearnWorlds to Segment: Order Completed with the product type set
To route LearnWorlds through Segment, pass the anonymousId through the checkout URL, alias it server-side, and use the LearnWorlds user ID as userId. Send Order Completed from the order webhook with revenue at price paid, a products array of course or bundle IDs and a product_type property, messageId from the order ID. Free enrollments get a separate event name.
Segment fits a training business that already sends data to several tools, such as an email platform, an ad stack and a warehouse, and wants paid enrollments defined once. The identity work: the marketing site's anonymousId has to survive into the school, and the userId should be the LearnWorlds user ID, set by identify at signup or login. Passing the anonymousId through the checkout URL and aliasing it server-side at enrollment is what stitches the ad visit to the buyer.
Send Order Completed from the LearnWorlds order webhook with order_id, revenue at price paid, currency, and a products array using the LearnWorlds course or bundle ID. Add a product_type property, course, bundle or subscription, because downstream ad destinations need different values for each. Send free enrollments under a separately named event so no destination maps them to a purchase by accident, and use Order Refunded for refunds inside the course refund window.
Set messageId from the LearnWorlds order ID so a retried webhook is dropped once rather than counted in every destination. Carry the consent state captured on the marketing site as a property on the identify call. LearnWorlds' own cookie banner may record a different choice for the same person, and Segment forwards whichever one you send.
LearnWorlds → Segment · what breaks
Why this join usually fails — LearnWorlds → Segment
- 01
The userId and anonymousId never reaches LearnWorlds
Checkout is hosted, so an identifier captured on a separate marketing site does not reach the enrolment unless carried through the checkout URL and confirmed on the order.
- 02
Free lead-magnet courses counted as conversions
Free courses are a legitimate lead magnet and a terrible conversion target. Sending them teaches bidding to find people who take free courses.
- 03
One bad event multiplied across every destination
Segment's value is fan-out, which is also its risk. An inconsistent identity or a duplicated event does not break one report — it breaks every connected tool simultaneously, and tracing it back is harder than debugging a direct integration.
- 04
Nothing reconciles afterwards
Segment's debugger shows events arriving and which destinations accepted them. Arriving is not the test — check a destination you care about and confirm the event landed there with the identity intact, then reconcile against your own records.
LearnWorlds → Segment · the fix
What working looks like — LearnWorlds → Segment
The userId and anonymousId on every enrolment
Conversions arriving in Segment
Events land in Segment and forward to every connected destination, warehouse included, on one shared definition.
Reconciled against the source
LearnWorlds → Segment · architecture
How LearnWorlds and Segment actually connect
- 1
LearnWorlds holds the truth
LearnWorlds carries one-off courses, bundles and subscriptions side by side. Subscriptions need valuing over their expected life; treating them as one-off sales understates them badly.
- 2
Segment needs a click to match
Segment needs a consistent identity model — the same userId everywhere, an alias when an anonymous visitor becomes known, and event names that follow one spec. Feeding it inconsistent identities pushes the mess to every connected destination at once.
- 3
The identifier is the bridge
The userId and anonymousId, captured at the visit and carried into the LearnWorlds enrolment.
- 4
The event source decides reliability
Send paid enrolments, distinguishing one-off purchases from subscriptions so each carries the right value.
- 5
Deduplication at the destination
Segment deduplicates on messageId within a window. Because it fans out to many destinations, a duplicate here becomes a duplicate everywhere, which makes idempotent messageIds more important than in any single-destination integration.
LearnWorlds → Segment · normal or broken
Working vs. broken, side by side — LearnWorlds → Segment
Normal, not a fault
The userId and anonymousId present on the enrolment
Sent from the LearnWorlds order webhook
Deduplicated correctly
Segment deduplicates on messageId within a window. Because it fans out to many destinations, a duplicate here becomes a duplicate everywhere, which makes idempotent messageIds more important than in any single-destination integration.
Reconciles with the source
Actually broken
The userId and anonymousId missing on most records
Checkout is hosted, so an identifier captured on a separate marketing site does not reach the enrolment unless carried through the checkout URL and confirmed on the order.
Sent from the browser
Free courses are a legitimate lead magnet and a terrible conversion target. Sending them teaches bidding to find people who take free courses.
Counted twice, or not at all
Segment's value is fan-out, which is also its risk. An inconsistent identity or a duplicated event does not break one report — it breaks every connected tool simultaneously, and tracing it back is harder than debugging a direct integration.
Nobody has reconciled it
LearnWorlds → Segment · diagnose
Diagnostic order — LearnWorlds → Segment
- 01
Count enrolments carrying the userId and anonymousId
- 02
Follow one real conversion end to end
- 03
Check whether free and paid enrolments share a conversion action
If they do, the free tier is setting your bids.
- 04
Check identity resolution before checking anything downstream
If anonymousId is never aliased to userId, every destination sees two people where there is one, and no downstream fix helps.
- 05
Read the match rate, not the success message
Segment's debugger shows events arriving and which destinations accepted them. Arriving is not the test — check a destination you care about and confirm the event landed there with the identity intact, then reconcile against your own records.
LearnWorlds → Segment · prove
How it gets proven — LearnWorlds → Segment
Source of truth
LearnWorlds' paid enrolments and subscription records for the same window.
- The userId and anonymousId confirmed present on a live enrolment.
- An anonymous session confirmed aliased to a known user, with the event visible in at least one downstream destination.
- Paid enrolments confirmed separated from free, with subscriptions at lifetime value.
LearnWorlds → Segment · free audit
What we check in the free audit
- Count enrolments carrying the userId and anonymousId
- Follow one real conversion end to end
- Check whether free and paid enrolments share a conversion action
- Check identity resolution before checking anything downstream
- Read the match rate, not the success message
Checked against
LearnWorlds' paid enrolments and subscription records for the same window.
Free30 minutesNo obligation
LearnWorlds → Segment · when not to buy
When you don't need this — LearnWorlds → Segment
- Measure identifier coverage yourself first — pull your last hundred enrolments and count how many carry the userId and anonymousId.
- If you run one free course as a funnel entry and monetise elsewhere, the conversion is not in LearnWorlds.
- If you send to one or two destinations, Segment is infrastructure you do not need — direct integrations are simpler and cheaper. It earns its place at genuine fan-out.
LearnWorlds → Segment · what we deliver
What gets built — LearnWorlds → Segment
Identifier capture into LearnWorlds
Append the identifier to the course checkout URL and verify it is retrievable from the enrolment record before building anything downstream.
Event source: the LearnWorlds order webhook
Send paid enrolments, distinguishing one-off purchases from subscriptions so each carries the right value.
Dispatch to Segment
Server-side track and identify calls with a stable messageId, consistent userId, and the click identifier carried as a trait or property.
Reversals where they exist
Refunds within the course refund window are common and should reduce the figure.
Written guarantee
95%+ tracking accuracy
Measured against LearnWorlds' paid enrolments and subscription records for the same window.. Miss it and we keep working at no cost.
From $400 · See packages
FAQ
LearnWorlds → Segment questions, answered
Check LearnWorlds' integrations list for your plan. If there is none, post track and identify calls from your server when its webhooks fire.
The LearnWorlds user ID, used identically by any browser tracking on the school, with the marketing-site anonymousId aliased to it at enrollment.
Almost always because the userId and anonymousId never reached the LearnWorlds enrolment. Checkout is hosted, so an identifier captured on a separate marketing site does not reach the enrolment unless carried through the checkout URL and confirmed on the order. Measure coverage before debugging the dispatch.
Segment identifies people by anonymousId before they are known and userId afterwards, and the alias between them is what stitches a session to a customer. Click identifiers travel as event properties or traits rather than as a matching key — Segment does not match anything itself, it forwards. That distinction changes the whole design: get the identity resolution right and every downstream destination inherits it.
The LearnWorlds order webhook. Send paid enrolments, distinguishing one-off purchases from subscriptions so each carries the right value.
Segment's debugger shows events arriving and which destinations accepted them. Arriving is not the test — check a destination you care about and confirm the event landed there with the identity intact, then reconcile against your own records.
More on LearnWorlds → Segment
- Stripe → SegmentConnecting Stripe to Segment
- PayPal → SegmentConnecting PayPal to Segment
- Shopify → SegmentConnecting Shopify to Segment
RELATED GUIDES
Where LearnWorlds → Segment fits in the rest of your tracking
- Canvas → SegmentConnecting Canvas LMS to Segment
- iSpring → SegmentConnecting iSpring Learn to Segment
- LearnDash → SegmentConnecting LearnDash to Segment
- LearnWorlds → BigQueryConnecting LearnWorlds to BigQuery
- Private schoolsConversion tracking for private schools, measured in enrollments
- Tovuti → SegmentConnecting Tovuti to Segment
- TalentLMS → SegmentConnecting TalentLMS to Segment
- Moodle → SegmentConnecting Moodle to Segment
Free · 30 min
Get LearnWorlds and Segment joined properly
Free30 minutesNo obligation
