Skip to main content
Klarna → BigQueryIntegration guide

Connecting Klarna to BigQuery

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. BigQuery has no attribution model, no deduplication rules and no opinion about your data — which makes it the only destination on this site where every number is exactly as good as the query that produced it. The join between them succeeds or fails on one thing: whether whatever join key you decide on reaches the Klarna order before the conversion happens, because BigQuery can only match a conversion it can tie back to a click it recognizes.

Free30 minutesNo obligation

Specific to this pair

Klarna orders in BigQuery: model captures, not just checkouts

Model Klarna in BigQuery as an order table keyed on the Klarna order ID plus an append-only table of captures and refunds, with amounts in minor units converted in a view. Put your store order ID in Klarna's merchant reference field and keep click IDs on the store order. Deduplicate on capture ID and check for uncaptured authorizations daily.

Klarna gives you more state than most payment methods, and BigQuery is where it is worth keeping all of it. An order goes through authorization, creation, one or more captures (partial shipments capture separately), and possibly refunds. Model it as an order table keyed on the Klarna order ID plus an append-only table of captures and refunds, each with the amount in minor units and the currency exactly as Klarna sent them; convert in a view, not on load.

The join to advertising is your own order. Put your store order ID into Klarna's merchant reference field when you create the order (confirm the field name in Klarna's API docs), and keep gclid, fbclid and other click IDs on your store order, not in Klarna. A BigQuery view joining the two then answers what no ad platform will: how many conversions it credited never captured.

A check worth scheduling daily: authorized orders older than your normal fulfillment time with no capture. They are stuck in the warehouse or close to the authorization expiring, and either way they may already have been reported to an ad platform as purchases. Deduplicate on the capture ID, because notification retries and reloads will deliver the same capture more than once, and BigQuery will happily store it twice.

Klarna → BigQuery · what breaks

Why this join usually fails — Klarna → BigQuery

  1. 01

    Whatever join key you decide on 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

    The warehouse quietly disagreeing with every platform

    This is not a bug — it is the point. Your warehouse counts orders; Google counts click-attributed conversions in its window; Meta counts differently again. When the four numbers differ, the warehouse is usually right about revenue and wrong about attribution, and knowing which question you are answering is the whole skill.

  4. 04

    Nothing reconciles afterwards

    BigQuery will not tell you anything is wrong. Verify by querying the table directly against your source system's own totals, and check for duplicate rows on the join key before trusting any aggregate.

Klarna → BigQuery · the fix

What working looks like — Klarna → BigQuery

  • Whatever join key you decide on on every order

  • Conversions arriving in BigQuery

    The row lands in a table you own, joinable to every other table you own, with no window and no expiry.

  • Reconciled against the source

Klarna → BigQuery · architecture

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

    BigQuery needs a click to match

    BigQuery needs a schema and consistent types. The failure mode is not rejection, it is silent divergence: a column that arrives as a string in one load and an integer in the next, or a timestamp in the wrong zone, which produces answers that look plausible and are not.

  3. 3

    The identifier is the bridge

    Whatever join key you decide on, 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

    Nothing deduplicates for you. Streaming inserts are at-least-once, so a retried load can create duplicate rows, and the only protection is a deduplication step you write and actually run.

Klarna → BigQuery · normal or broken

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

Normal, not a fault

  • Whatever join key you decide on present on the order

  • Sent from the order record at Klarna capture

  • Deduplicated correctly

    Nothing deduplicates for you. Streaming inserts are at-least-once, so a retried load can create duplicate rows, and the only protection is a deduplication step you write and actually run.

  • Reconciles with the source

Actually broken

  • Whatever join key you decide on 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

    This is not a bug — it is the point. Your warehouse counts orders; Google counts click-attributed conversions in its window; Meta counts differently again. When the four numbers differ, the warehouse is usually right about revenue and wrong about attribution, and knowing which question you are answering is the whole skill.

  • Nobody has reconciled it

Klarna → BigQuery · diagnose

Diagnostic order — Klarna → BigQuery

  1. 01

    Count orders carrying whatever join key you decide on

  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

    Reconcile warehouse order counts against each platform for one closed window

    The gaps localize the problem: a gap against all platforms is a collection issue, a gap against one is that platform's window or matching.

  5. 05

    Read the match rate, not the success message

    BigQuery will not tell you anything is wrong. Verify by querying the table directly against your source system's own totals, and check for duplicate rows on the join key before trusting any aggregate.

Klarna → BigQuery · prove

How it gets proven — Klarna → BigQuery

Source of truth

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

  • Whatever join key you decide on confirmed present on a live order.
  • Warehouse order counts and revenue reconciled against the source system for a fully closed window, with duplicates checked on the join key.
  • Captured orders reconciled net of fees against imported conversions.

Klarna → BigQuery · free audit

What we check in the free audit

  • Count orders carrying whatever join key you decide on
  • Follow one real conversion end to end
  • Measure the approval rate and compare against your conversion count
  • Reconcile warehouse order counts against each platform for one closed window
  • 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 → BigQuery · when not to buy

When you don't need this — Klarna → BigQuery

  • Measure identifier coverage yourself first — pull your last hundred orders and count how many carry whatever join key you decide on.
  • If you fire on capture already, the decline gap does not affect you.
  • If you have one store and one ad platform, a warehouse is infrastructure you will maintain for a reconciliation you could do in a spreadsheet.

Klarna → BigQuery · what we deliver

What gets built — Klarna → BigQuery

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

    Streaming inserts or scheduled batch loads from your order system, with the raw event retained alongside whatever you derive from it.

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

Store your own order ID in Klarna's merchant reference when you create the order, and keep click IDs on your store order. Join on that order ID.

Free · 30 min

Get Klarna and BigQuery joined properly

Free30 minutesNo obligation