Skip to main content
Rewardful → PostHogIntegration guide

Connecting Rewardful to PostHog

Rewardful reads directly from Stripe, which makes it unusually accurate about revenue and unusually blind to everything that happened before the customer reached checkout. 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 Rewardful referral 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

Rewardful in PostHog: affiliate trials versus paid trials

Call identify at signup so the anonymous ID merges into your user ID, store that ID in Stripe customer metadata beside the Rewardful referral, and send the subscription from the Stripe webhook to PostHog with the same distinct_id, a UUID derived from the Stripe invoice ID, and the affiliate token, also set as a person property.

PostHog is the one destination here that can answer the question Rewardful is blind to: do affiliate-referred users behave differently in the product than paid-search users? To get there, the PostHog distinct_id has to survive into Stripe. Call identify at signup so the anonymous browser ID merges into your user ID, then store that user ID in Stripe customer metadata alongside the Rewardful referral when the subscription is created.

Send the subscription from the Stripe webhook as a server-side event with the same distinct_id, a UUID derived from the Stripe invoice ID so a retried webhook does not duplicate, and properties for plan, amount and the Rewardful affiliate token. Set the token as a person property too, so every later product event can be filtered by referral source without joining tables.

The usual break is that identify is called after the signup form posts, or not at all on the OAuth signup path, so the person who clicked the affiliate link and the person who paid are two PostHog persons. Check whether PostHog's Stripe data warehouse source fits your setup for revenue reporting; it does not replace the event, because the warehouse sync carries the Stripe customer but not the PostHog person unless you join them yourself.

Rewardful → PostHog · what breaks

Why this join usually fails — Rewardful → PostHog

  1. 01

    The distinct_id never reaches Rewardful

    The referral cookie is set on click and read at checkout; a paid identifier stored earlier is invisible to Rewardful entirely.

  2. 02

    Accurate revenue, invisible overlap

    Rewardful will tell you exactly what an affiliate earned and nothing about whether you also paid Google for the same customer. Putting both identifiers in Stripe metadata is the cheapest fix available and almost nobody does 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.

Rewardful → PostHog · the fix

What working looks like — Rewardful → PostHog

  • The distinct_id on every referral

  • Conversions arriving in PostHog

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

  • Reconciled against the source

Rewardful → PostHog · architecture

How Rewardful and PostHog actually connect

  1. 1

    Rewardful holds the truth

    Because it reads Stripe, the revenue figure is right. What it cannot see is the paid click that preceded the referral link, which is exactly the overlap you need to measure.

  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 Rewardful referral.

  4. 4

    The event source decides reliability

    Send new subscriptions net of commission, with the referral flag from Stripe metadata.

  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.

Rewardful → PostHog · normal or broken

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

Normal, not a fault

  • The distinct_id present on the referral

  • Sent from the Stripe subscription with Rewardful attribution

  • 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

    The referral cookie is set on click and read at checkout; a paid identifier stored earlier is invisible to Rewardful entirely.

  • Sent from the browser

    Rewardful will tell you exactly what an affiliate earned and nothing about whether you also paid Google for the same customer. Putting both identifiers in Stripe metadata is the cheapest fix available and almost nobody does 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

Rewardful → PostHog · diagnose

Diagnostic order — Rewardful → PostHog

  1. 01

    Count referrals carrying the distinct_id

  2. 02

    Follow one real conversion end to end

  3. 03

    Check whether Stripe customer metadata holds both identifiers

    If it holds only one, the overlap between affiliate and paid is unmeasurable after the fact.

  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.

Rewardful → PostHog · prove

How it gets proven — Rewardful → PostHog

Source of truth

Stripe subscriptions flagged by referral, with commission calculated on actual Stripe revenue.

  • The distinct_id confirmed present on a live referral.
  • Purchase events reconciled per transaction against your billing system, with ingestion lag checked over the same window.
  • New subscriptions reconciled in Stripe with both referral and paid identifiers present, and the overlap stated.

Rewardful → PostHog · free audit

What we check in the free audit

  • Count referrals carrying the distinct_id
  • Follow one real conversion end to end
  • Check whether Stripe customer metadata holds both identifiers
  • Check ingestion health and disk before debugging any missing event
  • Read the match rate, not the success message

Checked against

Stripe subscriptions flagged by referral, with commission calculated on actual Stripe revenue.

Get my free conversion tracking audit

Free30 minutesNo obligation

Rewardful → PostHog · when not to buy

When you don't need this — Rewardful → PostHog

  • Measure identifier coverage yourself first — pull your last hundred referrals and count how many carry the distinct_id.
  • If you run no paid media alongside the affiliate programme, there is no overlap to measure.
  • 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.

Rewardful → PostHog · what we deliver

What gets built — Rewardful → PostHog

  • Identifier capture into Rewardful

    Store the paid identifier in Stripe customer metadata alongside the referral, so the overlap is visible in one place.

  • Event source: the Stripe subscription with Rewardful attribution

    Send new subscriptions net of commission, with the referral flag from Stripe metadata.

  • 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 refunds reverse in both systems.

Written guarantee

95%+ tracking accuracy

Measured against Stripe subscriptions flagged by referral, with commission calculated on actual Stripe revenue.. Miss it and we keep working at no cost.

Get my free conversion tracking audit

From $400 · See packages

FAQ

Rewardful → PostHog questions, answered

Store the affiliate token on the PostHog person at signup and on the subscription event from the Stripe webhook. Then filter funnels and retention by that property.

Free · 30 min

Get Rewardful and PostHog joined properly

Free30 minutesNo obligation