Skip to main content
LearnWorlds → MixpanelIntegration guide

Connecting LearnWorlds to Mixpanel

LearnWorlds is a hosted course platform for creators and small training businesses, with the school on its own domain or subdomain. Mixpanel is a product analytics tool, not an ad platform, which means it has no attribution model of its own and will faithfully report whatever event schema you give it — including a bad one. The join between them succeeds or fails on one thing: whether the distinct_id reaches the LearnWorlds enrolment before the conversion happens, because Mixpanel can only match a conversion it can tie back to a click it recognizes.

Free30 minutesNo obligation

Specific to this pair

LearnWorlds to Mixpanel: one distinct_id from free course to paid

To send LearnWorlds data to Mixpanel, call identify with the LearnWorlds user ID at the free signup, then send free_enrollment, paid_enrollment, subscription_payment and refund server-side from webhooks with $insert_id from the payment or enrollment ID. Pass the Mixpanel ID in the checkout URL or share a parent-domain cookie, or expect a gap at checkout.

Mixpanel helps a LearnWorlds school see the path from lead-magnet course to paid course to completion, which matters because free courses are the most common entry point and the worst conversion target. The distinct_id should become the LearnWorlds user ID at signup. When the free course signup happens on the school and the paid upgrade happens weeks later, both land on one person only if identify was called with that ID at the free signup.

Send from your server, triggered by LearnWorlds webhooks: free_enrollment, paid_enrollment with price, currency, product type and course ID, subscription_payment for each renewal, and refund. Set $insert_id from the LearnWorlds payment or enrollment ID so webhook retries do not duplicate. Register the marketing site's UTMs and click IDs as super properties at first visit and write them to the user profile once at identify, so the first paid source sticks.

The break is the domain hop. A Mixpanel ID created on your marketing domain does not exist on the school unless cookies are shared across a parent domain or the ID is passed in the checkout URL. If the school runs on a LearnWorlds-provided address rather than your own subdomain, the two cannot share a cookie at all; expect a gap at checkout and measure it.

LearnWorlds → Mixpanel · what breaks

Why this join usually fails — LearnWorlds → Mixpanel

  1. 01

    The distinct_id 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.

  2. 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.

  3. 03

    One event schema, two teams, no agreement

    Marketing names an event Purchase, the product team names it purchase_completed, and both are sent. Mixpanel treats them as unrelated, every funnel silently splits, and two teams spend a quarter arguing about which number is right when both are.

  4. 04

    Nothing reconciles afterwards

    Mixpanel shows events in the live view within moments. Check that the distinct_id matches the signed-in user rather than a lingering anonymous ID, because that is the failure that quietly breaks every cross-signup funnel.

LearnWorlds → Mixpanel · the fix

What working looks like — LearnWorlds → Mixpanel

  • The distinct_id on every enrolment

  • Conversions arriving in Mixpanel

    The event lands on the user profile and becomes available in funnels, retention and cohort analysis.

  • Reconciled against the source

LearnWorlds → Mixpanel · architecture

How LearnWorlds and Mixpanel actually connect

  1. 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. 2

    Mixpanel needs a click to match

    Mixpanel needs a distinct_id, an event name and its properties. Events without a distinct_id are rejected; events with the wrong one land on a stranger's profile.

  3. 3

    The identifier is the bridge

    The distinct_id, captured at the visit and carried into the LearnWorlds enrolment.

  4. 4

    The event source decides reliability

    Send paid enrolments, distinguishing one-off purchases from subscriptions so each carries the right value.

  5. 5

    Deduplication at the destination

    Mixpanel deduplicates on $insert_id within a time window. Without it, a retried server request creates a second event, and because Mixpanel is where product decisions get made, that inflation ends up in a roadmap rather than in an ad report.

LearnWorlds → Mixpanel · normal or broken

Working vs. broken, side by side — LearnWorlds → Mixpanel

Normal, not a fault

  • The distinct_id present on the enrolment

  • Sent from the LearnWorlds order webhook

  • Deduplicated correctly

    Mixpanel deduplicates on $insert_id within a time window. Without it, a retried server request creates a second event, and because Mixpanel is where product decisions get made, that inflation ends up in a roadmap rather than in an ad report.

  • Reconciles with the source

Actually broken

  • The distinct_id 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

    Marketing names an event Purchase, the product team names it purchase_completed, and both are sent. Mixpanel treats them as unrelated, every funnel silently splits, and two teams spend a quarter arguing about which number is right when both are.

  • Nobody has reconciled it

LearnWorlds → Mixpanel · diagnose

Diagnostic order — LearnWorlds → Mixpanel

  1. 01

    Count enrolments carrying the distinct_id

  2. 02

    Follow one real conversion end to end

  3. 03

    Check whether free and paid enrolments share a conversion action

    If they do, the free tier is setting your bids.

  4. 04

    List every event name in the project and look for near-duplicates

    Case differences, tense differences and synonyms are the usual finding, and they are cheap to fix before a year of data is built on them.

  5. 05

    Read the match rate, not the success message

    Mixpanel shows events in the live view within moments. Check that the distinct_id matches the signed-in user rather than a lingering anonymous ID, because that is the failure that quietly breaks every cross-signup funnel.

LearnWorlds → Mixpanel · prove

How it gets proven — LearnWorlds → Mixpanel

Source of truth

LearnWorlds' paid enrolments and subscription records for the same window.

  • The distinct_id confirmed present on a live enrolment.
  • Purchase events reconciled per transaction against your billing system, with identity aliasing verified across the signup boundary.
  • Paid enrolments confirmed separated from free, with subscriptions at lifetime value.

LearnWorlds → Mixpanel · free audit

What we check in the free audit

  • Count enrolments carrying the distinct_id
  • Follow one real conversion end to end
  • Check whether free and paid enrolments share a conversion action
  • List every event name in the project and look for near-duplicates
  • Read the match rate, not the success message

Checked against

LearnWorlds' paid enrolments and subscription records for the same window.

Get my free conversion tracking audit

Free30 minutesNo obligation

LearnWorlds → Mixpanel · when not to buy

When you don't need this — LearnWorlds → Mixpanel

  • Measure identifier coverage yourself first — pull your last hundred enrolments and count how many carry the distinct_id.
  • If you run one free course as a funnel entry and monetise elsewhere, the conversion is not in LearnWorlds.
  • If you already have the same events in a warehouse and nobody is running product analysis on them, adding Mixpanel adds a second source of truth rather than an answer.

LearnWorlds → Mixpanel · what we deliver

What gets built — LearnWorlds → Mixpanel

  • 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 Mixpanel

    The Mixpanel ingestion API, posted server-side from your backend with the distinct_id and event properties.

  • 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.

Get my free conversion tracking audit

From $400 · See packages

FAQ

LearnWorlds → Mixpanel questions, answered

Yes, if free and paid enrollments are separate events on the same distinct_id, which means identifying with the LearnWorlds user ID at the free signup.

Free · 30 min

Get LearnWorlds and Mixpanel joined properly

Free30 minutesNo obligation