Skip to main content
FirstPromoter → PostHogIntegration guide

Connecting FirstPromoter to PostHog

FirstPromoter is affiliate and referral tracking aimed at SaaS, where the referrer is frequently an existing customer — which makes the programme a retention mechanism as much as an acquisition one. 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 FirstPromoter 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

Comparing referred and paid users in PostHog

Set FirstPromoter referral type and whether the referrer is a customer as PostHog person properties, reading the referral parameter on landing yourself, and alias the anonymous distinct_id to your user ID at signup. Send subscription started, renewed and cancelled events from billing with a stable UUID per event. Keep commission amounts out; join payouts in your warehouse.

PostHog is where the FirstPromoter distinction between customer referrals and affiliate referrals pays off, because you can compare what each group does after signup. Set referral type, and whether the referrer is an existing customer, as person properties at identification, then compare activation and retention against paid-ad and organic users. If customer-referred accounts retain better, that is a product signal, not a marketing one.

PostHog captures UTM parameters on first visit but treats FirstPromoter's referral parameter as just part of the URL. Read it on landing and set it as a person property yourself, and alias the anonymous distinct_id to your user ID at signup so the pre-signup visit and the account are one person.

Send subscription started, renewed and cancelled events server-side from billing with your user ID as distinct_id and a stable UUID derived from the invoice or subscription event, so a retried webhook does not double revenue. Do not send commission amounts; join payouts to PostHog data in your warehouse if you need margin by referral type. This is one of the better-fitting destinations for this source.

FirstPromoter → PostHog · what breaks

Why this join usually fails — FirstPromoter → PostHog

  1. 01

    The distinct_id never reaches FirstPromoter

    Referral links are shared privately — in Slack, in email, in conversation — and land with a parameter that may overwrite a paid identifier.

  2. 02

    Customer word of mouth billed as media

    When customer referrals and affiliate media share one programme, the acquisition report cannot distinguish a product that people recommend from a commission you paid. Those lead to opposite decisions.

  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.

FirstPromoter → PostHog · the fix

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

FirstPromoter → PostHog · architecture

How FirstPromoter and PostHog actually connect

  1. 1

    FirstPromoter holds the truth

    A customer referring a colleague and a review site earning a commission are both referrals and are nothing alike. One indicates product satisfaction; the other is a media cost.

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

  4. 4

    The event source decides reliability

    Send new subscriptions with the referral type marked, net of commission.

  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.

FirstPromoter → PostHog · normal or broken

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

Normal, not a fault

  • The distinct_id present on the referral

  • Sent from the subscription record with referral 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

    Referral links are shared privately — in Slack, in email, in conversation — and land with a parameter that may overwrite a paid identifier.

  • Sent from the browser

    When customer referrals and affiliate media share one programme, the acquisition report cannot distinguish a product that people recommend from a commission you paid. Those lead to opposite decisions.

  • 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

FirstPromoter → PostHog · diagnose

Diagnostic order — FirstPromoter → PostHog

  1. 01

    Count referrals carrying the distinct_id

  2. 02

    Follow one real conversion end to end

  3. 03

    Split referrers into customers and commercial affiliates

    It is a field on the promoter, and it changes what the whole programme is telling you.

  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.

FirstPromoter → PostHog · prove

How it gets proven — FirstPromoter → PostHog

Source of truth

New subscriptions flagged by referrer, with customer-referrers distinguished from professional affiliates.

  • 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 by referral type against imported conversions.

FirstPromoter → PostHog · free audit

What we check in the free audit

  • Count referrals carrying the distinct_id
  • Follow one real conversion end to end
  • Split referrers into customers and commercial affiliates
  • Check ingestion health and disk before debugging any missing event
  • Read the match rate, not the success message

Checked against

New subscriptions flagged by referrer, with customer-referrers distinguished from professional affiliates.

Get my free conversion tracking audit

Free30 minutesNo obligation

FirstPromoter → PostHog · when not to buy

When you don't need this — FirstPromoter → PostHog

  • Measure identifier coverage yourself first — pull your last hundred referrals and count how many carry the distinct_id.
  • A purely commercial affiliate programme has no customer-referral component and this distinction does not arise.
  • 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.

FirstPromoter → PostHog · what we deliver

What gets built — FirstPromoter → PostHog

  • Identifier capture into FirstPromoter

    Record referral type and paid identifier separately on the account, with an explicit precedence rule.

  • Event source: the subscription record with referral attribution

    Send new subscriptions with the referral type marked, net of commission.

  • 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 reverse and stop commission.

Written guarantee

95%+ tracking accuracy

Measured against New subscriptions flagged by referrer, with customer-referrers distinguished from professional affiliates.. Miss it and we keep working at no cost.

Get my free conversion tracking audit

From $400 · See packages

FAQ

FirstPromoter → PostHog questions, answered

Read the referral parameter on landing and set it as a person property, along with referral type. Then filter or break down funnels and retention by it.

Free · 30 min

Get FirstPromoter and PostHog joined properly

Free30 minutesNo obligation