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
- 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.
- 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.
- 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.
- 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
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
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
The identifier is the bridge
The first-party visitor ID, captured at the visit and carried into the Saleor order.
- 4
The event source decides reliability
Send fully paid orders at their net total, sourced from the API.
- 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
- 01
Count orders carrying the first-party visitor ID
- 02
Follow one real conversion end to end
- 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.
- 04
Check tracker reachability and database lag before debugging any tag
On self-hosted analytics the answer is infrastructure more often than instrumentation.
- 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.
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.
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.
Read Matomo's visitor ID from its cookie in the storefront, write it into checkout metadata, and send it with the order from the webhook.
Almost always because the first-party visitor ID never reached the Saleor order. The storefront holds the browser session; the commerce API holds the order. Nothing carries between them unless the storefront puts it there. Measure coverage before debugging the dispatch.
Matomo sets its own first-party cookie and, when self-hosted on your domain, is not a third-party request at all. That means ad blockers and browser tracking-prevention affect it far less than a hosted analytics tag — one of the few genuine measurement advantages available under current privacy conditions.
The Saleor order webhook. Send fully paid orders at their net total, sourced from the API.
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.
More on Saleor → Matomo
- Saleor → Google AdsConnecting Saleor to Google Ads
- Saleor → MetaConnecting Saleor to Meta Conversions API
- Saleor → GA4Connecting Saleor to GA4
RELATED GUIDES
Where Saleor → Matomo fits in the rest of your tracking
- Medusa → MatomoConnecting Medusa to Matomo
- SureCart → MatomoConnecting SureCart to Matomo
- WooCommerce → MatomoConnecting WooCommerce to Matomo
- Saleor → GA4Connecting Saleor to GA4
- Saleor → Adobe AnalyticsConnecting Saleor to Adobe Analytics
- Jewelry ecommerceConversion tracking for jewelry ecommerce, measured in settled orders
- Gumroad → MatomoConnecting Gumroad to Matomo
- OpenCart → MatomoConnecting OpenCart to Matomo
Free · 30 min
Get Saleor and Matomo joined properly
Free30 minutesNo obligation
