Connecting Termly to Matomo
Termly bundles consent management with policy generation, which means small businesses frequently end up with a privacy policy describing data practices they do not actually 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 Termly consent record 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
Termly and Matomo: wire consent to requireCookieConsent
Rather than letting Termly block Matomo entirely, call requireCookieConsent so it counts cookieless visits, then setCookieConsentGiven on Termly analytics consent and forgetCookieConsentGiven on withdrawal. Server-side orders through the HTTP Tracking API need the visitor ID; declined visitors arrive as fresh visits. Report revenue by consent state.
Matomo is the destination where Termly's auto-blocker is most likely to be stricter than you need. Matomo's tracker can run without cookies, and when it is self-hosted the data never leaves your server. If Termly's scanner classifies Matomo's visitor cookie as analytics and blocks the whole script, you lose cookieless pageview counts you could have kept, and the consent rate tells you less than you think.
The cleaner pattern uses Matomo's own consent functions. Call requireCookieConsent before tracking starts, so Matomo counts visits without setting cookies, then call setCookieConsentGiven when Termly reports analytics consent and forgetCookieConsentGiven when it is withdrawn. Check Termly's documentation for the consent event your page should listen to. Leave Matomo out of the auto-blocker only if this wiring is actually in place.
Server-side orders sent through the Matomo HTTP Tracking API need the visitor ID to join the order to the visit. For visitors who declined, there is no persistent ID, so the order arrives as a fresh visit with no campaign. That is correct behavior, not a bug. Report Matomo ecommerce revenue split by consent state, and confirm the Termly policy describes Matomo as self-hosted analytics, since the generated template may assume a third-party vendor.
Termly → Matomo · what breaks
Why this join usually fails — Termly → Matomo
- 01
The first-party visitor ID never reaches Termly
Default blocking configurations stop capture before consent on the first page view.
- 02
A generated policy that does not match reality
Generated policies are templates. Adding a new conversion destination without updating the policy means you are disclosing data to a partner your own published statement does not mention, which is a real exposure that no tracking configuration fixes.
- 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.
Termly → Matomo · the fix
What working looks like — Termly → 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
Termly → Matomo · architecture
How Termly and Matomo actually connect
- 1
Termly holds the truth
The published policy is a statement about what you do. If it says you share data with categories of partner you do not use, or omits ones you do, the mismatch is the compliance exposure — not the banner.
- 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 Termly consent record.
- 4
The event source decides reliability
Send consented conversions with the consent rate stated.
- 5
Deduplication at the destination
Matomo deduplicates ecommerce orders on order ID. Without one, a refreshed confirmation page records a second order.
Termly → Matomo · normal or broken
Working vs. broken, side by side — Termly → 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
Default blocking configurations stop capture before consent on the first page view.
Sent from the browser
Generated policies are templates. Adding a new conversion destination without updating the policy means you are disclosing data to a partner your own published statement does not mention, which is a real exposure that no tracking configuration fixes.
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
Termly → Matomo · diagnose
Diagnostic order — Termly → Matomo
- 01
Count consent records carrying the first-party visitor ID
- 02
Follow one real conversion end to end
- 03
Compare your destination list against what the policy discloses
Every platform you send conversions to should appear. This is a five-minute check and it is almost never done after a new integration.
- 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.
Termly → Matomo · prove
How it gets proven — Termly → Matomo
Source of truth
Your order system, with consent state attached.
- 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, with the destination list verified against the published policy.
Termly → 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
- Compare your destination list against what the policy discloses
- Check tracker reachability and database lag before debugging any tag
- Read the match rate, not the success message
Checked against
Your order system, with consent state attached.
Free30 minutesNo obligation
Termly → Matomo · when not to buy
When you don't need this — Termly → Matomo
- Measure identifier coverage yourself first — pull your last hundred consent records and count how many carry the first-party visitor ID.
- Before adding any new conversion destination, update the policy. That order matters, and it is cheaper than the alternative.
- 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.
Termly → Matomo · what we deliver
What gets built — Termly → Matomo
Identifier capture into Termly
Capture after consent, and make sure the policy actually describes the destinations you send conversions to.
Event source: your order system, gated on consent
Send consented conversions with the consent rate stated.
Dispatch to Matomo
The Matomo HTTP Tracking API, posted server-side from your order system.
Reversals where they exist
Withdrawal stops future sends.
Written guarantee
95%+ tracking accuracy
Measured against Your order system, with consent state attached.. Miss it and we keep working at no cost.
From $400 · See packages
FAQ
Termly → Matomo questions, answered
Matomo can count visits without cookies, which in most US setups does not require opt-in, but the policy still has to disclose it. If you keep Matomo's cookies, gate them on Termly's analytics consent.
Call requireCookieConsent before the first tracking call, then setCookieConsentGiven when Termly reports analytics consent and forgetCookieConsentGiven on withdrawal. Check Termly's docs for which consent event to hook.
Almost always because the first-party visitor ID never reached the Termly consent record. Default blocking configurations stop capture before consent on the first page view. 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 stated.
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 Termly → Matomo
- Stripe → MatomoConnecting Stripe to Matomo
- PayPal → MatomoConnecting PayPal to Matomo
- Shopify → MatomoConnecting Shopify to Matomo
RELATED GUIDES
Where Termly → Matomo fits in the rest of your tracking
- Osano → MatomoConnecting Osano to Matomo
- CookieYes → MatomoConnecting CookieYes to Matomo
- OneTrust → MatomoConnecting OneTrust to Matomo
- Termly → Adobe AnalyticsConnecting Termly to Adobe Analytics
- Termly → GA4Connecting Termly to GA4
- Financial servicesConversion tracking for financial services, built for the compliance review
- Cookiebot → MatomoConnecting Cookiebot to Matomo
- iubenda → MatomoConnecting iubenda to Matomo
Free · 30 min
Get Termly and Matomo joined properly
Free30 minutesNo obligation
