Connecting Umbraco to Matomo
Umbraco is a .NET CMS common in mid-market and enterprise European organisations, which means IT governance is usually the binding constraint rather than technology. 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 Umbraco Commerce 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
Umbraco Commerce ecommerce orders into a self-hosted Matomo
Send Umbraco Commerce orders to Matomo's HTTP Tracking API from the order-finalized notification, not a cached confirmation view, with the order number as order ID, line items and the visitor ID from Matomo's first-party cookie. Capture that visitor ID as an order property at order creation. Plan who operates Matomo's PHP stack, and how refunds are handled.
Matomo is a common choice in the European organizations that run Umbraco, often precisely because legal has already approved it. Note the stack mismatch: Matomo is a PHP and MySQL application, so a .NET team on Azure is taking on a second runtime to operate. Decide who patches it and watches its database before anyone writes tracking code.
The browser tracker can record a basic ecommerce order on the confirmation view, but that view may be served from output cache or the CDN, and a cached thank-you page either fires for nobody or for the wrong order. Send the order from the order-finalized notification handler instead, posting to the Matomo HTTP Tracking API with the Umbraco Commerce order number as the order ID, the line items, and the visitor ID read from the Matomo first-party cookie on the checkout request.
Capture that visitor ID onto the order as a property when the order is created, not at finalization, because finalization can run from a payment provider callback that carries none of the customer's cookies. Refunds and cancellations are not reversed automatically in Matomo; decide whether you correct them in reporting or accept gross figures.
Umbraco → Matomo · what breaks
Why this join usually fails — Umbraco → Matomo
- 01
The first-party visitor ID never reaches Umbraco
Output caching and CDN layers sit in front of most Umbraco deployments, and the deployment process itself frequently prevents quick iteration, which means getting the capture right the first time matters more here.
- 02
Change control, not technology
The build is straightforward and the release cycle is not. Scope the deployment process before committing to a timeline, because in this segment it is the schedule.
- 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.
Umbraco → Matomo · the fix
What working looks like — Umbraco → 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
Umbraco → Matomo · architecture
How Umbraco and Matomo actually connect
- 1
Umbraco holds the truth
You own the database. What you may not own is the release process — Umbraco sites in this segment often sit behind change control that adds weeks to any modification.
- 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 Umbraco Commerce order.
- 4
The event source decides reliability
Fire from the .NET notification handler rather than a view, which may be cached at the edge.
- 5
Deduplication at the destination
Matomo deduplicates ecommerce orders on order ID. Without one, a refreshed confirmation page records a second order.
Umbraco → Matomo · normal or broken
Working vs. broken, side by side — Umbraco → Matomo
Normal, not a fault
The first-party visitor ID present on the order
Sent from the Umbraco Commerce order-finalised notification
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
Output caching and CDN layers sit in front of most Umbraco deployments, and the deployment process itself frequently prevents quick iteration, which means getting the capture right the first time matters more here.
Sent from the browser
The build is straightforward and the release cycle is not. Scope the deployment process before committing to a timeline, because in this segment it is the schedule.
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
Umbraco → Matomo · diagnose
Diagnostic order — Umbraco → Matomo
- 01
Count orders carrying the first-party visitor ID
- 02
Follow one real conversion end to end
- 03
Establish the deployment and change-control process first
It determines the timeline more than any technical question here.
- 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.
Umbraco → Matomo · prove
How it gets proven — Umbraco → Matomo
Source of truth
Umbraco Commerce's order records in your own database, at agreed order states.
- The first-party visitor ID confirmed present on a live order.
- Orders reconciled against the Matomo ecommerce log with order-ID deduplication verified.
- Order data confirmed populated on an order placed through the CDN as an anonymous visitor.
Umbraco → 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
- Establish the deployment and change-control process first
- Check tracker reachability and database lag before debugging any tag
- Read the match rate, not the success message
Checked against
Umbraco Commerce's order records in your own database, at agreed order states.
Free30 minutesNo obligation
Umbraco → Matomo · when not to buy
When you don't need this — Umbraco → Matomo
- Measure identifier coverage yourself first — pull your last hundred orders and count how many carry the first-party visitor ID.
- If the site is maintained by an internal IT team on a quarterly release cycle, plan the engagement around that rather than around the code.
- 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.
Umbraco → Matomo · what we deliver
What gets built — Umbraco → Matomo
Identifier capture into Umbraco
Capture the identifier and persist it to the order through a server-side notification handler in the application.
Event source: the Umbraco Commerce order-finalised notification
Fire from the .NET notification handler rather than a view, which may be cached at the edge.
Dispatch to Matomo
The Matomo HTTP Tracking API, posted server-side from your order system.
Reversals where they exist
Order state changes to refunded or cancelled are recorded.
Written guarantee
95%+ tracking accuracy
Measured against Umbraco Commerce's order records in your own database, at agreed order states.. Miss it and we keep working at no cost.
From $400 · See packages
FAQ
Umbraco → Matomo questions, answered
Usually the browser tracker on a cached confirmation page, or a server call made from a payment callback without the visitor ID. Send from the order handler with the visitor ID stored on the order earlier.
Matomo ignores a repeated ecommerce order with the same order ID, so always send the Umbraco Commerce order number rather than a generated value.
Almost always because the first-party visitor ID never reached the Umbraco Commerce order. Output caching and CDN layers sit in front of most Umbraco deployments, and the deployment process itself frequently prevents quick iteration, which means getting the capture right the first time matters more here. 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 Umbraco Commerce order-finalised notification. Fire from the .NET notification handler rather than a view, which may be cached at the edge.
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 Umbraco → Matomo
- Umbraco → Google AdsConnecting Umbraco to Google Ads
- Umbraco → MetaConnecting Umbraco to Meta Conversions API
- Umbraco → GA4Connecting Umbraco to GA4
RELATED GUIDES
Where Umbraco → Matomo fits in the rest of your tracking
- Contentful → MatomoConnecting Contentful to Matomo
- Sitecore → MatomoConnecting Sitecore to Matomo
- Duda → MatomoConnecting Duda to Matomo
- Umbraco → AmplitudeConnecting Umbraco to Amplitude
- Umbraco → GA4Connecting Umbraco to GA4
- Local servicesConversion tracking for local businesses, where most conversions bypass the website
- Webflow → MatomoConnecting Webflow to Matomo
- Craft → MatomoConnecting Craft CMS to Matomo
Free · 30 min
Get Umbraco and Matomo joined properly
Free30 minutesNo obligation
