Skip to main content
Litmos → PostHogIntegration guide

Connecting Litmos to PostHog

Litmos serves corporate compliance and sales training, where the purchase is a per-user subscription and renewals are driven by regulation rather than enthusiasm. 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 Litmos subscription 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 for a Litmos seller: group analytics on the buying site

You cannot instrument Litmos's app, so use PostHog on your own marketing site, trial signup and any admin portal, with group analytics by company. Send the subscription start server-side from billing with the admin's aliased distinct_id, company group, seats and contract value, and an event UUID derived from the subscription ID. Send learner usage only as company aggregates.

PostHog is product analytics, but the product your clients' employees use is Litmos, and you cannot instrument Litmos's app with your own PostHog project. What PostHog can measure is your own surface: the marketing site, pricing and seat calculator, trial signup, and any customer admin portal you built yourself.

Use PostHog's group analytics with the company as the group, so demo requests and trial activity from several people at one company roll up to one account. When the subscription starts, send the event server-side from billing with the admin's distinct_id, the one aliased at signup, and the company group, carrying seats and contract value as properties. Supply an event UUID derived from the subscription ID so a retried webhook does not double the account.

Pulling learner activity from Litmos into PostHog as raw events would make each employee a person and each course completion an event, inflating person and event counts with people who are not your users. If usage matters for renewal analysis, send it as periodic aggregate properties on the company group, such as active learners and completion rate, and keep seat additions as a distinct event from the subscription start.

Litmos → PostHog · what breaks

Why this join usually fails — Litmos → PostHog

  1. 01

    The distinct_id never reaches Litmos

    A B2B subscription researched by L&D or compliance staff, with the platform accessed by employees who had nothing to do with the purchase. The identifier belongs on the account.

  2. 02

    Seat expansion counted as new acquisition

    A client growing from twenty seats to two hundred is expansion revenue against a relationship marketing already bought. Counting it again credits acquisition twice.

  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.

Litmos → PostHog · the fix

What working looks like — Litmos → PostHog

  • The distinct_id on every subscription

  • Conversions arriving in PostHog

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

  • Reconciled against the source

Litmos → PostHog · architecture

How Litmos and PostHog actually connect

  1. 1

    Litmos holds the truth

    Compliance-driven training renews reliably, which makes expected tenure longer here than in discretionary learning — and the value model should reflect that rather than using a generic figure.

  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 Litmos subscription.

  4. 4

    The event source decides reliability

    Send the account at seats times rate times expected tenure. Seat additions within an existing account are expansion, not acquisition.

  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.

Litmos → PostHog · normal or broken

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

Normal, not a fault

  • The distinct_id present on the subscription

  • Sent from your billing system on subscription start

  • 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

    A B2B subscription researched by L&D or compliance staff, with the platform accessed by employees who had nothing to do with the purchase. The identifier belongs on the account.

  • Sent from the browser

    A client growing from twenty seats to two hundred is expansion revenue against a relationship marketing already bought. Counting it again credits acquisition twice.

  • 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

Litmos → PostHog · diagnose

Diagnostic order — Litmos → PostHog

  1. 01

    Count subscriptions carrying the distinct_id

  2. 02

    Follow one real conversion end to end

  3. 03

    Check whether seat additions produce conversions

    They should not. Only the account's first subscription is acquisition.

  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.

Litmos → PostHog · prove

How it gets proven — Litmos → PostHog

Source of truth

Your billing system's subscriptions by start date, at seats times rate.

  • The distinct_id confirmed present on a live subscription.
  • Purchase events reconciled per transaction against your billing system, with ingestion lag checked over the same window.
  • A seat expansion confirmed not to produce a second acquisition conversion.

Litmos → PostHog · free audit

What we check in the free audit

  • Count subscriptions carrying the distinct_id
  • Follow one real conversion end to end
  • Check whether seat additions produce conversions
  • Check ingestion health and disk before debugging any missing event
  • Read the match rate, not the success message

Checked against

Your billing system's subscriptions by start date, at seats times rate.

Get my free conversion tracking audit

Free30 minutesNo obligation

Litmos → PostHog · when not to buy

When you don't need this — Litmos → PostHog

  • Measure identifier coverage yourself first — pull your last hundred subscriptions and count how many carry the distinct_id.
  • If you sell Litmos internally rather than commercially, there is no acquisition conversion here.
  • 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.

Litmos → PostHog · what we deliver

What gets built — Litmos → PostHog

  • Identifier capture into Litmos

    Write the identifier onto the account at signup so seat growth and renewals trace to the original acquisition.

  • Event source: your billing system on subscription start

    Send the account at seats times rate times expected tenure. Seat additions within an existing account are expansion, not acquisition.

  • 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

    Cancellations and seat reductions should be reflected.

Written guarantee

95%+ tracking accuracy

Measured against Your billing system's subscriptions by start date, at seats times rate.. Miss it and we keep working at no cost.

Get my free conversion tracking audit

From $400 · See packages

FAQ

Litmos → PostHog questions, answered

Not directly, because Litmos is not your app. Pull aggregate usage from Litmos and attach it to the company group instead.

Free · 30 min

Get Litmos and PostHog joined properly

Free30 minutesNo obligation