Connecting LeadDyno to PostHog
LeadDyno targets smaller businesses running their first affiliate programme, where the most common outcome is paying commission on customers who would have bought anyway. 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 LeadDyno 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
Activation and retention of LeadDyno-referred users in PostHog
PostHog does not capture LeadDyno codes automatically, so set the initial affiliate as a first-touch person property from the landing URL. The identify merge at signup shows whether the person existed before the referral. Send paid conversions server-side from billing with an event UUID, and refunds as a separate event, to see activation and retention by affiliate.
PostHog is the place to answer a question LeadDyno cannot: whether the users an affiliate refers ever use the product. PostHog captures UTM parameters automatically, but a LeadDyno affiliate code is not one of them. Read it from the landing URL and set it as a person property on first touch, for example the initial affiliate. Do not overwrite it on later visits. Activation and retention can then be broken down by affiliate, which matters most for software sold on recurring commission.
When the referred visitor signs up, the identify call merges their anonymous browsing into the account's distinct_id. That merge shows whether the person existed before the referral. A user whose merged history includes an earlier signup, or months of activity, is an existing customer coming back through someone's link. They are exactly the case where a LeadDyno commission pays for revenue you already had.
Send the paid conversion server-side from billing, with an event UUID, so a retried batch does not create a second purchase on the person. Add LeadDyno refunds as a separate event, so retention by affiliate is not overstated by customers who asked for their money back. On self-hosted PostHog, check ingestion is keeping up before deciding an affiliate's users never activate.
LeadDyno → PostHog · what breaks
Why this join usually fails — LeadDyno → PostHog
- 01
The distinct_id never reaches LeadDyno
Affiliate links land on your store carrying parameters that may overwrite a paid identifier already stored.
- 02
Paying commission on existing customers
First affiliate programmes almost always leak this way. Without a new-customer condition on the commission rule, you are paying a percentage on repeat purchases you would have received for nothing.
- 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.
- 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.
LeadDyno → PostHog · the fix
What working looks like — LeadDyno → 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
LeadDyno → PostHog · architecture
How LeadDyno and PostHog actually connect
- 1
LeadDyno holds the truth
New programmes frequently recruit existing customers as affiliates, who then refer themselves or their own repeat purchases. That is commission on revenue you already had.
- 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
The identifier is the bridge
The distinct_id, captured at the visit and carried into the LeadDyno referral.
- 4
The event source decides reliability
Send orders net of commission, with new-versus-existing customer status recorded.
- 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.
LeadDyno → PostHog · normal or broken
Working vs. broken, side by side — LeadDyno → PostHog
Normal, not a fault
The distinct_id present on the referral
Sent from your order 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 links land on your store carrying parameters that may overwrite a paid identifier already stored.
Sent from the browser
First affiliate programmes almost always leak this way. Without a new-customer condition on the commission rule, you are paying a percentage on repeat purchases you would have received for nothing.
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
LeadDyno → PostHog · diagnose
Diagnostic order — LeadDyno → PostHog
- 01
Count referrals carrying the distinct_id
- 02
Follow one real conversion end to end
- 03
Count affiliate-attributed orders from customers who already existed
If the share is high, the fix is the commission rule rather than the tracking.
- 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.
- 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.
LeadDyno → PostHog · prove
How it gets proven — LeadDyno → PostHog
Source of truth
Orders flagged by affiliate, with the customer's prior relationship 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.
- Affiliate orders reconciled net of commission, split by new versus existing customer.
LeadDyno → PostHog · free audit
What we check in the free audit
- Count referrals carrying the distinct_id
- Follow one real conversion end to end
- Count affiliate-attributed orders from customers who already existed
- Check ingestion health and disk before debugging any missing event
- Read the match rate, not the success message
Checked against
Orders flagged by affiliate, with the customer's prior relationship recorded.
Free30 minutesNo obligation
LeadDyno → PostHog · when not to buy
When you don't need this — LeadDyno → PostHog
- Measure identifier coverage yourself first — pull your last hundred referrals and count how many carry the distinct_id.
- Programmes already restricted to new customers do not have this leak.
- 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.
LeadDyno → PostHog · what we deliver
What gets built — LeadDyno → PostHog
Identifier capture into LeadDyno
Set precedence explicitly and record whether the referred customer was already known to you.
Event source: your order record with affiliate attribution
Send orders net of commission, with new-versus-existing customer status 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 and reclaim commission.
Written guarantee
95%+ tracking accuracy
Measured against Orders flagged by affiliate, with the customer's prior relationship recorded.. Miss it and we keep working at no cost.
From $400 · See packages
FAQ
LeadDyno → PostHog questions, answered
Capture the affiliate code from the landing URL as a first-touch person property, then break down activation and retention by it. PostHog does not pick up LeadDyno's code automatically.
Yes. After the identify call merges anonymous activity into the account, the person's event history shows whether they had signed up or been active before the referral.
Almost always because the distinct_id never reached the LeadDyno referral. Affiliate links land on your store carrying parameters that may overwrite a paid identifier already stored. Measure coverage before debugging the dispatch.
PostHog identifies by distinct_id with an alias call to merge anonymous and identified users. On a self-hosted instance you also control the ingestion endpoint, which means the identifier survives ad blockers that would kill a third-party pixel — one of the few genuine technical advantages available to a first-party setup.
Your order record with affiliate attribution. Send orders net of commission, with new-versus-existing customer status recorded.
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.
More on LeadDyno → PostHog
- Stripe → PostHogConnecting Stripe to PostHog
- PayPal → PostHogConnecting PayPal to PostHog
- Shopify → PostHogConnecting Shopify to PostHog
RELATED GUIDES
Where LeadDyno → PostHog fits in the rest of your tracking
- Post Affiliate Pro → PostHogConnecting Post Affiliate Pro to PostHog
- CJ → PostHogConnecting CJ Affiliate to PostHog
- FirstPromoter → PostHogConnecting FirstPromoter to PostHog
- LeadDyno → Adobe AnalyticsConnecting LeadDyno to Adobe Analytics
- LeadDyno → AmplitudeConnecting LeadDyno to Amplitude
- SubscriptionsConversion tracking for subscription businesses, across the whole lifecycle
- ShareASale → PostHogConnecting ShareASale to PostHog
- Refersion → PostHogConnecting Refersion to PostHog
Free · 30 min
Get LeadDyno and PostHog joined properly
Free30 minutesNo obligation
