Skip to main content
Divi → MatomoIntegration guide

Connecting Divi to Matomo

Divi is a theme and builder combined, which means the site's structure and its forms are the same product — and a theme update can change both at once. 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 Divi form 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

Divi forms in Matomo: track the success, not the click

Trigger the Matomo goal from the Divi Contact Form's success state or a redirect thank-you URL; a submit-click goal counts failed captchas. Install the tracker once, via plugin or Theme Options Integration, not both. Capture Matomo's visitor ID into the submission so CRM-qualified leads sent through the HTTP Tracking API keep their campaign.

Matomo on a Divi site can be the simplest pair in this library or a quiet mess, depending on one detail: what counts as a submission. Divi's Contact Form validates in the browser, includes an optional math captcha, and submits over AJAX without a page load. A goal set to 'clicked the submit button' records every failed captcha and every empty-field error as a conversion. Trigger the goal manually from the success state, or use the module's redirect option and set the goal on the thank-you URL.

Install the tracker once. Matomo has its own WordPress plugin, and sites also paste the tracking code into Theme Options Integration; doing both double-counts every page view. Pick one, and if you run your own Matomo server, serve the tracker from your own domain so ad blockers leave it alone, which is the reason most people choose Matomo over hosted tools.

Qualified leads arrive later from the CRM, and the HTTP Tracking API can record them against the original visitor if you captured Matomo's visitor ID into the submission. Without it, the qualified lead lands as a new visitor and your goal attribution by channel loses the campaign that produced it. Divi forms do not store entries in WordPress, so check that Matomo's lead counts line up with your inbox or CRM, not with a database table that does not exist.

Divi → Matomo · what breaks

Why this join usually fails — Divi → Matomo

  1. 01

    The first-party visitor ID never reaches Divi

    Custom code added to theme templates is vulnerable to updates, and Divi's contact module submits over AJAX.

  2. 02

    Tracking removed by a theme update

    Code placed directly into theme files disappears when the theme updates. The site keeps working, the forms keep submitting, and the conversions stop arriving with no error anywhere.

  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.

Divi → Matomo · the fix

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

Divi → Matomo · architecture

How Divi and Matomo actually connect

  1. 1

    Divi holds the truth

    Because the builder is the theme, tracking added into templates can be lost or duplicated by a theme update in ways a plugin-based setup would not experience.

  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 Divi form submission.

  4. 4

    The event source decides reliability

    Send qualified outcomes per form, with the identifier passed through a hidden field.

  5. 5

    Deduplication at the destination

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

Divi → Matomo · normal or broken

Working vs. broken, side by side — Divi → 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

    Custom code added to theme templates is vulnerable to updates, and Divi's contact module submits over AJAX.

  • Sent from the browser

    Code placed directly into theme files disappears when the theme updates. The site keeps working, the forms keep submitting, and the conversions stop arriving with no error anywhere.

  • 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

Divi → Matomo · diagnose

Diagnostic order — Divi → Matomo

  1. 01

    Count submissions carrying the first-party visitor ID

  2. 02

    Follow one real conversion end to end

  3. 03

    Check whether tracking code sits in theme files or in a child theme

    If it is in the parent theme, it is one update away from vanishing.

  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.

Divi → Matomo · prove

How it gets proven — Divi → 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, with code placement verified update-safe.

Divi → 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
  • Check whether tracking code sits in theme files or in a child theme
  • 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

Divi → Matomo · when not to buy

When you don't need this — Divi → Matomo

  • Measure identifier coverage yourself first — pull your last hundred submissions and count how many carry the first-party visitor ID.
  • Sites using a separate form plugin and a tag manager are insulated from the theme-update risk.
  • 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.

Divi → Matomo · what we deliver

What gets built — Divi → Matomo

  • Identifier capture into Divi

    Use a child theme or the builder's supported code integration areas rather than editing templates directly, and bind to the AJAX submission.

  • Event source: your CRM record

    Send qualified outcomes per form, with the identifier passed through a hidden field.

  • 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

Divi → Matomo questions, answered

The goal is probably firing on the submit click, which includes failed captchas and validation errors. Trigger it on the success message or a redirect to a thank-you page.

Free · 30 min

Get Divi and Matomo joined properly

Free30 minutesNo obligation