Skip to main content
Klarna → MatomoIntegration guide

Connecting Klarna to Matomo

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. Matomo can be self-hosted with no third party in the chain, which makes it the one analytics destination where the data genuinely never leaves infrastructure you control. The join between them succeeds or fails on one thing: whether the first-party visitor ID reaches the Klarna order before the conversion happens, because Matomo can only match a conversion it can tie back to a click it recognizes.

Free30 minutesNo obligation

Specific to this pair

Klarna to Matomo: one order, recorded at the right moment

Matomo records each order ID once, so send Klarna orders at capture, server-side. Store Matomo's visitor ID on your order record before the Klarna handoff, then call the HTTP Tracking API when Klarna captures, with that visitor ID, your order number and captured revenue. Add a payment-method custom dimension to compare Klarna approval rates by campaign.

Matomo deduplicates ecommerce orders on order ID, which forces a decision for Klarna stores: the order gets recorded once, so it has to be recorded at the right moment. Track it from the confirmation page and every Klarna order later rejected after review stays in Matomo's revenue. Send it later and the same ID cannot be corrected by a second hit. Choose capture as the point and send it server-side.

To do that, store Matomo's visitor ID on your own order record during checkout, before the shopper is handed to Klarna, then call the Matomo HTTP Tracking API when Klarna captures the order, with that visitor ID, your order number and the captured revenue. Klarna's hosted step or embedded widget is not on your tracker, so the funnel steps inside Klarna are invisible to Matomo either way; measure how many sessions reach Klarna and how many return with an accepted order.

Add a custom dimension for payment method. It lets you compare Klarna's approval rate by campaign, which is the number Klarna stores most need and no ad platform shows. A campaign that sends many shoppers to Klarna who are then declined looks good in a browser conversion count and poor in captured revenue, and Matomo is where that gap can be seen.

Klarna → Matomo · what breaks

Why this join usually fails — Klarna → Matomo

  1. 01

    The first-party visitor ID 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

    Owning the pipeline means owning the outage

    The advantage is that nothing blocks it. The cost is that when the tracking database fills or falls behind on a weekend, the data is gone and no vendor is paging anyone. Hosted tools fail more visibly.

  4. 04

    Nothing reconciles afterwards

    Matomo exposes raw visit logs, so you can inspect the actual hit rather than an aggregate. Check the log, and check ingestion lag alongside it.

Klarna → Matomo · the fix

What working looks like — Klarna → Matomo

  • The first-party visitor ID on every order

  • Conversions arriving in Matomo

    The event lands in your own database and is queryable directly, including the raw log, which most analytics products do not expose.

  • Reconciled against the source

Klarna → Matomo · architecture

How Klarna and Matomo 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

    Matomo needs a click to match

    The site ID, the visitor identifier and the event or ecommerce order. Self-hosted instances additionally need the tracker endpoint reachable and the database keeping up, which hosted tools do not fail at.

  3. 3

    The identifier is the bridge

    The first-party visitor ID, 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

    Matomo deduplicates ecommerce orders on order ID. Without one, a refreshed confirmation page records a second order.

Klarna → Matomo · normal or broken

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

Normal, not a fault

  • The first-party visitor ID present on the order

  • Sent from the order record at Klarna capture

  • Deduplicated correctly

    Matomo deduplicates ecommerce orders on order ID. Without one, a refreshed confirmation page records a second order.

  • Reconciles with the source

Actually broken

  • The first-party visitor 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 is that nothing blocks it. The cost is that when the tracking database fills or falls behind on a weekend, the data is gone and no vendor is paging anyone. Hosted tools fail more visibly.

  • Nobody has reconciled it

Klarna → Matomo · diagnose

Diagnostic order — Klarna → Matomo

  1. 01

    Count orders carrying the first-party visitor ID

  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 tracker reachability and database lag before debugging any tag

    On self-hosted analytics the answer is infrastructure more often than instrumentation.

  5. 05

    Read the match rate, not the success message

    Matomo exposes raw visit logs, so you can inspect the actual hit rather than an aggregate. Check the log, and check ingestion lag alongside it.

Klarna → Matomo · prove

How it gets proven — Klarna → Matomo

Source of truth

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

  • The first-party visitor ID confirmed present on a live order.
  • Orders reconciled against the Matomo ecommerce log with order-ID deduplication verified.
  • Captured orders reconciled net of fees against imported conversions.

Klarna → Matomo · free audit

What we check in the free audit

  • Count orders carrying the first-party visitor ID
  • Follow one real conversion end to end
  • Measure the approval rate and compare against your conversion count
  • Check tracker reachability and database lag before debugging any tag
  • 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 → Matomo · when not to buy

When you don't need this — Klarna → Matomo

  • Measure identifier coverage yourself first — pull your last hundred orders and count how many carry the first-party visitor ID.
  • If you fire on capture already, the decline gap does not affect you.
  • If you have no privacy or ownership requirement and no team to run it, a hosted product removes the only real cost of this one.

Klarna → Matomo · what we deliver

What gets built — Klarna → Matomo

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

    The Matomo HTTP Tracking API, posted server-side from your order system.

  • 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 → Matomo questions, answered

The order is recorded on the confirmation page, including orders Klarna later rejects. Record it server-side on capture instead.

Free · 30 min

Get Klarna and Matomo joined properly

Free30 minutesNo obligation