Skip to main content
Lightspeed → PostHogIntegration guide

Connecting Lightspeed to PostHog

Lightspeed runs the till in retail and hospitality, which means it holds the majority of the revenue and almost none of the digital signal. 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 Lightspeed sale 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 a Lightspeed web store: funnels, not till revenue

Use PostHog on the Lightspeed web store: store the browser's distinct_id on the session or order and capture the purchase server-side, with an event UUID derived from the Lightspeed order ID, or fire it on the confirmation page if checkout prevents that. Do not push till sales into PostHog, and send refunds as a separate event referencing the order.

PostHog earns its place for a Lightspeed merchant on the web store, where you can see people drop between product page, cart and checkout, and a self-hosted or proxied setup keeps those events alive past ad blockers that strip third-party pixels. The order should be captured server-side as a purchase event with the same distinct_id the browser used, which means storing the distinct_id on the session or order before checkout. If the Lightspeed eCom checkout prevents that, fire the event in the browser on the confirmation page with the order number as a property and accept the loss from closed tabs.

Pushing till sales into PostHog creates a person for every receipt email, each with a purchase and no pageviews. Funnels then show conversions from nowhere, and retention cohorts blend walk-in regulars with online buyers. If in-store repeat behavior matters, analyze it from Lightspeed exports or a warehouse and keep PostHog for behavior it actually observed.

Supply an event UUID on server-side purchases derived from the Lightspeed order ID. A webhook retry or a re-run sync script will otherwise send the order twice, and on a self-hosted instance nobody else will notice. Send refunds as a separate event referencing the original order rather than deleting anything.

Lightspeed → PostHog · what breaks

Why this join usually fails — Lightspeed → PostHog

  1. 01

    The distinct_id never reaches Lightspeed

    A point-of-sale terminal has no browser. Online orders, where the business has them, are the only channel with any identifier at all.

  2. 02

    In-store revenue absorbed into online reporting

    If the channel filter is missing, every card taken at the counter becomes an advertising conversion, and the reported return climbs with foot traffic rather than with campaign quality.

  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.

Lightspeed → PostHog · the fix

What working looks like — Lightspeed → PostHog

  • The distinct_id on every sale

  • Conversions arriving in PostHog

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

  • Reconciled against the source

Lightspeed → PostHog · architecture

How Lightspeed and PostHog actually connect

  1. 1

    Lightspeed holds the truth

    The in-store majority is real revenue that no click produced and no click can claim. Naming that share is more useful than any model that quietly absorbs it.

  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 Lightspeed sale.

  4. 4

    The event source decides reliability

    Send online-channel sales at their value. Report in-store revenue alongside as context, never inside the same conversion action.

  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.

Lightspeed → PostHog · normal or broken

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

Normal, not a fault

  • The distinct_id present on the sale

  • Sent from the Lightspeed sales 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

    A point-of-sale terminal has no browser. Online orders, where the business has them, are the only channel with any identifier at all.

  • Sent from the browser

    If the channel filter is missing, every card taken at the counter becomes an advertising conversion, and the reported return climbs with foot traffic rather than with campaign quality.

  • 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

Lightspeed → PostHog · diagnose

Diagnostic order — Lightspeed → PostHog

  1. 01

    Count sales carrying the distinct_id

  2. 02

    Follow one real conversion end to end

  3. 03

    Filter by sales channel and re-check the total

    Compare the filtered figure against the online order count. A mismatch means the filter is wrong before the tracking is.

  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.

Lightspeed → PostHog · prove

How it gets proven — Lightspeed → PostHog

Source of truth

Lightspeed sales by business date, filtered to the online channel where one exists.

  • The distinct_id confirmed present on a live sale.
  • Purchase events reconciled per transaction against your billing system, with ingestion lag checked over the same window.
  • Online-channel sales reconciled against imported conversions for a settled week.

Lightspeed → PostHog · free audit

What we check in the free audit

  • Count sales carrying the distinct_id
  • Follow one real conversion end to end
  • Filter by sales channel and re-check the total
  • Check ingestion health and disk before debugging any missing event
  • Read the match rate, not the success message

Checked against

Lightspeed sales by business date, filtered to the online channel where one exists.

Get my free conversion tracking audit

Free30 minutesNo obligation

Lightspeed → PostHog · when not to buy

When you don't need this — Lightspeed → PostHog

  • Measure identifier coverage yourself first — pull your last hundred sales and count how many carry the distinct_id.
  • A purely bricks-and-mortar business has no online conversion to import. Measure directions, calls and offer-code redemptions instead.
  • 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.

Lightspeed → PostHog · what we deliver

What gets built — Lightspeed → PostHog

  • Identifier capture into Lightspeed

    Attribute the online channel only, and measure in-store influence with a geo holdout or an offer code rather than pretending it is trackable.

  • Event source: the Lightspeed sales record

    Send online-channel sales at their value. Report in-store revenue alongside as context, never inside the same conversion action.

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

Written guarantee

95%+ tracking accuracy

Measured against Lightspeed sales by business date, filtered to the online channel where one exists.. Miss it and we keep working at no cost.

Get my free conversion tracking audit

From $400 · See packages

FAQ

Lightspeed → PostHog questions, answered

Capture the online order server-side with the browser's distinct_id stored on the order and an event UUID built from the order ID. Check whether your Lightspeed eCom checkout lets you carry that ID.

Free · 30 min

Get Lightspeed and PostHog joined properly

Free30 minutesNo obligation