Skip to main content
Tutor LMS → PostHogIntegration guide

Connecting Tutor LMS to PostHog

Tutor LMS supports a marketplace model where several instructors sell on one site, which means the site owner earns a commission rather than the course price. PostHog can be self-hosted, which changes the calculus entirely: the data stays on infrastructure you control, and so does the responsibility for everything that goes wrong with it. The join between them succeeds or fails on one thing: whether the distinct_id reaches the Tutor LMS enrolment before the conversion happens, because PostHog can only match a conversion it can tie back to a click it recognizes.

Free30 minutesNo obligation

Specific to this pair

PostHog on Tutor LMS: tie the purchase to the learning funnel

Identify Tutor LMS learners in PostHog with the WordPress user ID at login, send paid enrollments server-side with the same distinct_id and an event UUID, plus course, instructor, price and site earnings as properties. Send lesson, quiz and course completion from Tutor's hooks instead of autocapturing the lesson player.

PostHog is where a Tutor site can see what happens after the sale, which ad platforms never show: how many paid learners start the first lesson, where they stall, and whether low completion on a course predicts refunds. Call identify with the WordPress user ID at login, so anonymous browsing on course pages before registration merges into the learner who eventually pays.

Send the paid enrollment from the server with the same distinct_id and an event UUID, because the payment gateway redirect often lands the learner on a page where the browser snippet fires late or not at all. Add course, instructor and price as properties, and on marketplace sites add the site's earnings as a separate property so revenue insights can use either number without confusion.

Autocapturing every click inside Tutor's lesson player will dominate your event volume and bill. Send discrete progress events instead, such as lesson completed, quiz passed and course completed, from Tutor's hooks on the server. If you self-host PostHog, the ingestion endpoint can sit on your own domain next to the WordPress site, which keeps learner tracking working where ad blockers stop third-party tags.

Tutor LMS → PostHog · what breaks

Why this join usually fails — Tutor LMS → PostHog

  1. 01

    The distinct_id never reaches Tutor LMS

    Checkout depends on the attached ecommerce plugin, and instructors may promote their own courses independently.

  2. 02

    Instructor revenue reported as site revenue

    On a seventy-thirty split, reporting the course price overstates the platform's return by more than three times, and instructor-driven promotion gets credited to the site's advertising.

  3. 03

    Self-hosting the analytics and the outage together

    The advantage of owning the pipeline is that nothing blocks it. The cost is that when the ingestion instance fills its disk on a Saturday, the events are gone and nobody is paged. Hosted tools fail differently and more visibly.

  4. 04

    Nothing reconciles afterwards

    PostHog shows events in the activity view within moments. On a self-hosted instance, check the ingestion lag as well — events that are queued are not events that are lost, and the two need different responses.

Tutor LMS → PostHog · the fix

What working looks like — Tutor LMS → PostHog

  • The distinct_id on every enrolment

  • Conversions arriving in PostHog

    The event lands on the person profile and becomes available in insights, funnels and session replay.

  • Reconciled against the source

Tutor LMS → PostHog · architecture

How Tutor LMS and PostHog actually connect

  1. 1

    Tutor LMS holds the truth

    On a multi-instructor site the course price mostly goes to the instructor. Reporting the course price overstates the site owner's revenue by whatever the revenue share is.

  2. 2

    PostHog needs a click to match

    PostHog needs a distinct_id, an event name and its properties. Self-hosted instances additionally need the ingestion endpoint reachable and the project API key correct, which is a class of failure hosted tools do not have.

  3. 3

    The identifier is the bridge

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

  4. 4

    The event source decides reliability

    Send paid enrolments at the site's earnings, with the instructor recorded.

  5. 5

    Deduplication at the destination

    PostHog deduplicates on the event UUID where supplied. Without one, a retried batch duplicates, and on a self-hosted instance there is no vendor support desk to notice it for you.

Tutor LMS → PostHog · normal or broken

Working vs. broken, side by side — Tutor LMS → PostHog

Normal, not a fault

  • The distinct_id present on the enrolment

  • Sent from the enrolment and payment record

  • Deduplicated correctly

    PostHog deduplicates on the event UUID where supplied. Without one, a retried batch duplicates, and on a self-hosted instance there is no vendor support desk to notice it for you.

  • Reconciles with the source

Actually broken

  • The distinct_id missing on most records

    Checkout depends on the attached ecommerce plugin, and instructors may promote their own courses independently.

  • Sent from the browser

    On a seventy-thirty split, reporting the course price overstates the platform's return by more than three times, and instructor-driven promotion gets credited to the site's advertising.

  • Counted twice, or not at all

    The advantage of owning the pipeline is that nothing blocks it. The cost is that when the ingestion instance fills its disk on a Saturday, the events are gone and nobody is paged. Hosted tools fail differently and more visibly.

  • Nobody has reconciled it

Tutor LMS → PostHog · diagnose

Diagnostic order — Tutor LMS → PostHog

  1. 01

    Count enrolments carrying the distinct_id

  2. 02

    Follow one real conversion end to end

  3. 03

    Confirm whether the imported value is course price or platform commission

    One question, and on marketplace sites it changes the answer by a multiple.

  4. 04

    Check ingestion health and disk before debugging any missing event

    On self-hosted instances the answer is infrastructure far more often than it is instrumentation.

  5. 05

    Read the match rate, not the success message

    PostHog shows events in the activity view within moments. On a self-hosted instance, check the ingestion lag as well — events that are queued are not events that are lost, and the two need different responses.

Tutor LMS → PostHog · prove

How it gets proven — Tutor LMS → PostHog

Source of truth

Paid enrolments by date, valued at the site's commission where a marketplace model is in use.

  • The distinct_id confirmed present on a live enrolment.
  • Purchase events reconciled per transaction against your billing system, with ingestion lag checked over the same window.
  • Paid enrolments reconciled at platform commission against imported conversions.

Tutor LMS → PostHog · free audit

What we check in the free audit

  • Count enrolments carrying the distinct_id
  • Follow one real conversion end to end
  • Confirm whether the imported value is course price or platform commission
  • Check ingestion health and disk before debugging any missing event
  • Read the match rate, not the success message

Checked against

Paid enrolments by date, valued at the site's commission where a marketplace model is in use.

Get my free conversion tracking audit

Free30 minutesNo obligation

Tutor LMS → PostHog · when not to buy

When you don't need this — Tutor LMS → PostHog

  • Measure identifier coverage yourself first — pull your last hundred enrolments and count how many carry the distinct_id.
  • Single-instructor sites keep the whole price and should report it.
  • If you have no reason to keep the data on your own infrastructure and no team to run it, the hosted product removes the only real downside of this one.

Tutor LMS → PostHog · what we deliver

What gets built — Tutor LMS → PostHog

  • Identifier capture into Tutor LMS

    Capture on landing and record both the instructor and the commission on the enrolment.

  • Event source: the enrolment and payment record

    Send paid enrolments at the site's earnings, with the instructor recorded.

  • Dispatch to PostHog

    The PostHog capture API, posted server-side from your backend to your own instance or to PostHog Cloud.

  • Reversals where they exist

    Refunds reverse the commission.

Written guarantee

95%+ tracking accuracy

Measured against Paid enrolments by date, valued at the site's commission where a marketplace model is in use.. Miss it and we keep working at no cost.

Get my free conversion tracking audit

From $400 · See packages

FAQ

Tutor LMS → PostHog questions, answered

Call identify with the WordPress user ID when the learner logs in, and use the same ID as distinct_id on server events. That links pre-signup browsing to the enrollment.

Free · 30 min

Get Tutor LMS and PostHog joined properly

Free30 minutesNo obligation