Skip to main content
Stamped → PostHogIntegration guide

Connecting Stamped to PostHog

Stamped bundles reviews with loyalty and rewards for mid-market ecommerce, so like Yotpo it produces genuine repeat revenue that must not be confused with acquisition. 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 Stamped reward redemption 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

Stamped to PostHog: one person across review, points and order

Use the store customer ID as PostHog's distinct_id, call identify when customers log in, and send orders and redemptions server-side under that ID. Forward Stamped webhook events (points earned, reward redeemed, review submitted) with an event UUID, or derive them from reward-coded orders. Prompt login on the rewards page, since logged-out email visits look like new users.

PostHog earns its place on a Stamped store as a retention lens: do reviewers, points earners and referrers actually buy again, and sooner? Answering that needs one distinct_id per customer. Use the store customer ID as the identified distinct_id, call identify when a customer logs in to check points, and send order and redemption events server-side under the same ID so earlier anonymous browsing merges to the right person.

Stamped's own moments, points earned, reward redeemed, review submitted, happen in Stamped's systems and frames, not in your page code. Check whether Stamped's webhooks cover the events you need; if so, forward them server-side to PostHog with the customer's distinct_id and an event UUID so retries do not duplicate. If not, derive them: a redemption is an order with a reward code, a review is visible in Stamped's export.

The trap is logged-out loyalty traffic. Members open the store from Stamped's points emails on their phones, not logged in, and PostHog treats each visit as a new anonymous person. Retention charts then show members as new users and the rewards page as a poor converter. Prompt login on the rewards page, identify on login, and judge loyalty funnels only on identified users.

Stamped → PostHog · what breaks

Why this join usually fails — Stamped → PostHog

  1. 01

    The distinct_id never reaches Stamped

    Widgets render in Stamped-served frames; referral and reward links route through Stamped before returning to your store.

  2. 02

    Two programs claiming the same order

    Paid acquisition and the rewards program will both count a reward-driven repeat purchase, and neither will mention it. The order gets paid for twice in the reporting and once in reality.

  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.

Stamped → PostHog · the fix

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

Stamped → PostHog · architecture

How Stamped and PostHog actually connect

  1. 1

    Stamped holds the truth

    Reward-driven orders are retention revenue. They belong in a retention figure, and they belong out of the paid acquisition 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 Stamped reward redemption.

  4. 4

    The event source decides reliability

    Purchases, tagged first-order versus reward-driven repeat.

  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.

Stamped → PostHog · normal or broken

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

Normal, not a fault

  • The distinct_id present on the redemption

  • Sent from your order feed with Stamped 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

    Widgets render in Stamped-served frames; referral and reward links route through Stamped before returning to your store.

  • Sent from the browser

    Paid acquisition and the rewards program will both count a reward-driven repeat purchase, and neither will mention it. The order gets paid for twice in the reporting and once in reality.

  • 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

Stamped → PostHog · diagnose

Diagnostic order — Stamped → PostHog

  1. 01

    Count redemptions carrying the distinct_id

  2. 02

    Follow one real conversion end to end

  3. 03

    Count reward-coded orders inside the paid figure

    The overlap is the overstatement, and it is usually larger than anyone expects on stores with mature loyalty programs.

  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.

Stamped → PostHog · prove

How it gets proven — Stamped → PostHog

Source of truth

Store orders flagged by whether a Stamped reward, review coupon or referral applied.

  • 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.
  • First orders reconciled against imported conversions, reward-driven orders excluded and reported on their own.

Stamped → PostHog · free audit

What we check in the free audit

  • Count redemptions carrying the distinct_id
  • Follow one real conversion end to end
  • Count reward-coded orders inside the paid figure
  • Check ingestion health and disk before debugging any missing event
  • Read the match rate, not the success message

Checked against

Store orders flagged by whether a Stamped reward, review coupon or referral applied.

Get my free conversion tracking audit

Free30 minutesNo obligation

Stamped → PostHog · when not to buy

When you don't need this — Stamped → PostHog

  • Measure identifier coverage yourself first — pull your last hundred redemptions and count how many carry the distinct_id.
  • Reviews-only setups need nothing here beyond keeping review events out of the conversion list.
  • 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.

Stamped → PostHog · what we deliver

What gets built — Stamped → PostHog

  • Identifier capture into Stamped

    Capture on your own domain first, then record the reward code on the resulting order so the two revenue types stay separable forever after.

  • Event source: your order feed with Stamped attributes attached

    Purchases, tagged first-order versus reward-driven repeat.

  • 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 reduce the figure.

Written guarantee

95%+ tracking accuracy

Measured against Store orders flagged by whether a Stamped reward, review coupon or referral applied.. Miss it and we keep working at no cost.

Get my free conversion tracking audit

From $400 · See packages

FAQ

Stamped → PostHog questions, answered

Check whether Stamped's webhooks expose the events you need and forward them server-side with the customer's distinct_id. Otherwise derive redemptions from orders carrying a reward code.

Free · 30 min

Get Stamped and PostHog joined properly

Free30 minutesNo obligation