Skip to main content
Klaviyo → MatomoIntegration guide

Connecting Klaviyo to Matomo

Klaviyo holds the profile, the email engagement and — where it is wired to your store — the order. 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 Klaviyo profile 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

Klaviyo email traffic in self-hosted Matomo, minus the _kx token

Klaviyo's UTM tagging gets email traffic into Matomo campaign reports once UTM tracking is on for your flows and campaigns. Add Klaviyo's identifying _kx link token to Matomo's excluded query parameters so it is not stored with every email visit. Send ecommerce orders to Matomo from the store with the order ID, not from Klaviyo.

Matomo reads utm_ parameters as campaign data, so Klaviyo's UTM tagging gets email traffic into Matomo's campaign reports without extra work, as long as UTM tracking is turned on for the flows and campaigns you care about. Check that the utm_campaign value Klaviyo writes is something a person can read, since its default may be the campaign name plus an identifier.

The privacy problem is the other parameter. Klaviyo adds an identifying token (_kx) to tracked links so it can recognize the profile on arrival. If Matomo records full page URLs, that token ends up stored in your analytics database against every email visit, which defeats much of the reason to self-host. Add it to Matomo's excluded URL query parameters for the site, and check existing data.

Send ecommerce orders to Matomo from the store with the order ID, not from Klaviyo. Matomo deduplicates on order ID, and the store's ID is the one that will match. Expect Matomo's email-attributed revenue to differ from Klaviyo's: Klaviyo credits orders within its own attribution window after an open or click, Matomo credits based on the visit's campaign, and opens never reach Matomo at all.

Klaviyo → Matomo · what breaks

Why this join usually fails — Klaviyo → Matomo

  1. 01

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

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

  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.

Klaviyo → Matomo · the fix

What working looks like — Klaviyo → Matomo

  • The first-party visitor ID on every profile

  • 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

Klaviyo → Matomo · architecture

How Klaviyo and Matomo actually connect

  1. 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. 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 Klaviyo profile.

  4. 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. 5

    Deduplication at the destination

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

Klaviyo → Matomo · normal or broken

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

Normal, not a fault

  • The first-party visitor ID present on the profile

  • Sent from the Klaviyo Events API, or a flow webhook

  • 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

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

Klaviyo → Matomo · diagnose

Diagnostic order — Klaviyo → Matomo

  1. 01

    Count profiles carrying the first-party visitor ID

  2. 02

    Follow one real conversion end to end

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

  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.

Klaviyo → Matomo · prove

How it gets proven — Klaviyo → Matomo

Source of truth

Klaviyo's own metric reports for the same window, cross-checked against the store's order records.

  • The first-party visitor ID confirmed present on a live profile.
  • Orders reconciled against the Matomo ecommerce log with order-ID deduplication verified.
  • Klaviyo's counts reconciled against the store's order records before either is used as evidence.

Klaviyo → Matomo · free audit

What we check in the free audit

  • Count profiles carrying the first-party visitor ID
  • Follow one real conversion end to end
  • Check whether the profile carries the identifier property
  • Check tracker reachability and database lag before debugging any tag
  • 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.

Get my free conversion tracking audit

Free30 minutesNo obligation

Klaviyo → Matomo · when not to buy

When you don't need this — Klaviyo → Matomo

  • Measure identifier coverage yourself first — pull your last hundred profiles and count how many carry the first-party visitor 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 privacy or ownership requirement and no team to run it, a hosted product removes the only real cost of this one.

Klaviyo → Matomo · what we deliver

What gets built — Klaviyo → Matomo

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

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

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

Get my free conversion tracking audit

From $400 · See packages

FAQ

Klaviyo → Matomo questions, answered

Yes, through the UTM parameters Klaviyo can append to links. Turn UTM tracking on in Klaviyo and check the values in Matomo's campaign report.

Free · 30 min

Get Klaviyo and Matomo joined properly

Free30 minutesNo obligation