Connecting RudderStack to Matomo
RudderStack routes events from your applications to every downstream tool, which makes it the single point where a naming mistake propagates simultaneously to every ad platform you run. 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 RudderStack event 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
RudderStack to Matomo: two visitor IDs that must agree
Read Matomo's visitor ID from its first-party cookie, put it on RudderStack's user or event context, and send orders to Matomo's HTTP Tracking API with that ID and the order ID. Check whether the Matomo destination is device-mode only. If data ownership is why you chose Matomo, self-host RudderStack's data plane or post orders straight from your backend.
RudderStack's anonymousId and Matomo's visitor ID are different identifiers set by different scripts. If orders reach Matomo from RudderStack's server-side source carrying only RudderStack's IDs, Matomo has no visit to attach them to and records each order as a new visitor with no campaign. The fix is to read Matomo's visitor ID from its first-party cookie in the browser, put it on the user or event context in RudderStack, and pass it with the order to Matomo's HTTP Tracking API, along with the order ID so Matomo's order-level deduplication works.
RudderStack lists a Matomo destination; check whether it runs only in device mode, which simply loads Matomo's tracker in the browser and gives you nothing for orders confirmed on the backend. For logged-in customers, setting Matomo's user ID to the same value as RudderStack's userId is the cleanest way to keep the two systems describing one person.
There is a contradiction worth stating. Teams usually pick self-hosted Matomo so that data never leaves their own infrastructure. Routing it through a hosted RudderStack workspace puts a third party back in the chain. If ownership is the reason for Matomo, either run RudderStack's data plane yourself or post orders straight from your backend to Matomo, and use RudderStack only for the destinations where it adds something.
RudderStack → Matomo · what breaks
Why this join usually fails — RudderStack → Matomo
- 01
The first-party visitor ID never reaches RudderStack
Client-side sources lose identifiers to blocking and short cookie lifetimes; server-side sources have no browser context and must be handed the identifier explicitly by the application.
- 02
One schema change, every destination wrong at once
Centralization is the point and the risk. Rename an event property in one place and every ad platform, warehouse table and email tool receives the new shape on the same afternoon.
- 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.
RudderStack → Matomo · the fix
What working looks like — RudderStack → Matomo
The first-party visitor ID on every event
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
RudderStack → Matomo · architecture
How RudderStack and Matomo actually connect
- 1
RudderStack holds the truth
The warehouse copy is what makes a pipeline like this auditable. You can ask what was actually sent, rather than inferring it from what each destination decided to display.
- 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 RudderStack event.
- 4
The event source decides reliability
Send from your backend once the transaction is settled. A pipeline that only forwards browser events inherits every browser event's problems and adds a hop.
- 5
Deduplication at the destination
Matomo deduplicates ecommerce orders on order ID. Without one, a refreshed confirmation page records a second order.
RudderStack → Matomo · normal or broken
Working vs. broken, side by side — RudderStack → Matomo
Normal, not a fault
The first-party visitor ID present on the event
Sent from the RudderStack server-side source
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
Client-side sources lose identifiers to blocking and short cookie lifetimes; server-side sources have no browser context and must be handed the identifier explicitly by the application.
Sent from the browser
Centralization is the point and the risk. Rename an event property in one place and every ad platform, warehouse table and email tool receives the new shape on the same afternoon.
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
RudderStack → Matomo · diagnose
Diagnostic order — RudderStack → Matomo
- 01
Count events carrying the first-party visitor ID
- 02
Follow one real conversion end to end
- 03
Compare warehouse event counts against each destination's reported counts
Divergence localizes the fault immediately — to a transformation, to a filter, or to the destination's own deduplication.
- 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.
RudderStack → Matomo · prove
How it gets proven — RudderStack → Matomo
Source of truth
Your warehouse tables, which RudderStack writes to alongside the ad platforms — the same events, landing somewhere you can query them.
- The first-party visitor ID confirmed present on a live event.
- Orders reconciled against the Matomo ecommerce log with order-ID deduplication verified.
- Warehouse purchase counts reconciled against each destination's received count for a closed window.
RudderStack → Matomo · free audit
What we check in the free audit
- Count events carrying the first-party visitor ID
- Follow one real conversion end to end
- Compare warehouse event counts against each destination's reported counts
- Check tracker reachability and database lag before debugging any tag
- Read the match rate, not the success message
Checked against
Your warehouse tables, which RudderStack writes to alongside the ad platforms — the same events, landing somewhere you can query them.
Free30 minutesNo obligation
RudderStack → Matomo · when not to buy
When you don't need this — RudderStack → Matomo
- Measure identifier coverage yourself first — pull your last hundred events and count how many carry the first-party visitor ID.
- If you have one website and one ad platform, a pipeline is infrastructure you will maintain for a benefit you do not yet have.
- 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.
RudderStack → Matomo · what we deliver
What gets built — RudderStack → Matomo
Identifier capture into RudderStack
Capture on the web source, persist against the user identity, and attach it to server-side events so a purchase recorded by your backend still knows which click preceded it.
Event source: the RudderStack server-side source
Send from your backend once the transaction is settled. A pipeline that only forwards browser events inherits every browser event's problems and adds a hop.
Dispatch to Matomo
The Matomo HTTP Tracking API, posted server-side from your order system.
Reversals where they exist
Emit an explicit reversal event on refund and route it to every destination that accepted the original.
Written guarantee
95%+ tracking accuracy
Measured against Your warehouse tables, which RudderStack writes to alongside the ad platforms — the same events, landing somewhere you can query them.. Miss it and we keep working at no cost.
From $400 · See packages
FAQ
RudderStack → Matomo questions, answered
No. They are generated by different scripts, so you have to capture Matomo's visitor ID in the browser and carry it on the event yourself, or align the two on a user ID after login.
Send the same order ID from both paths so Matomo deduplicates on it, or better, pick one path for orders. Check the ecommerce log for repeated order IDs after a test purchase.
Almost always because the first-party visitor ID never reached the RudderStack event. Client-side sources lose identifiers to blocking and short cookie lifetimes; server-side sources have no browser context and must be handed the identifier explicitly by the application. 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 RudderStack server-side source. Send from your backend once the transaction is settled. A pipeline that only forwards browser events inherits every browser event's problems and adds a hop.
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 RudderStack → Matomo
- RudderStack → Google AdsConnecting RudderStack to Google Ads
- RudderStack → MetaConnecting RudderStack to Meta Conversions API
- RudderStack → GA4Connecting RudderStack to GA4
RELATED GUIDES
Where RudderStack → Matomo fits in the rest of your tracking
- mParticle → MatomoConnecting mParticle to Matomo
- Optimizely → MatomoConnecting Optimizely to Matomo
- VWO → MatomoConnecting VWO to Matomo
- RudderStack → Adobe AnalyticsConnecting RudderStack to Adobe Analytics
- RudderStack → GA4Connecting RudderStack to GA4
- B2BConversion tracking for B2B, from first touch to closed-won
- Dynamic Yield → MatomoConnecting Dynamic Yield to Matomo
- Tealium → MatomoConnecting Tealium to Matomo
Free · 30 min
Get RudderStack and Matomo joined properly
Free30 minutesNo obligation
