Connecting Klaviyo to PostHog
Klaviyo holds the profile, the email engagement and — where it is wired to your store — the 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 Klaviyo profile 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
Klaviyo email clicks joined to PostHog persons
PostHog joins Klaviyo email clicks to persons only when your site calls identify with your own user ID and sets email as a person property. Klaviyo sends, opens and clicks do not reach PostHog by themselves; use a warehouse source or scheduled export keyed on email. Send purchases from the backend with an order-based UUID, and strip Klaviyo's _kx parameter.
PostHog identifies by distinct_id and Klaviyo by email, so the join happens when a visitor identifies. When someone logs in or checks out, call PostHog's identify with your own user ID and set email as a person property; then a Klaviyo email click that lands on your site with UTMs is tied to the same person PostHog already has. Without that, an email click from a different device starts a new anonymous person, and the email's contribution disappears from PostHog funnels.
Klaviyo's own engagement data, such as sends, opens and clicks, does not reach PostHog by itself. Check whether PostHog's data warehouse sources include Klaviyo for your setup; if not, a scheduled export keyed on email works for cohort analysis. Treat opens as noise because of Apple Mail Privacy Protection, and analyze clicks and sends.
Send purchases to PostHog from the backend with an event UUID tied to the store order, not from a Klaviyo flow. On a self-hosted instance, a retried batch without UUIDs duplicates silently. Also strip the identifying parameter Klaviyo adds to tracked links (_kx) from captured URLs if you do not want it stored in PostHog.
Klaviyo → PostHog · what breaks
Why this join usually fails — Klaviyo → PostHog
- 01
The distinct_id never reaches Klaviyo
Klaviyo identifies profiles by email, which the visitor supplies at signup — often long before or long after the ad click. If the identifier is not written to a profile property at the moment of signup, there is no way to reconstruct which click created the profile.
- 02
Klaviyo is a mirror, not the system of record
Order data in Klaviyo arrives via a sync. Sending revenue from the mirror rather than the source adds a delay and a class of discrepancy that is genuinely hard to debug later.
- 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.
Klaviyo → PostHog · the fix
What working looks like — Klaviyo → PostHog
The distinct_id on every profile
Conversions arriving in PostHog
The event lands on the person profile and becomes available in insights, funnels and session replay.
Reconciled against the source
Klaviyo → PostHog · architecture
How Klaviyo and PostHog actually connect
- 1
Klaviyo holds the truth
Klaviyo profiles are identity-first: the email address is the key. That makes it a natural place to hold an identifier across sessions and devices, and an awkward place to source purchase events, because Klaviyo's order data is a mirror of the store's rather than the original.
- 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 Klaviyo profile.
- 4
The event source decides reliability
Send from a flow webhook on the metric you care about, or read events through the API. Sourcing purchases from Klaviyo rather than the store adds a hop and a sync delay — prefer the store when the store is available.
- 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.
Klaviyo → PostHog · normal or broken
Working vs. broken, side by side — Klaviyo → PostHog
Normal, not a fault
The distinct_id present on the profile
Sent from the Klaviyo Events API, or a flow webhook
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
Klaviyo identifies profiles by email, which the visitor supplies at signup — often long before or long after the ad click. If the identifier is not written to a profile property at the moment of signup, there is no way to reconstruct which click created the profile.
Sent from the browser
Order data in Klaviyo arrives via a sync. Sending revenue from the mirror rather than the source adds a delay and a class of discrepancy that is genuinely hard to debug later.
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
Klaviyo → PostHog · diagnose
Diagnostic order — Klaviyo → PostHog
- 01
Count profiles carrying the distinct_id
- 02
Follow one real conversion end to end
- 03
Check whether the profile carries the identifier property
On profiles created during a paid campaign. Then confirm the signup path writes it, not just the ones created manually or by import.
- 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.
Klaviyo → PostHog · prove
How it gets proven — Klaviyo → PostHog
Source of truth
Klaviyo's own metric reports for the same window, cross-checked against the store's order records.
- The distinct_id confirmed present on a live profile.
- Purchase events reconciled per transaction against your billing system, with ingestion lag checked over the same window.
- Klaviyo's counts reconciled against the store's order records before either is used as evidence.
Klaviyo → PostHog · free audit
What we check in the free audit
- Count profiles carrying the distinct_id
- Follow one real conversion end to end
- Check whether the profile carries the identifier property
- Check ingestion health and disk before debugging any missing event
- Read the match rate, not the success message
Checked against
Klaviyo's own metric reports for the same window, cross-checked against the store's order records.
Free30 minutesNo obligation
Klaviyo → PostHog · when not to buy
When you don't need this — Klaviyo → PostHog
- Measure identifier coverage yourself first — pull your last hundred profiles and count how many carry the distinct_id.
- For revenue events, use your store as the source rather than Klaviyo. Use this integration for the audience and engagement side, which is what Klaviyo is actually authoritative about.
- 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.
Klaviyo → PostHog · what we deliver
What gets built — Klaviyo → PostHog
Identifier capture into Klaviyo
Write the click identifier to a custom profile property at signup, and update it on subsequent identified sessions so the most recent paid touch is available.
Event source: the Klaviyo Events API, or a flow webhook
Send from a flow webhook on the metric you care about, or read events through the API. Sourcing purchases from Klaviyo rather than the store adds a hop and a sync delay — prefer the store when the store is available.
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
Klaviyo mirrors refunds from the store where the integration supports it, but treat the store as authoritative for anything financial.
Written guarantee
95%+ tracking accuracy
Measured against Klaviyo's own metric reports for the same window, cross-checked against the store's order records.. Miss it and we keep working at no cost.
From $400 · See packages
FAQ
Klaviyo → PostHog questions, answered
Identify users in PostHog with your own user ID and store their email as a person property. Email clicks with UTMs then attach to that person once they log in or check out.
Check whether PostHog's data warehouse sources support Klaviyo in your plan; otherwise schedule an export keyed on email.
Almost always because the distinct_id never reached the Klaviyo profile. Klaviyo identifies profiles by email, which the visitor supplies at signup — often long before or long after the ad click. If the identifier is not written to a profile property at the moment of signup, there is no way to reconstruct which click created the profile. 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.
The Klaviyo Events API, or a flow webhook. Send from a flow webhook on the metric you care about, or read events through the API. Sourcing purchases from Klaviyo rather than the store adds a hop and a sync delay — prefer the store when the store is available.
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 Klaviyo → PostHog
- Shopify → KlaviyoConnecting Shopify to Klaviyo
- Klaviyo → MetaConnecting Klaviyo to Meta Conversions API
- Klaviyo → Google AdsConnecting Klaviyo to Google Ads
Using Klaviyo for bookings? How Klaviyo bookings get tracked end to end
RELATED GUIDES
Where Klaviyo → PostHog fits in the rest of your tracking
- Mailchimp → PostHogConnecting Mailchimp to PostHog
- Kit → PostHogConnecting Kit to PostHog
- Omnisend → PostHogConnecting Omnisend to PostHog
- Klaviyo → AmplitudeConnecting Klaviyo to Amplitude
- Klaviyo → Adobe AnalyticsConnecting Klaviyo to Adobe Analytics
- Course creatorsConversion tracking for course creators, including the payments after the first one
Free · 30 min
Get Klaviyo and PostHog joined properly
Free30 minutesNo obligation
