Skip to main content
Talkable → PostHogIntegration guide

Connecting Talkable to PostHog

Talkable is built to test referral offers, which means the reward structure is deliberately varying — and reward depth changes both the referral rate and the margin on every referred order. 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 Talkable 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

Talkable to PostHog: keep two experiment systems apart

Send the purchase to PostHog server-side from your order system with the distinct_id captured at checkout, revenue net of the friend discount and an event UUID. Record the Talkable offer variant on the purchase event and as a person property, so checkout experiments can be analyzed with referred orders filtered out. Log any feature flag that gates Talkable's share prompt.

PostHog runs experiments on your site and Talkable runs experiments on referral offers, and both will happily analyze the same orders. If a PostHog checkout experiment overlaps a Talkable offer test, friends assigned the richer offer convert better in whichever checkout variant they happened to land in, and PostHog's experiment result absorbs a difference it did not cause.

Record the Talkable offer variant as a property on the purchase event and as a person property on the friend, then analyze PostHog experiment results with referred orders filtered out or compared separately when the checkout test is what you are measuring. Send the purchase server-side from your order system with the distinct_id captured at checkout, revenue net of the friend discount, and an event UUID so a retried request does not create a second order.

Feature flags can also decide which customers see Talkable's post-purchase share prompt. If you gate it that way, log the flag value on the order too; otherwise a lower share rate in one group looks like a referral offer problem when the prompt simply was not shown.

Talkable → PostHog · what breaks

Why this join usually fails — Talkable → PostHog

  1. 01

    The distinct_id never reaches Talkable

    Referral links carry parameters that can collide with paid ones, and the offer variant is decided by Talkable rather than by your site.

  2. 02

    Two experiments on one audience

    A referral offer test and a campaign test running simultaneously will interfere, and without the variant recorded nobody can say which change moved the number.

  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.

Talkable → PostHog · the fix

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

Talkable → PostHog · architecture

How Talkable and PostHog actually connect

  1. 1

    Talkable holds the truth

    If the referral programme is running an offer test while media is running a campaign test, two experiments share the same traffic and neither result is clean without the variant on the order.

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

  4. 4

    The event source decides reliability

    Send orders net of reward, with the referral offer variant recorded.

  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.

Talkable → PostHog · normal or broken

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

Normal, not a fault

  • The distinct_id present on the referral

  • Sent from your order feed with referral and variant 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

    Referral links carry parameters that can collide with paid ones, and the offer variant is decided by Talkable rather than by your site.

  • Sent from the browser

    A referral offer test and a campaign test running simultaneously will interfere, and without the variant recorded nobody can say which change moved the number.

  • 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

Talkable → PostHog · diagnose

Diagnostic order — Talkable → PostHog

  1. 01

    Count referrals carrying the distinct_id

  2. 02

    Follow one real conversion end to end

  3. 03

    Check whether a referral offer test is running during a campaign test

    First question when an unexplained shift appears, not last.

  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.

Talkable → PostHog · prove

How it gets proven — Talkable → PostHog

Source of truth

Orders flagged by referral, with the offer variant and reward cost recorded.

  • 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.
  • Orders reconciled by referral variant against imported conversions across the full test window.

Talkable → 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 a referral offer test is running during a campaign test
  • Check ingestion health and disk before debugging any missing event
  • Read the match rate, not the success message

Checked against

Orders flagged by referral, with the offer variant and reward cost recorded.

Get my free conversion tracking audit

Free30 minutesNo obligation

Talkable → PostHog · when not to buy

When you don't need this — Talkable → PostHog

  • Measure identifier coverage yourself first — pull your last hundred referrals and count how many carry the distinct_id.
  • If your referral offer is fixed, there is no interference and the variant field is unnecessary.
  • 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.

Talkable → PostHog · what we deliver

What gets built — Talkable → PostHog

  • Identifier capture into Talkable

    Record the offer variant and both identifiers on the order, with precedence written down.

  • Event source: your order feed with referral and variant attached

    Send orders net of reward, with the referral offer variant recorded.

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

Written guarantee

95%+ tracking accuracy

Measured against Orders flagged by referral, with the offer variant and reward cost recorded.. Miss it and we keep working at no cost.

Get my free conversion tracking audit

From $400 · See packages

FAQ

Talkable → PostHog questions, answered

Store the Talkable variant on purchase events and person profiles, then filter or compare experiment results by it. Avoid launching both tests on the same audience at once where you can.

Free · 30 min

Get Talkable and PostHog joined properly

Free30 minutesNo obligation