Skip to main content
Tapfiliate → PostHogIntegration guide

Connecting Tapfiliate to PostHog

Tapfiliate handles affiliate programmes for SaaS and subscription businesses, where the commission recurs and therefore so does the cost of getting the attribution wrong. 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 Tapfiliate conversion 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

Tapfiliate referrals in PostHog: do affiliate users ever activate?

Set the Tapfiliate affiliate ID, type and referral date as PostHog person properties at signup using a set-once update, so activation and retention can be broken down by affiliate. Call identify at signup with the same user ID you give Tapfiliate so pre-signup referral data merges onto the right person; identifying later can strand it on an anonymous person.

Recurring commission is paid on subscriptions, not on usage, and PostHog is where you find out whether the customers you are paying for actually use the product. Set the affiliate ID, type and referral date as person properties at signup, using a set-once update so a later visit carrying a different referral does not overwrite the original. Activation and retention can then be broken down by affiliate.

The result is often uncomfortable. Some affiliates send customers who pay for three months and never complete onboarding, which is revenue that churns on schedule while the affiliate earns on every month of it. That is evidence for commission terms, a qualifying period or an activation condition, rather than a reason to cut the partner off.

The break is identity. Tapfiliate knows the customer by the ID you sent it; PostHog knows them by distinct_id, anonymous until identify is called. Call identify at signup with the same user ID you give Tapfiliate, and the referral recorded before signup merges onto the right person. If identify happens only after onboarding, the affiliate property can end up on an anonymous person that never merges, and the affiliate looks like it sends no active users.

Tapfiliate → PostHog · what breaks

Why this join usually fails — Tapfiliate → PostHog

  1. 01

    The distinct_id never reaches Tapfiliate

    Affiliate cookies and paid identifiers coexist in the same browser through a trial period that can run weeks.

  2. 02

    Commission continuing on cancelled subscriptions

    Most implementations wire the signup and forget the cancellation, so affiliates keep earning on customers who left months ago. This is money leaving the business quietly and indefinitely.

  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.

Tapfiliate → PostHog · the fix

What working looks like — Tapfiliate → PostHog

  • The distinct_id on every conversion

  • Conversions arriving in PostHog

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

  • Reconciled against the source

Tapfiliate → PostHog · architecture

How Tapfiliate and PostHog actually connect

  1. 1

    Tapfiliate holds the truth

    Recurring commission means an attribution error does not cost you once. It costs you every month until somebody notices, and nobody notices because the amounts are individually small.

  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 Tapfiliate conversion.

  4. 4

    The event source decides reliability

    Send new subscriptions net of commission, with affiliate-sourced ones marked.

  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.

Tapfiliate → PostHog · normal or broken

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

Normal, not a fault

  • The distinct_id present on the conversion

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

    Affiliate cookies and paid identifiers coexist in the same browser through a trial period that can run weeks.

  • Sent from the browser

    Most implementations wire the signup and forget the cancellation, so affiliates keep earning on customers who left months ago. This is money leaving the business quietly and indefinitely.

  • 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

Tapfiliate → PostHog · diagnose

Diagnostic order — Tapfiliate → PostHog

  1. 01

    Count conversions carrying the distinct_id

  2. 02

    Follow one real conversion end to end

  3. 03

    Check whether cancellations reach the affiliate platform

    Usually they do not, because only the signup path was interesting to build.

  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.

Tapfiliate → PostHog · prove

How it gets proven — Tapfiliate → PostHog

Source of truth

Subscriptions flagged by affiliate, with recurring commission recorded against recognized revenue.

  • The distinct_id confirmed present on a live conversion.
  • Purchase events reconciled per transaction against your billing system, with ingestion lag checked over the same window.
  • Commissionable recurring revenue reconciled against active subscriptions, with cancellations proven to reverse.

Tapfiliate → PostHog · free audit

What we check in the free audit

  • Count conversions carrying the distinct_id
  • Follow one real conversion end to end
  • Check whether cancellations reach the affiliate platform
  • Check ingestion health and disk before debugging any missing event
  • Read the match rate, not the success message

Checked against

Subscriptions flagged by affiliate, with recurring commission recorded against recognized revenue.

Get my free conversion tracking audit

Free30 minutesNo obligation

Tapfiliate → PostHog · when not to buy

When you don't need this — Tapfiliate → PostHog

  • Measure identifier coverage yourself first — pull your last hundred conversions and count how many carry the distinct_id.
  • One-off sales programmes do not have the recurring exposure and need only the signup path.
  • 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.

Tapfiliate → PostHog · what we deliver

What gets built — Tapfiliate → PostHog

  • Identifier capture into Tapfiliate

    Record both identifiers with timestamps on the account and apply a written precedence rule at conversion rather than at click.

  • Event source: the subscription record with affiliate attribution

    Send new subscriptions net of commission, with affiliate-sourced ones marked.

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

Written guarantee

95%+ tracking accuracy

Measured against Subscriptions flagged by affiliate, with recurring commission recorded against recognized revenue.. Miss it and we keep working at no cost.

Get my free conversion tracking audit

From $400 · See packages

FAQ

Tapfiliate → PostHog questions, answered

Store affiliate ID and type as person properties with a set-once update at signup, identified with the same user ID Tapfiliate uses, then break activation funnels down by affiliate.

Free · 30 min

Get Tapfiliate and PostHog joined properly

Free30 minutesNo obligation