Skip to main content
Saleor → MatomoIntegration guide

Connecting Saleor to Matomo

Saleor is headless and GraphQL-first, which means the storefront and the commerce engine are separate applications and the identifier has to survive a boundary that traditional platforms do not have. 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 Saleor 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

Saleor to Matomo: one currency per Matomo site

Matomo records revenue in one currency per site, so give each Saleor channel its own Matomo site or convert before sending. Write Matomo's visitor ID into checkout metadata, then post from the paid-order webhook to the HTTP Tracking API with that ID, the order number as ecommerce order ID, line items and revenue.

Matomo records ecommerce revenue in the currency configured for the site, while Saleor lets each channel sell in its own currency. Send orders from a USD channel and a CAD channel into one Matomo site and the revenue report adds dollars to dollars that are not the same dollars. Either give each Saleor channel its own Matomo site, or convert to the site's currency before sending and keep the original amount in a custom dimension.

For the order itself, capture Matomo's visitor ID from its first-party cookie in the storefront and write it into checkout metadata, so the paid-order webhook can post to Matomo's HTTP Tracking API with that visitor ID, the order number as the ecommerce order ID, the line items and the revenue. Matomo deduplicates orders on the order ID, so if the storefront also tracks the order on the confirmation route, use the same order number there and only one counts.

Self-hosted Saleor and self-hosted Matomo together give you a stack where neither the orders nor the analytics leave your infrastructure, which is usually why teams choose this pair. The cost is two systems to keep healthy. When orders go missing from Matomo, check the tracker endpoint and the database's ingestion before suspecting the Saleor webhook.

Saleor → Matomo · what breaks

Why this join usually fails — Saleor → Matomo

  1. 01

    The first-party visitor ID never reaches Saleor

    The storefront holds the browser session; the commerce API holds the order. Nothing carries between them unless the storefront puts it there.

  2. 02

    A storefront that knows the click and an API that holds the money

    Headless architectures split exactly the two things attribution needs to join. If the storefront does not deliberately write the identifier into order metadata, the connection does not exist anywhere.

  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.

Saleor → Matomo · the fix

What working looks like — Saleor → 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

Saleor → Matomo · architecture

How Saleor and Matomo actually connect

  1. 1

    Saleor holds the truth

    In a headless setup the storefront is one of several possible clients. Attributing from it means measuring one channel of a system designed to have many.

  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 Saleor order.

  4. 4

    The event source decides reliability

    Send fully paid orders at their net total, sourced from the API.

  5. 5

    Deduplication at the destination

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

Saleor → Matomo · normal or broken

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

Normal, not a fault

  • The first-party visitor ID present on the order

  • Sent from the Saleor order 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

    The storefront holds the browser session; the commerce API holds the order. Nothing carries between them unless the storefront puts it there.

  • Sent from the browser

    Headless architectures split exactly the two things attribution needs to join. If the storefront does not deliberately write the identifier into order metadata, the connection does not exist anywhere.

  • 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

Saleor → Matomo · diagnose

Diagnostic order — Saleor → Matomo

  1. 01

    Count orders carrying the first-party visitor ID

  2. 02

    Follow one real conversion end to end

  3. 03

    Inspect order metadata on a live order for the identifier

    Either it is on the order or the attribution is guesswork. There is no middle state.

  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.

Saleor → Matomo · prove

How it gets proven — Saleor → Matomo

Source of truth

Saleor orders by payment status, read from the API rather than inferred from the storefront.

  • The first-party visitor ID confirmed present on a live order.
  • Orders reconciled against the Matomo ecommerce log with order-ID deduplication verified.
  • Paid orders reconciled from the API against imported conversions.

Saleor → 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
  • Inspect order metadata on a live order for the identifier
  • Check tracker reachability and database lag before debugging any tag
  • Read the match rate, not the success message

Checked against

Saleor orders by payment status, read from the API rather than inferred from the storefront.

Get my free conversion tracking audit

Free30 minutesNo obligation

Saleor → Matomo · when not to buy

When you don't need this — Saleor → Matomo

  • Measure identifier coverage yourself first — pull your last hundred orders and count how many carry the first-party visitor ID.
  • If you run a single storefront and no other clients, the added complexity of headless attribution buys you nothing over a standard integration.
  • 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.

Saleor → Matomo · what we deliver

What gets built — Saleor → Matomo

  • Identifier capture into Saleor

    Capture in the storefront and write the identifier into order metadata through the API at checkout, so it lives on the order rather than in a session.

  • Event source: the Saleor order webhook

    Send fully paid orders at their net total, sourced from the API.

  • Dispatch to Matomo

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

  • Reversals where they exist

    Refunds and cancellations reverse.

Written guarantee

95%+ tracking accuracy

Measured against Saleor orders by payment status, read from the API rather than inferred from the storefront.. Miss it and we keep working at no cost.

Get my free conversion tracking audit

From $400 · See packages

FAQ

Saleor → Matomo questions, answered

Not accurately, because a Matomo site has one currency. Use a site per channel or convert amounts before sending.

Free · 30 min

Get Saleor and Matomo joined properly

Free30 minutesNo obligation