Connecting ShareASale to PostHog
ShareASale is a long-established last-click affiliate network, which means the same voucher-code interception problem as any last-click programme, at the scale of a very large publisher base. 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 ShareASale transaction 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
PostHog for affiliate click-to-order timing
Capture the ShareASale affiliate ID and click time as PostHog person properties at landing, then send the completed order server-side with the distinct_id saved on it and a UUID against retries. Chart click-to-order time by publisher type to expose interception. Map ShareASale and Awin landing parameters to one property so trends survive the 2025 migration.
PostHog can answer the interception question in your own data. Capture the affiliate ID and the click time as person properties when a visitor lands with the affiliate parameter, alongside the initial UTM source PostHog already records. Then the completed order, sent server-side with the distinct_id saved on it, carries both the first touch and the affiliate touch for the same person.
Build an insight on time from affiliate click to order by publisher type. Coupon and cashback publishers will cluster in the last minutes before checkout; content publishers spread across days. Session replays of a few intercepted orders are often more persuasive to a finance team than a report: you can watch the shopper leave the cart page, return through the coupon site, and pay.
Keep the property names stable when the network changes. If your program moved from ShareASale to Awin in 2025, the landing parameter changed, and a property captured from the old parameter will stop populating without an error. Map both to one property so trend lines do not break at the migration date, and send the order with a UUID so retried webhook posts do not double it.
ShareASale → PostHog · what breaks
Why this join usually fails — ShareASale → PostHog
- 01
The distinct_id never reaches ShareASale
The affiliate cookie is set on click and read at checkout, and a voucher-site click seconds before the order will overwrite whatever preceded it.
- 02
Voucher publishers earning on sales your ads produced
A customer arrives from a paid ad, opens a tab to find a code, clicks a voucher site's link and returns to buy. Under last-click the voucher site earns the commission on a sale your advertising created — and your paid reporting counts it too.
- 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.
ShareASale → PostHog · the fix
What working looks like — ShareASale → 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
ShareASale → PostHog · architecture
How ShareASale and PostHog actually connect
- 1
ShareASale holds the truth
Publisher type is the whole analysis. Content publishers introduce customers; voucher and cashback publishers intercept them at the basket. Both are paid the same way and they are not the same thing.
- 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 ShareASale transaction.
- 4
The event source decides reliability
Send orders net of commission, with affiliate-sourced orders marked and publisher type 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.
ShareASale → PostHog · normal or broken
Working vs. broken, side by side — ShareASale → PostHog
Normal, not a fault
The distinct_id present on the conversion
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
The affiliate cookie is set on click and read at checkout, and a voucher-site click seconds before the order will overwrite whatever preceded it.
Sent from the browser
A customer arrives from a paid ad, opens a tab to find a code, clicks a voucher site's link and returns to buy. Under last-click the voucher site earns the commission on a sale your advertising created — and your paid reporting counts it too.
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
ShareASale → PostHog · diagnose
Diagnostic order — ShareASale → PostHog
- 01
Count conversions carrying the distinct_id
- 02
Follow one real conversion end to end
- 03
Segment commissions by publisher type and time-from-click to order
Clicks seconds before an order are interception. That segmentation is available and rarely run.
- 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.
ShareASale → PostHog · prove
How it gets proven — ShareASale → PostHog
Source of truth
Orders flagged by affiliate, with commission recorded and the publisher type identified.
- 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.
- Orders reconciled net of commission against imported conversions, with the paid-media overlap measured.
ShareASale → PostHog · free audit
What we check in the free audit
- Count conversions carrying the distinct_id
- Follow one real conversion end to end
- Segment commissions by publisher type and time-from-click to order
- 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 commission recorded and the publisher type identified.
Free30 minutesNo obligation
ShareASale → PostHog · when not to buy
When you don't need this — ShareASale → PostHog
- Measure identifier coverage yourself first — pull your last hundred conversions and count how many carry the distinct_id.
- No affiliate programme means none of this applies. If you run one, the commission structure by publisher type will change your economics more than tracking accuracy will.
- 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.
ShareASale → PostHog · what we deliver
What gets built — ShareASale → PostHog
Identifier capture into ShareASale
Record the click timestamp alongside the affiliate identifier so late-journey interception is visible.
Event source: your order record with affiliate attribution
Send orders net of commission, with affiliate-sourced orders marked and publisher type 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 should reverse the commission.
Written guarantee
95%+ tracking accuracy
Measured against Orders flagged by affiliate, with commission recorded and the publisher type identified.. Miss it and we keep working at no cost.
From $400 · See packages
FAQ
ShareASale → PostHog questions, answered
Store the affiliate click time on the person and chart click-to-order time by publisher type. Minutes before checkout means interception.
Often the network or its landing parameter changed. Capture from both old and new parameters into one property.
Almost always because the distinct_id never reached the ShareASale transaction. The affiliate cookie is set on click and read at checkout, and a voucher-site click seconds before the order will overwrite whatever preceded it. 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 affiliate-sourced orders marked and publisher type 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 ShareASale → PostHog
- Stripe → PostHogConnecting Stripe to PostHog
- PayPal → PostHogConnecting PayPal to PostHog
- Shopify → PostHogConnecting Shopify to PostHog
RELATED GUIDES
Where ShareASale → PostHog fits in the rest of your tracking
- Tapfiliate → PostHogConnecting Tapfiliate to PostHog
- LeadDyno → PostHogConnecting LeadDyno to PostHog
- CJ → PostHogConnecting CJ Affiliate to PostHog
- ShareASale → Adobe AnalyticsConnecting ShareASale to Adobe Analytics
- ShareASale → AmplitudeConnecting ShareASale to Amplitude
- SaaSConversion tracking for SaaS, from signup through to the payment that matters
- Post Affiliate Pro → PostHogConnecting Post Affiliate Pro to PostHog
- FirstPromoter → PostHogConnecting FirstPromoter to PostHog
Free · 30 min
Get ShareASale and PostHog joined properly
Free30 minutesNo obligation
