Skip to main content
WPForms → MatomoIntegration guide

Connecting WPForms to Matomo

WPForms is the most widely installed form plugin on WordPress, which means the same plugin sits behind contact forms, order forms and payment forms on the same site with completely different values. 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 WPForms 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

Tracking WPForms submissions as Matomo goals, per form ID

Trigger Matomo goals from wpformsAjaxSubmitSuccess, one per important form ID, since AJAX forms have no thank-you page. Send payment forms as ecommerce orders keyed on the WPForms entry ID, keeping contact-form goals out of revenue. Later outcomes go through the HTTP Tracking API with the visitor ID from a hidden field, invalidating archived reports for backdated hits.

Matomo is the simplest destination on this list for WPForms, because both can run on the same WordPress install: the Matomo for WordPress plugin keeps the tracker and the database on your own server, and a WPForms submission becomes a goal conversion in the same place. The trap is one WPForms creates itself. With AJAX submission there is no thank-you page, so a goal defined on a URL never fires. Trigger the goal from the wpformsAjaxSubmitSuccess event instead, with one goal per form ID that matters.

Goals in Matomo carry a revenue value, and this is where WPForms forms differ. A payment form built with the Stripe or PayPal fields has a real amount and should go in as an ecommerce order keyed on the WPForms entry ID, so a refreshed confirmation never records it twice. A contact form has no amount; give its goal a fixed estimated value or none, and keep the two out of one revenue figure.

For outcomes that happen later, such as a quote request that becomes a booked job, the server can send the goal through the HTTP Tracking API using the Matomo visitor ID captured in a hidden field at submission. Hits backdated by more than a day need an auth token, and reports already archived for those days must be invalidated before the late conversion shows up. On a self-hosted install, check archiving runs after those uploads, not before.

WPForms → Matomo · what breaks

Why this join usually fails — WPForms → Matomo

  1. 01

    The first-party visitor ID never reaches WPForms

    Forms submit over AJAX without a page navigation, so a conversion bound to a thank-you page URL never fires.

  2. 02

    Every form on the site counted as one conversion

    A newsletter signup and a request for a quote are not the same event. Pooling them means bidding optimises toward whichever is easiest to get, which is always the newsletter.

  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.

WPForms → Matomo · the fix

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

WPForms → Matomo · architecture

How WPForms and Matomo actually connect

  1. 1

    WPForms holds the truth

    The form ID is the only thing separating a newsletter signup from a quote request from a paid order. Without it, every submission is one undifferentiated conversion.

  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 WPForms entry.

  4. 4

    The event source decides reliability

    Send qualified outcomes per form ID, with separate conversion actions for meaningfully different forms.

  5. 5

    Deduplication at the destination

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

WPForms → Matomo · normal or broken

Working vs. broken, side by side — WPForms → 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 submit over AJAX without a page navigation, so a conversion bound to a thank-you page URL never fires.

  • Sent from the browser

    A newsletter signup and a request for a quote are not the same event. Pooling them means bidding optimises toward whichever is easiest to get, which is always the newsletter.

  • 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

WPForms → Matomo · diagnose

Diagnostic order — WPForms → Matomo

  1. 01

    Count submissions carrying the first-party visitor ID

  2. 02

    Follow one real conversion end to end

  3. 03

    List every form on the site and its real value

    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.

WPForms → Matomo · prove

How it gets proven — WPForms → Matomo

Source of truth

Your CRM or payment record, with the form ID recorded on 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 ID against imported conversions.

WPForms → 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 every form on the site and its real value
  • 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 ID recorded on the submission.

Get my free conversion tracking audit

Free30 minutesNo obligation

WPForms → Matomo · when not to buy

When you don't need this — WPForms → Matomo

  • Measure identifier coverage yourself first — pull your last hundred submissions and count how many carry the first-party visitor ID.
  • A site with one form needs one conversion 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.

WPForms → Matomo · what we deliver

What gets built — WPForms → Matomo

  • Identifier capture into WPForms

    Bind to the plugin's own submission event rather than to a page load, and pass the identifier through a hidden field.

  • Event source: your CRM or payment record

    Send qualified outcomes per form ID, with separate conversion actions for meaningfully different forms.

  • 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 or payment record, with the form ID recorded on the submission.. Miss it and we keep working at no cost.

Get my free conversion tracking audit

From $400 · See packages

FAQ

WPForms → Matomo questions, answered

Listen for the wpformsAjaxSubmitSuccess event in the browser and push a Matomo goal conversion with the form ID, or turn off AJAX on that form and redirect to a confirmation URL the goal can match.

Free · 30 min

Get WPForms and Matomo joined properly

Free30 minutesNo obligation