Skip to main content
Cognito Forms → MatomoIntegration guide

Connecting Cognito Forms to Matomo

Cognito Forms supports conditional logic and payments, which means one form can be a survey, a registration and a checkout depending on which branch the visitor takes. 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 Cognito Forms entry 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

Cognito Forms to Matomo: orders by entry number, goals by branch

Matomo can't see payment confirmation inside a Cognito Forms embed, so send paid entries to the HTTP Tracking API as ecommerce orders, with the entry number as order ID and amount paid as revenue. Send unpaid branches as named goals. Capture Matomo's visitor ID into a hidden field on load to tie the hit to the campaign visit.

Matomo's advantage, a self-hosted first-party tracker that browser blocking mostly leaves alone, only helps if the conversion happens where the tracker runs. With Cognito's iframe embed it does not; the form submits inside Cognito's frame. With the seamless embed the form sits in your page, but the payment confirmation is still a change inside the form rather than a page load, so the reliable record is the entry itself.

Send paid entries to the Matomo HTTP Tracking API as ecommerce orders with the entry number as the order ID, the amount paid as revenue, and the registration or item as the product. Matomo deduplicates on order ID, so a confirmation refresh or a repeated post does not record a second order. Send unpaid branches as goals with their own names, so ecommerce revenue reports describe paid registrations and nothing else. To tie the server hit to the visit that came from a campaign, capture Matomo's visitor ID into a hidden field when the form loads.

If you were hoping Matomo's form analytics would show where people abandon a long Cognito form, check whether it can see the fields at all; it works on forms rendered in your page, not inside a frame.

Cognito Forms → Matomo · what breaks

Why this join usually fails — Cognito Forms → Matomo

  1. 01

    The first-party visitor ID never reaches Cognito Forms

    Forms are embedded and payments may hand off to a processor, breaking the session twice.

  2. 02

    One form, several outcomes, one conversion action

    Conditional logic means the same form produces a free enquiry from one visitor and a paid registration from another. A single conversion action averages them into a value that describes neither.

  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.

Cognito Forms → Matomo · the fix

What working looks like — Cognito Forms → Matomo

  • The first-party visitor ID on every submission

  • 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

Cognito Forms → Matomo · architecture

How Cognito Forms and Matomo actually connect

  1. 1

    Cognito Forms holds the truth

    A form that sometimes takes payment and sometimes does not produces two completely different conversions from one submission event.

  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 Cognito Forms entry.

  4. 4

    The event source decides reliability

    Send paid submissions at their amount and unpaid ones as a separate lower-value action.

  5. 5

    Deduplication at the destination

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

Cognito Forms → Matomo · normal or broken

Working vs. broken, side by side — Cognito Forms → Matomo

Normal, not a fault

  • The first-party visitor ID present on the submission

  • Sent from your CRM or payment record

  • 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

    Forms are embedded and payments may hand off to a processor, breaking the session twice.

  • Sent from the browser

    Conditional logic means the same form produces a free enquiry from one visitor and a paid registration from another. A single conversion action averages them into a value that describes neither.

  • 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

Cognito Forms → Matomo · diagnose

Diagnostic order — Cognito Forms → Matomo

  1. 01

    Count submissions carrying the first-party visitor ID

  2. 02

    Follow one real conversion end to end

  3. 03

    List the branches your form can produce and their values

    Usually the first time anyone has, and it is normally the whole fix.

  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.

Cognito Forms → Matomo · prove

How it gets proven — Cognito Forms → Matomo

Source of truth

Your CRM or payment record, with the form branch recorded.

  • The first-party visitor ID confirmed present on a live submission.
  • Orders reconciled against the Matomo ecommerce log with order-ID deduplication verified.
  • Submissions reconciled by branch against imported conversions.

Cognito Forms → Matomo · free audit

What we check in the free audit

  • Count submissions carrying the first-party visitor ID
  • Follow one real conversion end to end
  • List the branches your form can produce and their values
  • Check tracker reachability and database lag before debugging any tag
  • Read the match rate, not the success message

Checked against

Your CRM or payment record, with the form branch recorded.

Get my free conversion tracking audit

Free30 minutesNo obligation

Cognito Forms → Matomo · when not to buy

When you don't need this — Cognito Forms → Matomo

  • Measure identifier coverage yourself first — pull your last hundred submissions and count how many carry the first-party visitor ID.
  • A single-path form with no payment needs one action and nothing else.
  • 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.

Cognito Forms → Matomo · what we deliver

What gets built — Cognito Forms → Matomo

  • Identifier capture into Cognito Forms

    Pass the identifier into a hidden field and carry it through to the payment where one occurs.

  • Event source: your CRM or payment record

    Send paid submissions at their amount and unpaid ones as a separate lower-value action.

  • Dispatch to Matomo

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

  • Reversals where they exist

    Refunds reverse.

Written guarantee

95%+ tracking accuracy

Measured against Your CRM or payment record, with the form branch recorded.. Miss it and we keep working at no cost.

Get my free conversion tracking audit

From $400 · See packages

FAQ

Cognito Forms → Matomo questions, answered

With the seamless embed it can see the form in your page; with the iframe embed it cannot. For paid entries, send the order server-side through the Tracking API with the entry number as the order ID.

Free · 30 min

Get Cognito Forms and Matomo joined properly

Free30 minutesNo obligation