Skip to main content
Punchh → PostHogIntegration guide

Connecting Punchh to PostHog

Punchh runs loyalty for restaurant and retail chains where members earn in one location and redeem in another, which spreads the programme's cost across sites your advertising cannot see. 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 Punchh loyalty transaction 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 Punchh loyalty app: tie scans to app behavior

Have the loyalty app set the Punchh member ID as PostHog's distinct_id at login, then send Punchh-only events like store check-ins with location and check value, reward redemptions and tier changes on that ID, using the Punchh transaction ID as the event UUID. Keep name, phone and birthday out of properties, and leave loyalty cost reporting to a warehouse.

PostHog is useful for a chain that wants to understand its loyalty app as a product: how many members who install reach signup, first scan, first reward and second visit, and which app screens they use along the way. The app sets the Punchh member ID as the distinct_id at login. Server events from Punchh can then carry the same ID, so in-store behavior and in-app behavior land on one person.

The events worth sending from Punchh are the ones the app cannot see: check-in at a store with location ID and check value, reward redeemed, tier change. Use the Punchh transaction ID as the event UUID, because PostHog deduplicates on it and a retried batch otherwise doubles every visit. A funnel from signup to second visit within 30 days, broken down by the screen members first opened, is the analysis most chains have never seen.

Keep personal data out of event properties: name, phone, birthday. Member ID is enough to join, and a self-hosted PostHog instance makes you responsible for anything stored. Do not use PostHog as the record of loyalty cost; consolidated earn and burn across locations belongs in a warehouse, where finance can reconcile it.

Punchh → PostHog · what breaks

Why this join usually fails — Punchh → PostHog

  1. 01

    The distinct_id never reaches Punchh

    Redemption happens at a till or in an app with no browser session at any point.

  2. 02

    Loyalty cost spread across locations nobody totals

    Points earned at one restaurant and redeemed at another appear in two different location reports and in neither marketing report. The programme looks free until someone consolidates it.

  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.

Punchh → PostHog · the fix

What working looks like — Punchh → PostHog

  • The distinct_id on every redemption

  • Conversions arriving in PostHog

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

  • Reconciled against the source

Punchh → PostHog · architecture

How Punchh and PostHog actually connect

  1. 1

    Punchh holds the truth

    In multi-location chains, earning and redemption happen at different sites on different days. Only the combined view shows what the programme actually costs.

  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 Punchh loyalty transaction.

  4. 4

    The event source decides reliability

    Send member acquisition and online orders net of redemption, with in-store redemption reported separately.

  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.

Punchh → PostHog · normal or broken

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

Normal, not a fault

  • The distinct_id present on the redemption

  • Sent from your POS transaction record with loyalty attributes

  • 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

    Redemption happens at a till or in an app with no browser session at any point.

  • Sent from the browser

    Points earned at one restaurant and redeemed at another appear in two different location reports and in neither marketing report. The programme looks free until someone consolidates it.

  • 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

Punchh → PostHog · diagnose

Diagnostic order — Punchh → PostHog

  1. 01

    Count redemptions carrying the distinct_id

  2. 02

    Follow one real conversion end to end

  3. 03

    Consolidate earn and burn across all locations

    It is the only view that shows the programme's true cost, and chains routinely do not have it.

  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.

Punchh → PostHog · prove

How it gets proven — Punchh → PostHog

Source of truth

Transactions across all locations, with loyalty earn and burn recorded per visit.

  • The distinct_id confirmed present on a live redemption.
  • Purchase events reconciled per transaction against your billing system, with ingestion lag checked over the same window.
  • Member acquisition reconciled against imported conversions, with consolidated redemption cost reported.

Punchh → PostHog · free audit

What we check in the free audit

  • Count redemptions carrying the distinct_id
  • Follow one real conversion end to end
  • Consolidate earn and burn across all locations
  • Check ingestion health and disk before debugging any missing event
  • Read the match rate, not the success message

Checked against

Transactions across all locations, with loyalty earn and burn recorded per visit.

Get my free conversion tracking audit

Free30 minutesNo obligation

Punchh → PostHog · when not to buy

When you don't need this — Punchh → PostHog

  • Measure identifier coverage yourself first — pull your last hundred redemptions and count how many carry the distinct_id.
  • Single-location operators see both halves and do not have the consolidation 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.

Punchh → PostHog · what we deliver

What gets built — Punchh → PostHog

  • Identifier capture into Punchh

    Attribute online and app-signup acquisition only, and report cross-location redemption as programme cost.

  • Event source: your POS transaction record with loyalty attributes

    Send member acquisition and online orders net of redemption, with in-store redemption reported separately.

  • 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 and reclaim points.

Written guarantee

95%+ tracking accuracy

Measured against Transactions across all locations, with loyalty earn and burn recorded per visit.. Miss it and we keep working at no cost.

Get my free conversion tracking audit

From $400 · See packages

FAQ

Punchh → PostHog questions, answered

Yes, if the app sets the Punchh member ID as distinct_id and you send Punchh check-ins server-side with the same ID and the transaction ID as event UUID.

Free · 30 min

Get Punchh and PostHog joined properly

Free30 minutesNo obligation