Skip to main content
Antavo → PostHogIntegration guide

Connecting Antavo to PostHog

Antavo runs enterprise loyalty across online and in-store, which makes the redemption pattern span channels 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 Antavo 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

Antavo in PostHog: one person, online and in-store events

Use the Antavo customer ID as the PostHog distinct_id once members are identified, aliasing the anonymous browser ID at login, and post till transactions server-side with channel set to store. Keep tier and lifetime points as person properties, use the Antavo transaction ID as event UUID, and filter store events by channel.

Unlike session-based analytics, PostHog is organized around persons, so it can hold a member's store redemption next to their app and web behaviour without inventing a fake visit. Use the Antavo customer ID as the distinct_id once the member is identified, alias the anonymous browser ID at login, and post till transactions from your server with a channel property set to store.

That makes the programme's most useful funnel possible: enrolled online, first earn, first redemption, second purchase, split by whether the redemption happened in store or online. Put the current tier and lifetime points on the person as properties rather than sending a balance event on every transaction. Use the Antavo transaction ID as the event UUID so a webhook retry, which loyalty platforms send freely on timeouts, does not show as a second redemption.

Two cautions. Store events arrive without session replay or web context, so any insight that assumes a page view behind every event will misread them; filter by channel. And if you self-host to keep member data in-house, loyalty load is spiky: double-points promotions can multiply transaction volume for a weekend, which is exactly when an under-sized ingestion instance falls behind. Check lag after every promotion before reading its results.

Antavo → PostHog · what breaks

Why this join usually fails — Antavo → PostHog

  1. 01

    The distinct_id never reaches Antavo

    Redemption happens at a till or in an app with no browser session of yours.

  2. 02

    Earning measured online, redemption spent in store

    The half of the programme that costs money happens where your web analytics cannot see it. Reporting only the online side shows a loyalty programme with all of the engagement and none of the liability.

  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.

Antavo → PostHog · the fix

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

Antavo → PostHog · architecture

How Antavo and PostHog actually connect

  1. 1

    Antavo holds the truth

    Points earned online and redeemed in store are the normal pattern for enterprise loyalty. Online-only measurement sees the earning and never the redemption, which makes the programme look free.

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

  4. 4

    The event source decides reliability

    Send online orders net of redemption, with cross-channel earn and burn 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.

Antavo → PostHog · normal or broken

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

Normal, not a fault

  • The distinct_id present on the redemption

  • Sent from your order system with loyalty attributes attached

  • 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 of yours.

  • Sent from the browser

    The half of the programme that costs money happens where your web analytics cannot see it. Reporting only the online side shows a loyalty programme with all of the engagement and none of the liability.

  • 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

Antavo → PostHog · diagnose

Diagnostic order — Antavo → PostHog

  1. 01

    Count redemptions carrying the distinct_id

  2. 02

    Follow one real conversion end to end

  3. 03

    Measure the share of redemptions that happen off the website

    In enterprise retail it is usually the majority, and it is the number that makes the programme's cost real.

  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.

Antavo → PostHog · prove

How it gets proven — Antavo → PostHog

Source of truth

Orders across all channels, with loyalty earn and burn recorded per transaction.

  • 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.
  • Online orders reconciled net of redemption, with off-channel redemption reported as programme cost.

Antavo → PostHog · free audit

What we check in the free audit

  • Count redemptions carrying the distinct_id
  • Follow one real conversion end to end
  • Measure the share of redemptions that happen off the website
  • Check ingestion health and disk before debugging any missing event
  • Read the match rate, not the success message

Checked against

Orders across all channels, with loyalty earn and burn recorded per transaction.

Get my free conversion tracking audit

Free30 minutesNo obligation

Antavo → PostHog · when not to buy

When you don't need this — Antavo → PostHog

  • Measure identifier coverage yourself first — pull your last hundred redemptions and count how many carry the distinct_id.
  • Online-only retailers see both sides and do not have this blind spot.
  • 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.

Antavo → PostHog · what we deliver

What gets built — Antavo → PostHog

  • Identifier capture into Antavo

    Attribute online acquisition only, and report cross-channel redemption as a cost of the programme rather than trying to attribute it.

  • Event source: your order system with loyalty attributes attached

    Send online orders net of redemption, with cross-channel earn and burn 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 Orders across all channels, with loyalty earn and burn recorded per transaction.. Miss it and we keep working at no cost.

Get my free conversion tracking audit

From $400 · See packages

FAQ

Antavo → PostHog questions, answered

Yes, as server-side events on the member's person profile with a channel property, using the Antavo customer ID as distinct_id. They will have no session or web context, so filter them where that matters.

Free · 30 min

Get Antavo and PostHog joined properly

Free30 minutesNo obligation