Skip to main content
LifterLMS → PostHogIntegration guide

Connecting LifterLMS to PostHog

LifterLMS handles courses and memberships together with its own checkout, which means recurring access plans and one-off course sales share a single order table. 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 LifterLMS order 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

LifterLMS course funnels in PostHog with WordPress user IDs

In PostHog, lesson-level data is the point. Call identify with the WordPress user ID on every authenticated page load, including the automatic login after LifterLMS checkout, so purchase and lessons land on one person. Send the purchase server-side with the order number as the event UUID basis, renewals as a separate event, and course and lesson completions from the server.

PostHog is the one destination here where lesson-level data is the point rather than a nice extra. A course business can see which lesson students quit on, how long the gap is between enrollment and first lesson, and whether students on recurring plans who finish one course start another. Call identify with the WordPress user ID when a student logs in, so the anonymous browsing before checkout merges with everything they do inside the course.

Send the purchase server-side when LifterLMS completes the order, using the same distinct_id and the LifterLMS order number as the event UUID basis so a retried send does not double. Send renewals as a separate event with the plan as a property; a funnel or revenue insight built on the purchase event should not count retention as new sales. Course and lesson completions can come from the server too, which keeps them out of reach of ad blockers.

The common break: a new student checks out and LifterLMS logs them in automatically, but your PostHog snippet only calls identify on the login form, not on that automatic login after checkout. The purchase lands on one person and the lessons on another. Call identify on every authenticated page load.

LifterLMS → PostHog · what breaks

Why this join usually fails — LifterLMS → PostHog

  1. 01

    The distinct_id never reaches LifterLMS

    Its own checkout means the flow is self-contained, but recurring payments arrive with no session at all.

  2. 02

    Every recurring payment firing as a new sale

    A membership billing monthly produces twelve orders a year from one student. Counting them all makes retained revenue look like acquisition and inflates the count by your retention rate.

  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.

LifterLMS → PostHog · the fix

What working looks like — LifterLMS → 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

LifterLMS → PostHog · architecture

How LifterLMS and PostHog actually connect

  1. 1

    LifterLMS holds the truth

    A recurring plan bills every month against one acquisition. Sending each payment as a conversion turns one student into twelve.

  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 LifterLMS order.

  4. 4

    The event source decides reliability

    Send one-time purchases at value and first payments of recurring plans at a defensible plan value.

  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.

LifterLMS → PostHog · normal or broken

Working vs. broken, side by side — LifterLMS → PostHog

Normal, not a fault

  • The distinct_id present on the enrolment

  • Sent from the LifterLMS order 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

    Its own checkout means the flow is self-contained, but recurring payments arrive with no session at all.

  • Sent from the browser

    A membership billing monthly produces twelve orders a year from one student. Counting them all makes retained revenue look like acquisition and inflates the count by your retention rate.

  • 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

LifterLMS → PostHog · diagnose

Diagnostic order — LifterLMS → PostHog

  1. 01

    Count enrolments carrying the distinct_id

  2. 02

    Follow one real conversion end to end

  3. 03

    Compare order count against distinct new students

    If orders exceed students, renewals are being counted as acquisitions.

  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.

LifterLMS → PostHog · prove

How it gets proven — LifterLMS → PostHog

Source of truth

LifterLMS orders by date, split into one-time purchases and recurring access plans.

  • 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.
  • New students reconciled against imported conversions for a settled month.

LifterLMS → PostHog · free audit

What we check in the free audit

  • Count enrolments carrying the distinct_id
  • Follow one real conversion end to end
  • Compare order count against distinct new students
  • Check ingestion health and disk before debugging any missing event
  • Read the match rate, not the success message

Checked against

LifterLMS orders by date, split into one-time purchases and recurring access plans.

Get my free conversion tracking audit

Free30 minutesNo obligation

LifterLMS → PostHog · when not to buy

When you don't need this — LifterLMS → PostHog

  • Measure identifier coverage yourself first — pull your last hundred enrolments and count how many carry the distinct_id.
  • Sites selling only one-time courses have no renewal problem.
  • 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.

LifterLMS → PostHog · what we deliver

What gets built — LifterLMS → PostHog

  • Identifier capture into LifterLMS

    Capture at landing, persist to the student record, and send only the first payment of a recurring plan.

  • Event source: the LifterLMS order record

    Send one-time purchases at value and first payments of recurring plans at a defensible plan value.

  • 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 and cancellations inside the first period reverse.

Written guarantee

95%+ tracking accuracy

Measured against LifterLMS orders by date, split into one-time purchases and recurring access plans.. Miss it and we keep working at no cost.

Get my free conversion tracking audit

From $400 · See packages

FAQ

LifterLMS → PostHog questions, answered

Send a lesson completed event with the course ID and lesson position, then build a funnel across lessons for each course.

Free · 30 min

Get LifterLMS and PostHog joined properly

Free30 minutesNo obligation