Skip to main content
Sitecore → MatomoIntegration guide

Connecting Sitecore to Matomo

Sitecore is enterprise digital experience software with its own personalisation and analytics stack, which frequently competes with rather than complements the measurement you are trying to build. 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 Sitecore contact and 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

Sitecore and self-hosted Matomo: one owned analytics stack, not two

Serve the Matomo tracker from your own domain, excluded from Sitecore output caching and personalization, and record the Sitecore item ID as a custom dimension. Send orders from the commerce system through the HTTP Tracking API with the order number, revenue and the Matomo visitor ID read in the browser before checkout, or revenue shows as direct.

Organisations pick Matomo for data ownership, and Sitecore XP deployments often already keep their experience database on infrastructure they control. That leaves two self-hosted analytics systems recording the same visits. Decide which answers reporting questions; for marketing performance Matomo is easier to query and explain, while Sitecore's data should stay feeding personalisation rules.

Serve the Matomo tracker from your own domain alongside Sitecore, and exclude it from Sitecore's output caching and personalisation so every page variant loads the same tracking code. Record the Sitecore item ID or a stable path as a custom dimension, because personalised page titles otherwise split one page into several rows. Ecommerce orders should come from the commerce system through Matomo's HTTP Tracking API with the order number, the visitor ID captured during the session and the revenue.

The visitor ID join is the part most teams skip. To attribute a server-side order to the right visit, read the Matomo visitor ID in the browser before checkout and store it with the order. Without it, a server-side order arrives as a fresh visitor with no campaign, and Matomo's channel reports show commerce revenue as direct traffic.

Sitecore → Matomo · what breaks

Why this join usually fails — Sitecore → Matomo

  1. 01

    The first-party visitor ID never reaches Sitecore

    Sitecore's personalisation can vary page output per visitor, its analytics identity model is separate from any ad platform's, and enterprise deployments sit behind multiple caching and CDN layers.

  2. 02

    Two analytics systems answering different questions

    Sitecore's experience analytics and your ad platform reporting will never agree because they measure different things. Trying to reconcile them wastes weeks.

  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.

Sitecore → Matomo · the fix

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

Sitecore → Matomo · architecture

How Sitecore and Matomo actually connect

  1. 1

    Sitecore holds the truth

    Sitecore's experience database tracks contacts and interactions for personalisation. It is not a conversion source for ad platforms and its numbers will not match theirs, by design.

  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 Sitecore contact and order.

  4. 4

    The event source decides reliability

    Send from the commerce layer. Sitecore's own goal and event tracking serves personalisation and should not be wired to ad platforms.

  5. 5

    Deduplication at the destination

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

Sitecore → Matomo · normal or broken

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

Normal, not a fault

  • The first-party visitor ID present on the order

  • Sent from your commerce system's order event

  • 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

    Sitecore's personalisation can vary page output per visitor, its analytics identity model is separate from any ad platform's, and enterprise deployments sit behind multiple caching and CDN layers.

  • Sent from the browser

    Sitecore's experience analytics and your ad platform reporting will never agree because they measure different things. Trying to reconcile them wastes weeks.

  • 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

Sitecore → Matomo · diagnose

Diagnostic order — Sitecore → Matomo

  1. 01

    Count orders carrying the first-party visitor ID

  2. 02

    Follow one real conversion end to end

  3. 03

    Separate Sitecore's personalisation analytics from conversion measurement

    They are different systems for different purposes. Conflating them is the standard mistake in this stack.

  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.

Sitecore → Matomo · prove

How it gets proven — Sitecore → Matomo

Source of truth

Your commerce or CRM system — Sitecore's own analytics database answers a different question.

  • The first-party visitor ID confirmed present on a live order.
  • Orders reconciled against the Matomo ecommerce log with order-ID deduplication verified.
  • Conversions confirmed sourced from the commerce system rather than from Sitecore's experience database.

Sitecore → 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
  • Separate Sitecore's personalisation analytics from conversion measurement
  • Check tracker reachability and database lag before debugging any tag
  • Read the match rate, not the success message

Checked against

Your commerce or CRM system — Sitecore's own analytics database answers a different question.

Get my free conversion tracking audit

Free30 minutesNo obligation

Sitecore → Matomo · when not to buy

When you don't need this — Sitecore → Matomo

  • Measure identifier coverage yourself first — pull your last hundred orders and count how many carry the first-party visitor ID.
  • If your Sitecore implementation is content-only with commerce elsewhere, work at the commerce layer entirely.
  • 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.

Sitecore → Matomo · what we deliver

What gets built — Sitecore → Matomo

  • Identifier capture into Sitecore

    Capture the identifier server-side in the application and persist it to the commerce order, keeping it separate from Sitecore's own contact identity model.

  • Event source: your commerce system's order event

    Send from the commerce layer. Sitecore's own goal and event tracking serves personalisation and should not be wired to ad platforms.

  • Dispatch to Matomo

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

  • Reversals where they exist

    Handled at the commerce layer.

Written guarantee

95%+ tracking accuracy

Measured against Your commerce or CRM system — Sitecore's own analytics database answers a different question.. Miss it and we keep working at no cost.

Get my free conversion tracking audit

From $400 · See packages

FAQ

Sitecore → Matomo questions, answered

For reporting, often yes. Sitecore's personalisation still uses its own tracker, so you usually keep both running but report from one.

Free · 30 min

Get Sitecore and Matomo joined properly

Free30 minutesNo obligation