Skip to main content
Ninja Forms → MatomoIntegration guide

Connecting Ninja Forms to Matomo

Ninja Forms is add-on driven, which means what a given installation can do depends entirely on which extensions were bought — and so does what can be tracked. 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 Ninja Forms submission 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

Ninja Forms goals in Matomo when the page never reloads

Copy the visitor ID from the _pk_id cookie into a hidden field at form load, then post a goal conversion to Matomo's HTTP Tracking API server-side from a queued job, since AJAX submits never load a thank-you URL. Use one goal per form at submission, and report lead qualification from the CRM, not Matomo.

Ninja Forms submits over AJAX by default, so the classic Matomo goal of visiting a thank-you URL never fires: the page does not change, the success message appears inline. The goal has to be triggered either from the form's JavaScript submit response or from the server. Server-side is more reliable here, because Matomo's HTTP Tracking API accepts a goal conversion for a known visitor if you send the visitor ID from the _pk_id cookie, which you can copy into a hidden field when the form loads.

When WordPress and Matomo run on infrastructure you control, this pair keeps the whole chain in-house: form, stored submission and analytics. That is the reason to choose it, and also why a slow Matomo database becomes your problem. It will not break the form, but tracking requests sent inline during submission can time out and vanish, so post the goal from a queued job instead of inside the submission request.

Matomo is the wrong place to record lead quality weeks later. A goal sent long after the visit is attached to a new visit unless you send a historical timestamp, which needs an authenticated token and may be limited by your instance's settings, so check before relying on it. A sane setup is one goal per form at submission, with qualification reported from the CRM rather than from Matomo.

Ninja Forms → Matomo · what breaks

Why this join usually fails — Ninja Forms → Matomo

  1. 01

    The first-party visitor ID never reaches Ninja Forms

    Hidden field and CRM integration capability varies by add-on, and submissions are AJAX by default.

  2. 02

    Designing around a capability the site does not have

    Add-on-driven plugins make it easy to plan an integration that requires an extension nobody bought. Establishing the installed set first prevents a build that cannot run.

  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.

Ninja Forms → Matomo · the fix

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

Ninja Forms → Matomo · architecture

How Ninja Forms and Matomo actually connect

  1. 1

    Ninja Forms holds the truth

    Whether the site can pass hidden fields, integrate with a CRM or take payment depends on installed add-ons. That has to be established before any integration is designed.

  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 Ninja Forms submission.

  4. 4

    The event source decides reliability

    Send qualified outcomes per form, with the identifier carried through.

  5. 5

    Deduplication at the destination

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

Ninja Forms → Matomo · normal or broken

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

Normal, not a fault

  • The first-party visitor ID present on the submission

  • Sent from your CRM 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

    Hidden field and CRM integration capability varies by add-on, and submissions are AJAX by default.

  • Sent from the browser

    Add-on-driven plugins make it easy to plan an integration that requires an extension nobody bought. Establishing the installed set first prevents a build that cannot run.

  • 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

Ninja Forms → Matomo · diagnose

Diagnostic order — Ninja 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 installed Ninja Forms add-ons before designing anything

    First step. It determines what is possible on this specific site.

  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.

Ninja Forms → Matomo · prove

How it gets proven — Ninja Forms → Matomo

Source of truth

Your CRM record, joined to the submission.

  • The first-party visitor ID confirmed present on a live submission.
  • Orders reconciled against the Matomo ecommerce log with order-ID deduplication verified.
  • Qualified outcomes reconciled per form against imported conversions.

Ninja 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 installed Ninja Forms add-ons before designing anything
  • Check tracker reachability and database lag before debugging any tag
  • Read the match rate, not the success message

Checked against

Your CRM record, joined to the submission.

Get my free conversion tracking audit

Free30 minutesNo obligation

Ninja Forms → Matomo · when not to buy

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

  • Measure identifier coverage yourself first — pull your last hundred submissions and count how many carry the first-party visitor ID.
  • If the required add-ons are not present, budget for them or choose a different approach — do not assume the capability.
  • 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.

Ninja Forms → Matomo · what we deliver

What gets built — Ninja Forms → Matomo

  • Identifier capture into Ninja Forms

    Confirm which add-ons are installed, then bind to the submission event and pass the identifier through a supported field.

  • Event source: your CRM record

    Send qualified outcomes per form, with the identifier carried through.

  • Dispatch to Matomo

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

  • Reversals where they exist

    Disqualified submissions reverse.

Written guarantee

95%+ tracking accuracy

Measured against Your CRM record, joined to the submission.. Miss it and we keep working at no cost.

Get my free conversion tracking audit

From $400 · See packages

FAQ

Ninja Forms → Matomo questions, answered

Trigger the goal from the Ninja Forms front-end submit response, or post it server-side through the Matomo Tracking API with the visitor ID captured in a hidden field. A thank-you URL goal will not fire because AJAX submissions do not change the page.

Free · 30 min

Get Ninja Forms and Matomo joined properly

Free30 minutesNo obligation