Connecting Klarna to PostHog
Klarna approves the shopper and takes on the credit risk, which means an order can be placed and then declined at the approval step — after the customer thought they had bought. 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 Klarna order 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
Klarna to PostHog: approval rate by campaign, in your own data
Capture a PostHog event when the shopper chooses Klarna, keep the same stable distinct_id on your order record, then send the outcome from your server when Klarna accepts, rejects or captures the order. Derive the event UUID from order number plus status, record declines only as accepted or rejected, and keep billing details out of properties.
PostHog's value for a Klarna store is a number no ad platform shows: what share of shoppers sent to Klarna come back approved, broken down by campaign and landing page. Capture an event when the shopper chooses Klarna, keep the same distinct_id on your order record, then send the outcome from your server when Klarna accepts, rejects or captures the order.
Use a stable distinct_id stored on the order before the Klarna step, since the Klarna widget or hosted page is outside your PostHog capture and the shopper may return on a different tab. Derive the event UUID from your order number plus the status so a retried webhook does not duplicate the captured purchase. Record the decline as an outcome property without any detail beyond accepted or rejected; Klarna does not give you a reason, and you should not try to infer one.
Keep personal data out of event properties. Billing names, addresses and phone numbers from Klarna orders belong in your order system, not in an analytics tool, self-hosted or not. If you use session replay, check that the checkout page masks inputs, and accept that Klarna's iframe contents will not be recorded, which is correct.
Klarna → PostHog · what breaks
Why this join usually fails — Klarna → PostHog
- 01
The distinct_id never reaches Klarna
The checkout hands off to Klarna's hosted flow and returns, and approval happens on Klarna's side.
- 02
Firing before Klarna approves
An order fired at checkout that Klarna then declines is a conversion that never happened. On categories with lower approval rates the gap is material and it is entirely invisible in the ad platform.
- 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.
Klarna → PostHog · the fix
What working looks like — Klarna → PostHog
The distinct_id on every order
Conversions arriving in PostHog
The event lands on the person profile and becomes available in insights, funnels and session replay.
Reconciled against the source
Klarna → PostHog · architecture
How Klarna and PostHog actually connect
- 1
Klarna holds the truth
Klarna runs its own approval. A declined shopper produces an abandoned order that can look like a completed one depending on where in the flow the conversion fires.
- 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 Klarna order.
- 4
The event source decides reliability
Send captured orders at the amount you actually receive after Klarna's fee.
- 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.
Klarna → PostHog · normal or broken
Working vs. broken, side by side — Klarna → PostHog
Normal, not a fault
The distinct_id present on the order
Sent from the order record at Klarna capture
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 checkout hands off to Klarna's hosted flow and returns, and approval happens on Klarna's side.
Sent from the browser
An order fired at checkout that Klarna then declines is a conversion that never happened. On categories with lower approval rates the gap is material and it is entirely invisible in the ad platform.
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
Klarna → PostHog · diagnose
Diagnostic order — Klarna → PostHog
- 01
Count orders carrying the distinct_id
- 02
Follow one real conversion end to end
- 03
Measure the approval rate and compare against your conversion count
If conversions exceed captured orders, declines are being counted.
- 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.
Klarna → PostHog · prove
How it gets proven — Klarna → PostHog
Source of truth
Klarna orders that were actually approved and captured, not orders attempted.
- The distinct_id confirmed present on a live order.
- Purchase events reconciled per transaction against your billing system, with ingestion lag checked over the same window.
- Captured orders reconciled net of fees against imported conversions.
Klarna → PostHog · free audit
What we check in the free audit
- Count orders carrying the distinct_id
- Follow one real conversion end to end
- Measure the approval rate and compare against your conversion count
- Check ingestion health and disk before debugging any missing event
- Read the match rate, not the success message
Checked against
Klarna orders that were actually approved and captured, not orders attempted.
Free30 minutesNo obligation
Klarna → PostHog · when not to buy
When you don't need this — Klarna → PostHog
- Measure identifier coverage yourself first — pull your last hundred orders and count how many carry the distinct_id.
- If you fire on capture already, the decline gap does not affect you.
- 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.
Klarna → PostHog · what we deliver
What gets built — Klarna → PostHog
Identifier capture into Klarna
Capture on your own domain, persist through the handoff, and fire the conversion on capture rather than on order creation.
Event source: the order record at Klarna capture
Send captured orders at the amount you actually receive after Klarna's fee.
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 and returns reverse. Klarna's shopper base returns at above-average rates on some categories.
Written guarantee
95%+ tracking accuracy
Measured against Klarna orders that were actually approved and captured, not orders attempted.. Miss it and we keep working at no cost.
From $400 · See packages
FAQ
Klarna → PostHog questions, answered
Log an event when shoppers choose Klarna, then send the accepted or rejected outcome server-side with the same distinct_id. A funnel between them gives approval rate by source.
No. Klarna's widget and hosted steps run on Klarna's side, so replay shows your page around them only.
Almost always because the distinct_id never reached the Klarna order. The checkout hands off to Klarna's hosted flow and returns, and approval happens on Klarna's side. 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 order record at Klarna capture. Send captured orders at the amount you actually receive after Klarna's fee.
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 Klarna → PostHog
- Stripe → PostHogConnecting Stripe to PostHog
- PayPal → PostHogConnecting PayPal to PostHog
- Shopify → PostHogConnecting Shopify to PostHog
RELATED GUIDES
Where Klarna → PostHog fits in the rest of your tracking
- Afterpay → PostHogConnecting Afterpay to PostHog
- Elavon → PostHogConnecting Elavon to PostHog
- Worldpay → PostHogConnecting Worldpay to PostHog
- Klarna → Adobe AnalyticsConnecting Klarna to Adobe Analytics
- Klarna → MixpanelConnecting Klarna to Mixpanel
- Financial servicesConversion tracking for financial services, built for the compliance review
- Helcim → PostHogConnecting Helcim to PostHog
- Square → PostHogConnecting Square to PostHog
Free · 30 min
Get Klarna and PostHog joined properly
Free30 minutesNo obligation
