Skip to main content
LearnDash → MatomoIntegration guide

Connecting LearnDash to Matomo

LearnDash runs courses inside WordPress, which means enrolment can happen through a purchase, a membership, a manual grant or a coupon — and only one of those is revenue. 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 LearnDash enrolment 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

Matomo for LearnDash: self-hosted next to WordPress

Matomo can run inside WordPress through the official plugin. If LearnDash's own Stripe or PayPal checkout sells courses, no WooCommerce order exists, so send paid enrollments to the Matomo Tracking API server-side with the transaction ID as order ID and the visitor ID stored at checkout. Track free enrollments as goals and progress as events.

Matomo and LearnDash fit naturally because both can run on your own server, and there is an official Matomo for WordPress plugin that installs Matomo inside the WordPress site itself. Course sites that serve schools, nonprofits or privacy-sensitive learners often prefer this to sending learner behavior to an outside analytics company.

Ecommerce tracking is where the plugin's defaults fall short. If WooCommerce handles course checkout, check whether the plugin's WooCommerce tracking records orders on your setup. If LearnDash's own Stripe or PayPal checkout is used, no WooCommerce order exists, so send the paid enrollment to the Matomo Tracking API server-side from the payment record, with the transaction ID as the order ID and the visitor ID stored at checkout. Free and granted enrollments should be a goal, not an ecommerce order.

Course progress belongs in Matomo as events: lesson completed, quiz submitted, course completed, with the course name as the category. A funnel from landing page to enrollment to first lesson to completion tells you where learners drop, which most ad platforms will never show. Running Matomo in the same database as WordPress has a cost: logs grow fast on a busy course site, so check the archiving cron and disk space before debugging any missing data.

LearnDash → Matomo · what breaks

Why this join usually fails — LearnDash → Matomo

  1. 01

    The first-party visitor ID never reaches LearnDash

    Checkout runs through whichever WooCommerce or membership plugin is attached, so the identifier has to survive an extra handoff.

  2. 02

    Granted access counted as sales

    An admin enrolling a cohort, a membership granting bundled access and a coupon at one hundred percent all produce enrolment records identical to a paid one. Counting them inflates revenue by whatever your free access volume is.

  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.

LearnDash → Matomo · the fix

What working looks like — LearnDash → Matomo

  • The first-party visitor ID on every enrolment

  • 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

LearnDash → Matomo · architecture

How LearnDash and Matomo actually connect

  1. 1

    LearnDash holds the truth

    LearnDash enrols users from several sources. Course access granted by a membership plugin or by an admin is not a sale and must not be counted as one.

  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 LearnDash enrolment.

  4. 4

    The event source decides reliability

    Send paid enrolments at the amount charged. Free and granted enrolments carry no value.

  5. 5

    Deduplication at the destination

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

LearnDash → Matomo · normal or broken

Working vs. broken, side by side — LearnDash → Matomo

Normal, not a fault

  • The first-party visitor ID present on the enrolment

  • Sent from the payment record joined to the enrolment

  • 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

    Checkout runs through whichever WooCommerce or membership plugin is attached, so the identifier has to survive an extra handoff.

  • Sent from the browser

    An admin enrolling a cohort, a membership granting bundled access and a coupon at one hundred percent all produce enrolment records identical to a paid one. Counting them inflates revenue by whatever your free access volume is.

  • 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

LearnDash → Matomo · diagnose

Diagnostic order — LearnDash → Matomo

  1. 01

    Count enrolments carrying the first-party visitor ID

  2. 02

    Follow one real conversion end to end

  3. 03

    Split enrolments by how access was granted

    One field, and on established course sites the free share is usually larger than expected.

  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.

LearnDash → Matomo · prove

How it gets proven — LearnDash → Matomo

Source of truth

Paid enrolments from your payment system, held apart from free and granted access.

  • The first-party visitor ID confirmed present on a live enrolment.
  • Orders reconciled against the Matomo ecommerce log with order-ID deduplication verified.
  • Paid enrolments reconciled at charged amounts against imported conversions.

LearnDash → Matomo · free audit

What we check in the free audit

  • Count enrolments carrying the first-party visitor ID
  • Follow one real conversion end to end
  • Split enrolments by how access was granted
  • Check tracker reachability and database lag before debugging any tag
  • Read the match rate, not the success message

Checked against

Paid enrolments from your payment system, held apart from free and granted access.

Get my free conversion tracking audit

Free30 minutesNo obligation

LearnDash → Matomo · when not to buy

When you don't need this — LearnDash → Matomo

  • Measure identifier coverage yourself first — pull your last hundred enrolments and count how many carry the first-party visitor ID.
  • If every enrolment is a direct purchase, one conversion action is correct and simpler.
  • 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.

LearnDash → Matomo · what we deliver

What gets built — LearnDash → Matomo

  • Identifier capture into LearnDash

    Capture on landing and pass through the purchase flow to the enrolment record.

  • Event source: the payment record joined to the enrolment

    Send paid enrolments at the amount charged. Free and granted enrolments carry no value.

  • Dispatch to Matomo

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

  • Reversals where they exist

    Refunds reverse and should revoke access.

Written guarantee

95%+ tracking accuracy

Measured against Paid enrolments from your payment system, held apart from free and granted access.. Miss it and we keep working at no cost.

Get my free conversion tracking audit

From $400 · See packages

FAQ

LearnDash → Matomo questions, answered

Through WooCommerce tracking if WooCommerce runs your checkout. With LearnDash's own Stripe or PayPal checkout, send the order to Matomo's Tracking API from the payment record.

Free · 30 min

Get LearnDash and Matomo joined properly

Free30 minutesNo obligation