Skip to main content
Klarna → SegmentIntegration guide

Connecting Klarna to Segment

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. Segment is a customer data platform rather than an ad network, so sending to it is not about matching a conversion — it is about putting one clean event where every other destination can read it. The join between them succeeds or fails on one thing: whether the userId and anonymousId reaches the Klarna order before the conversion happens, because Segment can only match a conversion it can tie back to a click it recognizes.

Free30 minutesNo obligation

Specific to this pair

Klarna to Segment: Order Completed at capture, one messageId

Send Segment's Order Completed at Klarna capture for revenue and a separate payment authorized event for tools that need speed, choosing destinations for each. Use payment_method as a property, convert minor units, and derive messageId from the Klarna capture ID. Store the session's anonymousId and userId on the order before the Klarna handoff so server calls have a person.

Segment's ecommerce spec has an Order Completed event with order_id, revenue and products, and the question for Klarna is when to send it. Send it at authorization and every downstream tool, ad destinations and warehouse alike, counts declined and cancelled orders. Send it at capture and ad destinations may receive it days later. For fan-out, send both: Order Completed at capture for revenue, and a separate payment authorized event for the tools that need speed, with Segment told which destinations get which.

Put payment_method as a property instead of inventing Klarna-specific event names, convert Klarna's minor units before setting revenue, and derive the messageId from the Klarna capture ID so a retried notification is dropped instead of fanned out to every tool. Partial shipments capture more than once; decide whether Order Completed fires on the first capture or the last, and record the others as their own events with their own IDs.

Identity is the other half. The server-side call from your capture handler has no browser, so the anonymousId and userId from the shopper's session must be stored on the order before the Klarna handoff. Without them Segment records a purchase with no person behind it, and every connected destination inherits that orphan at once.

Klarna → Segment · what breaks

Why this join usually fails — Klarna → Segment

  1. 01

    The userId and anonymousId never reaches Klarna

    The checkout hands off to Klarna's hosted flow and returns, and approval happens on Klarna's side.

  2. 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.

  3. 03

    One bad event multiplied across every destination

    Segment's value is fan-out, which is also its risk. An inconsistent identity or a duplicated event does not break one report — it breaks every connected tool simultaneously, and tracing it back is harder than debugging a direct integration.

  4. 04

    Nothing reconciles afterwards

    Segment's debugger shows events arriving and which destinations accepted them. Arriving is not the test — check a destination you care about and confirm the event landed there with the identity intact, then reconcile against your own records.

Klarna → Segment · the fix

What working looks like — Klarna → Segment

  • The userId and anonymousId on every order

  • Conversions arriving in Segment

    Events land in Segment and forward to every connected destination, warehouse included, on one shared definition.

  • Reconciled against the source

Klarna → Segment · architecture

How Klarna and Segment actually connect

  1. 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. 2

    Segment needs a click to match

    Segment needs a consistent identity model — the same userId everywhere, an alias when an anonymous visitor becomes known, and event names that follow one spec. Feeding it inconsistent identities pushes the mess to every connected destination at once.

  3. 3

    The identifier is the bridge

    The userId and anonymousId, captured at the visit and carried into the Klarna order.

  4. 4

    The event source decides reliability

    Send captured orders at the amount you actually receive after Klarna's fee.

  5. 5

    Deduplication at the destination

    Segment deduplicates on messageId within a window. Because it fans out to many destinations, a duplicate here becomes a duplicate everywhere, which makes idempotent messageIds more important than in any single-destination integration.

Klarna → Segment · normal or broken

Working vs. broken, side by side — Klarna → Segment

Normal, not a fault

  • The userId and anonymousId present on the order

  • Sent from the order record at Klarna capture

  • Deduplicated correctly

    Segment deduplicates on messageId within a window. Because it fans out to many destinations, a duplicate here becomes a duplicate everywhere, which makes idempotent messageIds more important than in any single-destination integration.

  • Reconciles with the source

Actually broken

  • The userId and anonymousId 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

    Segment's value is fan-out, which is also its risk. An inconsistent identity or a duplicated event does not break one report — it breaks every connected tool simultaneously, and tracing it back is harder than debugging a direct integration.

  • Nobody has reconciled it

Klarna → Segment · diagnose

Diagnostic order — Klarna → Segment

  1. 01

    Count orders carrying the userId and anonymousId

  2. 02

    Follow one real conversion end to end

  3. 03

    Measure the approval rate and compare against your conversion count

    If conversions exceed captured orders, declines are being counted.

  4. 04

    Check identity resolution before checking anything downstream

    If anonymousId is never aliased to userId, every destination sees two people where there is one, and no downstream fix helps.

  5. 05

    Read the match rate, not the success message

    Segment's debugger shows events arriving and which destinations accepted them. Arriving is not the test — check a destination you care about and confirm the event landed there with the identity intact, then reconcile against your own records.

Klarna → Segment · prove

How it gets proven — Klarna → Segment

Source of truth

Klarna orders that were actually approved and captured, not orders attempted.

  • The userId and anonymousId confirmed present on a live order.
  • An anonymous session confirmed aliased to a known user, with the event visible in at least one downstream destination.
  • Captured orders reconciled net of fees against imported conversions.

Klarna → Segment · free audit

What we check in the free audit

  • Count orders carrying the userId and anonymousId
  • Follow one real conversion end to end
  • Measure the approval rate and compare against your conversion count
  • Check identity resolution before checking anything downstream
  • Read the match rate, not the success message

Checked against

Klarna orders that were actually approved and captured, not orders attempted.

Get my free conversion tracking audit

Free30 minutesNo obligation

Klarna → Segment · when not to buy

When you don't need this — Klarna → Segment

  • Measure identifier coverage yourself first — pull your last hundred orders and count how many carry the userId and anonymousId.
  • If you fire on capture already, the decline gap does not affect you.
  • If you send to one or two destinations, Segment is infrastructure you do not need — direct integrations are simpler and cheaper. It earns its place at genuine fan-out.

Klarna → Segment · what we deliver

What gets built — Klarna → Segment

  • 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 Segment

    Server-side track and identify calls with a stable messageId, consistent userId, and the click identifier carried as a trait or property.

  • 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.

Get my free conversion tracking audit

From $400 · See packages

FAQ

Klarna → Segment questions, answered

At capture, when the money is yours. If one destination needs a faster signal, send a separate authorization event to that destination only.

Free · 30 min

Get Klarna and Segment joined properly

Free30 minutesNo obligation