Skip to main content
Recurly → MatomoIntegration guide

Connecting Recurly to Matomo

Recurly is built around keeping subscriptions alive, which means a large share of the revenue it recovers comes from payments that failed and were retried rather than from anything marketing did. 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 Recurly subscription 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

Recurly and Matomo: subscription starts as first-party orders

Capture the Matomo visitor ID on your domain at signup, store it with the user, and send the first paid Recurly invoice from the webhook as a server-side ecommerce order, with the invoice number as order ID. This works even when payment runs on Recurly's hosted pages. Track renewals and recoveries as custom events, never as ecommerce orders.

Matomo's ecommerce tracking expects an order with an ID, and the first paid Recurly invoice is exactly that. Capture the Matomo visitor ID on your own domain during signup and store it with the user, so the server-side call from the Recurly webhook can attach the subscription to the visit that produced it. Use the invoice number as the order ID; Matomo will then ignore a second copy from a reloaded confirmation page.

If payment happens on Recurly's hosted pages, a browser-side ecommerce call on the confirmation step is not possible on that domain, which is the main reason to send this from the server. Self-hosting helps here in a concrete way: the tracker endpoint is on your own domain, so the signup visit survives ad blockers that would drop a hosted analytics tag, and the visitor ID you store is reliable.

Do not send renewals as ecommerce orders. A server-side order for a renewal months later arrives with no visit attached, so unless you pass the stored campaign details yourself, Matomo records it as a new visit from direct entry, and direct traffic starts collecting your recurring revenue. Track renewals and recoveries as custom events, or keep them out and report subscription revenue from Recurly or your database, which Matomo can sit next to.

Recurly → Matomo · what breaks

Why this join usually fails — Recurly → Matomo

  1. 01

    The first-party visitor ID never reaches Recurly

    Checkout may run through Recurly's hosted pages, and the renewal that actually matters happens months later with no browser session at all.

  2. 02

    Dunning recovery counted as acquisition

    A retried card that succeeds on day three looks identical to a new subscription in most exports. On a mature book that recovery is a meaningful share of monthly revenue and none of it was bought.

  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.

Recurly → Matomo · the fix

What working looks like — Recurly → Matomo

  • The first-party visitor ID on every subscription

  • 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

Recurly → Matomo · architecture

How Recurly and Matomo actually connect

  1. 1

    Recurly holds the truth

    Dunning recovery is Recurly's core product. Revenue rescued from a declined card three days after it failed is real money and it is not a conversion — attributing it to whatever campaign is running that week is the standard mistake here.

  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 Recurly subscription.

  4. 4

    The event source decides reliability

    Send new subscription starts at first successful payment. Renewals and dunning recoveries belong in separate figures.

  5. 5

    Deduplication at the destination

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

Recurly → Matomo · normal or broken

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

Normal, not a fault

  • The first-party visitor ID present on the subscription

  • Sent from the Recurly subscription webhook

  • 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 may run through Recurly's hosted pages, and the renewal that actually matters happens months later with no browser session at all.

  • Sent from the browser

    A retried card that succeeds on day three looks identical to a new subscription in most exports. On a mature book that recovery is a meaningful share of monthly revenue and none of it was bought.

  • 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

Recurly → Matomo · diagnose

Diagnostic order — Recurly → Matomo

  1. 01

    Count subscriptions carrying the first-party visitor ID

  2. 02

    Follow one real conversion end to end

  3. 03

    Split subscription events into new, renewal and recovered

    Three categories, three owners. Until they are separated, no acquisition number is readable.

  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.

Recurly → Matomo · prove

How it gets proven — Recurly → Matomo

Source of truth

Recurly subscriptions by start date, with recovered and involuntary-churn revenue held apart from new business.

  • The first-party visitor ID confirmed present on a live subscription.
  • Orders reconciled against the Matomo ecommerce log with order-ID deduplication verified.
  • New subscription starts reconciled against imported conversions, with recovered revenue reported separately.

Recurly → Matomo · free audit

What we check in the free audit

  • Count subscriptions carrying the first-party visitor ID
  • Follow one real conversion end to end
  • Split subscription events into new, renewal and recovered
  • Check tracker reachability and database lag before debugging any tag
  • Read the match rate, not the success message

Checked against

Recurly subscriptions by start date, with recovered and involuntary-churn revenue held apart from new business.

Get my free conversion tracking audit

Free30 minutesNo obligation

Recurly → Matomo · when not to buy

When you don't need this — Recurly → Matomo

  • Measure identifier coverage yourself first — pull your last hundred subscriptions and count how many carry the first-party visitor ID.
  • If your churn is mostly voluntary and you run no dunning, this collapses to an ordinary subscription integration.
  • 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.

Recurly → Matomo · what we deliver

What gets built — Recurly → Matomo

  • Identifier capture into Recurly

    Capture on your own domain, persist against the account, and attach to the subscription so a renewal or a recovery can still be traced without being credited as new.

  • Event source: the Recurly subscription webhook

    Send new subscription starts at first successful payment. Renewals and dunning recoveries belong in separate figures.

  • Dispatch to Matomo

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

  • Reversals where they exist

    Cancellations inside the first billing period reverse, and so should subscriptions that never recover from a failed first charge.

Written guarantee

95%+ tracking accuracy

Measured against Recurly subscriptions by start date, with recovered and involuntary-churn revenue held apart from new business.. Miss it and we keep working at no cost.

Get my free conversion tracking audit

From $400 · See packages

FAQ

Recurly → Matomo questions, answered

No. A renewal has no visit behind it, so Matomo attributes it to direct entry. Use custom events for renewals or report them from Recurly.

Free · 30 min

Get Recurly and Matomo joined properly

Free30 minutesNo obligation