Skip to main content
Complianz → MatomoIntegration guide

Connecting Complianz to Matomo

Complianz is a WordPress consent plugin that blocks scripts by category automatically, which means a plugin update can change what fires on your site without anyone 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 Complianz 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

Complianz with Matomo: cookieless before consent, IDs after

Complianz can run Matomo cookieless until consent, counting visits from people who never touch the banner. Server-side HTTP Tracking API orders need the Matomo visitor ID, so read it at checkout only when statistics is granted and store it on the order. Add Matomo's own cookie-consent mode as a second gate against cached pages.

Matomo is one of the analytics tools the Complianz wizard knows about, and the plugin can set it up to run without cookies until a visitor consents; check the statistics section of your Complianz wizard for the exact options in your version. That pairing is a large part of why WordPress sites choose Matomo: you can count visits from people who never touch the banner, which no ad pixel allows.

The catch shows up when orders are sent server-side through the HTTP Tracking API. To attach an order to the visit that produced it, your server needs the Matomo visitor ID from the browser cookie. A visitor tracked cookieless has no stable cookie, so the order lands as a new visitor with no referrer, and your ecommerce report credits it to direct. Expect the attributed share of revenue to roughly track your consent rate; that is the cost of cookieless mode, and it belongs next to the numbers.

Read the visitor ID at checkout only when the statistics category is granted, and store it on the order. Use Matomo's own cookie-consent mode in the tracker as a second gate rather than relying on Complianz's blocking alone, because a cached page served with the script already unblocked is exactly the failure this plugin is prone to. Then place a test order with consent declined and read the raw visit log.

Complianz → Matomo · what breaks

Why this join usually fails — Complianz → Matomo

  1. 01

    The first-party visitor ID never reaches Complianz

    Scripts are blocked before execution, and WordPress caching can serve a page with the wrong consent state entirely.

  2. 02

    Caching serving the wrong consent state

    A full-page cache does not know who is asking. A page cached for a consented visitor and served to one who declined runs scripts that should not have run, which is a compliance problem rather than a measurement one.

  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.

Complianz → Matomo · the fix

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

Complianz → Matomo · architecture

How Complianz and Matomo actually connect

  1. 1

    Complianz holds the truth

    Automatic script blocking on WordPress interacts with every other plugin. A caching plugin, a tag manager and a consent plugin all touching the same page produce ordering problems nobody planned.

  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 Complianz consent record.

  4. 4

    The event source decides reliability

    Send consented conversions with the consent rate stated.

  5. 5

    Deduplication at the destination

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

Complianz → Matomo · normal or broken

Working vs. broken, side by side — Complianz → 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, and WordPress caching can serve a page with the wrong consent state entirely.

  • Sent from the browser

    A full-page cache does not know who is asking. A page cached for a consented visitor and served to one who declined runs scripts that should not have run, which is a compliance problem rather than a measurement one.

  • 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

Complianz → Matomo · diagnose

Diagnostic order — Complianz → Matomo

  1. 01

    Count consent records carrying the first-party visitor ID

  2. 02

    Follow one real conversion end to end

  3. 03

    Test consent behaviour with caching enabled, not disabled

    Most consent testing is done with cache off, which is the one configuration that never runs in production.

  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.

Complianz → Matomo · prove

How it gets proven — Complianz → Matomo

Source of truth

Your order or CRM system, with consent state 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, verified with production caching active.

Complianz → 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
  • Test consent behaviour with caching enabled, not disabled
  • Check tracker reachability and database lag before debugging any tag
  • Read the match rate, not the success message

Checked against

Your order or CRM system, with consent state recorded at the time of the event.

Get my free conversion tracking audit

Free30 minutesNo obligation

Complianz → Matomo · when not to buy

When you don't need this — Complianz → Matomo

  • Measure identifier coverage yourself first — pull your last hundred consent records and count how many carry the first-party visitor ID.
  • Sites without full-page caching avoid the interaction, though the category classification still matters.
  • 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.

Complianz → Matomo · what we deliver

What gets built — Complianz → Matomo

  • Identifier capture into Complianz

    Verify which category your capture script sits in, and check that caching does not serve a consented page to a non-consented visitor.

  • 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 or CRM system, with consent state recorded at the time of the event.. Miss it and we keep working at no cost.

Get my free conversion tracking audit

From $400 · See packages

FAQ

Complianz → Matomo questions, answered

Complianz can run Matomo in a cookieless or anonymized mode, and in US opt-out regions statistics often run by default. Whether that satisfies a given state or EU visitor is a legal call; check how your Complianz regions are configured.

Free · 30 min

Get Complianz and Matomo joined properly

Free30 minutesNo obligation