Connecting Cookiebot to Matomo
Cookiebot scans your site and blocks scripts automatically by category, which means it can stop a tag you rely on without anybody deciding to. 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 Cookiebot consent state 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
Cookiebot and self-hosted Matomo: classification and consent wiring
Self-hosted Matomo may be misclassified or missed by Cookiebot's scanner, so check the scan. Better than blocking: load Matomo with requireCookieConsent and call rememberCookieConsentGiven when Cookiebot.consent.statistics becomes true, so decliners still count cookieless. Send orders through the HTTP Tracking API with order ID, passing visitor ID only when consent was given.
Self-hosted Matomo serves its script and tracker from your own domain, so Cookiebot's scanner may not recognise it the way it recognises common hosted analytics tags. Read the scan report and find where your matomo.js and its cookies were filed. If they landed in statistics, every visitor who declines statistics disappears from Matomo entirely. If the scanner did not recognise them at all, Matomo may be running for everyone regardless of choice, which is a compliance problem dressed up as good data.
Matomo has a better option than all-or-nothing blocking. Load it outside Cookiebot's automatic blocking with requireCookieConsent set, so it records visits without cookies for everybody, then call rememberCookieConsentGiven when Cookiebot reports statistics consent (on the CookiebotOnAccept event, reading Cookiebot.consent.statistics). Decliners still count as visits; only the returning-visitor identity and cross-session attribution depend on consent. Confirm this approach against your legal position before shipping it.
Orders should still come from your order system through the Matomo HTTP Tracking API, with the order ID so a re-sent order is not counted twice. Pass the visitor ID only when consent was given; otherwise the order arrives as its own visit, which keeps revenue totals right and attribution honest about what it does not know.
Cookiebot → Matomo · what breaks
Why this join usually fails — Cookiebot → Matomo
- 01
The first-party visitor ID never reaches Cookiebot
Scripts are blocked before execution, so an identifier-capture script placed in a blocked category never runs at all.
- 02
Automatic classification blocking the wrong script
The scanner decides what each script is. It gets things wrong, and a first-party capture script filed under marketing will be blocked for every visitor who declines marketing — including many who would have accepted what it actually does.
- 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.
Cookiebot → Matomo · the fix
What working looks like — Cookiebot → Matomo
The first-party visitor ID on every consent record
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
Cookiebot → Matomo · architecture
How Cookiebot and Matomo actually connect
- 1
Cookiebot holds the truth
Automatic blocking classifies scripts by scanning. A misclassified tag gets blocked for visitors who would have consented, and the loss is invisible because everything looks configured correctly.
- 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 Cookiebot consent state.
- 4
The event source decides reliability
Send consented conversions, with the consent rate and the blocked-category mix reported alongside.
- 5
Deduplication at the destination
Matomo deduplicates ecommerce orders on order ID. Without one, a refreshed confirmation page records a second order.
Cookiebot → Matomo · normal or broken
Working vs. broken, side by side — Cookiebot → Matomo
Normal, not a fault
The first-party visitor ID present on the consent record
Sent from your order system, gated on consent
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
Scripts are blocked before execution, so an identifier-capture script placed in a blocked category never runs at all.
Sent from the browser
The scanner decides what each script is. It gets things wrong, and a first-party capture script filed under marketing will be blocked for every visitor who declines marketing — including many who would have accepted what it actually does.
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
Cookiebot → Matomo · diagnose
Diagnostic order — Cookiebot → Matomo
- 01
Count consent records carrying the first-party visitor ID
- 02
Follow one real conversion end to end
- 03
Read the scan results and check how each of your scripts was classified
This takes ten minutes and it is the first thing to check when conversions drop after a CMP deployment.
- 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.
Cookiebot → Matomo · prove
How it gets proven — Cookiebot → Matomo
Source of truth
Your order system, with the visitor's consent categories recorded at the time of the event.
- The first-party visitor ID confirmed present on a live consent record.
- Orders reconciled against the Matomo ecommerce log with order-ID deduplication verified.
- Consented conversions reconciled against imported figures, with script classifications verified against what they collect.
Cookiebot → Matomo · free audit
What we check in the free audit
- Count consent records carrying the first-party visitor ID
- Follow one real conversion end to end
- Read the scan results and check how each of your scripts was classified
- Check tracker reachability and database lag before debugging any tag
- Read the match rate, not the success message
Checked against
Your order system, with the visitor's consent categories recorded at the time of the event.
Free30 minutesNo obligation
Cookiebot → Matomo · when not to buy
When you don't need this — Cookiebot → Matomo
- Measure identifier coverage yourself first — pull your last hundred consent records and count how many carry the first-party visitor ID.
- If you have no legal requirement for consent in your markets, adding automatic blocking will cost you data for no compliance benefit.
- 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.
Cookiebot → Matomo · what we deliver
What gets built — Cookiebot → Matomo
Identifier capture into Cookiebot
Verify which category your capture script is classified into, and keep capture in a category that matches what you actually collect.
Event source: your order system, gated on consent
Send consented conversions, with the consent rate and the blocked-category mix reported alongside.
Dispatch to Matomo
The Matomo HTTP Tracking API, posted server-side from your order system.
Reversals where they exist
Consent withdrawal stops future sends.
Written guarantee
95%+ tracking accuracy
Measured against Your order system, with the visitor's consent categories recorded at the time of the event.. Miss it and we keep working at no cost.
From $400 · See packages
FAQ
Cookiebot → Matomo questions, answered
Not necessarily. Matomo can be set to require cookie consent, so it tracks without cookies until Cookiebot reports statistics consent, then switches to cookies. Check this matches your obligations.
Usually because the Cookiebot scanner did not recognise a self-hosted Matomo script and is not gating it. Check how your Matomo files were classified in the scan report.
Almost always because the first-party visitor ID never reached the Cookiebot consent state. Scripts are blocked before execution, so an identifier-capture script placed in a blocked category never runs at all. 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.
Your order system, gated on consent. Send consented conversions, with the consent rate and the blocked-category mix reported alongside.
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 Cookiebot → Matomo
- Stripe → MatomoConnecting Stripe to Matomo
- PayPal → MatomoConnecting PayPal to Matomo
- Shopify → MatomoConnecting Shopify to Matomo
RELATED GUIDES
Where Cookiebot → Matomo fits in the rest of your tracking
- iubenda → MatomoConnecting iubenda to Matomo
- Osano → MatomoConnecting Osano to Matomo
- Usercentrics → MatomoConnecting Usercentrics to Matomo
- Cookiebot → Adobe AnalyticsConnecting Cookiebot to Adobe Analytics
- Cookiebot → AmplitudeConnecting Cookiebot to Amplitude
- EcommerceConversion tracking for ecommerce brands, measured against your orders
- Termly → MatomoConnecting Termly to Matomo
- Complianz → MatomoConnecting Complianz to Matomo
Free · 30 min
Get Cookiebot and Matomo joined properly
Free30 minutesNo obligation
