Connecting Dynamic Yield to PostHog
Dynamic Yield personalizes continuously rather than in discrete tests, so there is no stable control group and no clean before-and-after to compare a campaign against. 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 Dynamic Yield experience 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
Dynamic Yield and PostHog: two experiment systems on one site
Decide whether Dynamic Yield or PostHog owns experiments. If Dynamic Yield personalizes, record experience and variation as PostHog event and person properties, then send the purchase server-side through the capture API with the same distinct_id and a UUID. Call identify before checkout or pass PostHog's anonymous ID into the order, or purchases land on another person.
PostHog has its own feature flags and experiments, so a site running both has two systems that can assign variants and neither knows about the other. Decide first which one owns the experiment. If Dynamic Yield owns personalization, PostHog's job is analysis: record the experience and variation as event properties on the pageview and as a person property, then send the purchase server-side through the capture API with the same distinct_id and a UUID so a retried request does not double it.
The distinct_id join is where this breaks. PostHog's browser library creates an anonymous distinct_id; your server knows the customer. Unless the frontend calls identify with your user ID before checkout, or passes PostHog's anonymous ID into the order, the server-side purchase lands on a different person from the one who saw the variation, and funnels by variation show almost nobody converting.
What PostHog adds that Dynamic Yield's own reports do not: session replay of people in each variation, and funnels you define yourself. That makes it a good place to see why a variation underperforms. It does not supply the missing baseline. A PostHog feature flag can define a control group that Dynamic Yield is then told to exclude; test on a real session that the exclusion actually holds.
Dynamic Yield → PostHog · what breaks
Why this join usually fails — Dynamic Yield → PostHog
- 01
The distinct_id never reaches Dynamic Yield
Personalization decisions are made per session and can rewrite page content and links, including the parameters on outbound and internal links.
- 02
No control group, therefore no baseline
Continuous personalization with no holdout makes it impossible to say whether performance changed because of media, because of merchandising, or because the algorithm learned something. Most implementations have no holdout.
- 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.
Dynamic Yield → PostHog · the fix
What working looks like — Dynamic Yield → PostHog
The distinct_id on every experience
Conversions arriving in PostHog
The event lands on the person profile and becomes available in insights, funnels and session replay.
Reconciled against the source
Dynamic Yield → PostHog · architecture
How Dynamic Yield and PostHog actually connect
- 1
Dynamic Yield holds the truth
Always-on personalization means the page a visitor saw in March is not the page a visitor sees today. Year-on-year campaign comparisons quietly stop being comparisons.
- 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 Dynamic Yield experience.
- 4
The event source decides reliability
Send purchases with variant metadata. Hold back a genuine control audience if you want to say anything causal at all.
- 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.
Dynamic Yield → PostHog · normal or broken
Working vs. broken, side by side — Dynamic Yield → PostHog
Normal, not a fault
The distinct_id present on the experience
Sent from your order system with the served 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
Personalization decisions are made per session and can rewrite page content and links, including the parameters on outbound and internal links.
Sent from the browser
Continuous personalization with no holdout makes it impossible to say whether performance changed because of media, because of merchandising, or because the algorithm learned something. Most implementations have no holdout.
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
Dynamic Yield → PostHog · diagnose
Diagnostic order — Dynamic Yield → PostHog
- 01
Count experiences carrying the distinct_id
- 02
Follow one real conversion end to end
- 03
Confirm whether a holdout exists at all
If it does not, the honest reporting position is that campaign performance cannot be cleanly separated from personalization effects.
- 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.
Dynamic Yield → PostHog · prove
How it gets proven — Dynamic Yield → PostHog
Source of truth
Your order system, joined to the personalization variant served.
- The distinct_id confirmed present on a live experience.
- Purchase events reconciled per transaction against your billing system, with ingestion lag checked over the same window.
- Orders reconciled against imported conversions, with holdout performance reported alongside.
Dynamic Yield → PostHog · free audit
What we check in the free audit
- Count experiences carrying the distinct_id
- Follow one real conversion end to end
- Confirm whether a holdout exists at all
- Check ingestion health and disk before debugging any missing event
- Read the match rate, not the success message
Checked against
Your order system, joined to the personalization variant served.
Free30 minutesNo obligation
Dynamic Yield → PostHog · when not to buy
When you don't need this — Dynamic Yield → PostHog
- Measure identifier coverage yourself first — pull your last hundred experiences and count how many carry the distinct_id.
- Without a holdout group, adding conversion tracking will not make the results interpretable. Build the holdout first.
- 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.
Dynamic Yield → PostHog · what we deliver
What gets built — Dynamic Yield → PostHog
Identifier capture into Dynamic Yield
Capture and persist the identifier before personalization renders, and verify that no personalized link template strips the parameters.
Event source: your order system with the served variant attached
Send purchases with variant metadata. Hold back a genuine control audience if you want to say anything causal at all.
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 Your order system, joined to the personalization variant served.. Miss it and we keep working at no cost.
From $400 · See packages
FAQ
Dynamic Yield → PostHog questions, answered
One of them per page, not both. If Dynamic Yield handles personalization, use PostHog to analyze it and, at most, to define a holdout Dynamic Yield excludes.
The server event is probably using a different distinct_id from the browser session that saw the variant. Identify the user before checkout, or carry the browser's distinct_id into the order.
Almost always because the distinct_id never reached the Dynamic Yield experience. Personalization decisions are made per session and can rewrite page content and links, including the parameters on outbound and internal links. 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 system with the served variant attached. Send purchases with variant metadata. Hold back a genuine control audience if you want to say anything causal at all.
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 Dynamic Yield → PostHog
- Dynamic Yield → Google AdsConnecting Dynamic Yield to Google Ads
- Dynamic Yield → MetaConnecting Dynamic Yield to Meta Conversions API
- Dynamic Yield → GA4Connecting Dynamic Yield to GA4
RELATED GUIDES
Where Dynamic Yield → PostHog fits in the rest of your tracking
- RudderStack → PostHogConnecting RudderStack to PostHog
- VWO → PostHogConnecting VWO to PostHog
- Optimizely → PostHogConnecting Optimizely to PostHog
- Dynamic Yield → AmplitudeConnecting Dynamic Yield to Amplitude
- Dynamic Yield → MixpanelConnecting Dynamic Yield to Mixpanel
- B2BConversion tracking for B2B, from first touch to closed-won
- Tealium → PostHogConnecting Tealium to PostHog
- mParticle → PostHogConnecting mParticle to PostHog
Free · 30 min
Get Dynamic Yield and PostHog joined properly
Free30 minutesNo obligation
