Skip to main content
Stripe Billing → MatomoIntegration guide

Connecting Stripe Billing to Matomo

Stripe Billing sits on top of Stripe payments, and the difference matters: a payment succeeding is not the same event as a subscription beginning, and most implementations wire the wrong one. 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 Stripe 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

Stripe Billing subscriptions as Matomo ecommerce orders

Read Matomo's visitor ID on the pricing page and pass it into Stripe Checkout Session metadata, then post the first paid invoice as an ecommerce order through the HTTP Tracking API with the subscription ID as order ID. Record trial start as a goal at signup rather than backdating. Keep renewals out of ecommerce reports.

Matomo can tie a Stripe Billing subscription to the visit that produced it, because the visitor ID is a first-party cookie on your own domain. Read it on your pricing page, pass it into the Checkout session as metadata, and when the first paid invoice arrives post an ecommerce order to the HTTP Tracking API with that visitor ID, the subscription ID as the order ID and the invoice amount as revenue. Using the subscription ID rather than the invoice ID is what stops a webhook retry from booking the same start twice.

Trials are the timing problem. If the first charge lands fourteen days after signup, the order arrives long after the visit ended, and Matomo needs a custom timestamp plus an authentication token to backdate a hit that old. Most setups instead record the trial start as a goal at signup time and the paid order when it happens, then read the gap in a funnel.

Renewals do not belong in Matomo's ecommerce reports at all; they will appear as returning-visitor revenue with no visit behind it. Record them, if anywhere, as a separate server-side goal you can exclude. Because Matomo is self-hosted for many teams, check that the tracker endpoint accepts server calls from wherever your webhook handler runs.

Stripe Billing → Matomo · what breaks

Why this join usually fails — Stripe Billing → Matomo

  1. 01

    The first-party visitor ID never reaches Stripe Billing

    Stripe Checkout takes the customer to a Stripe-hosted page, and trials mean the subscription and the first payment can be weeks apart.

  2. 02

    Every renewal firing as a new conversion

    The most common Stripe Billing error and the easiest to make, because payment success is the obvious webhook. It inflates conversion counts by exactly your retention rate, which makes long-lived customers look like a marketing achievement every month.

  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.

Stripe Billing → Matomo · the fix

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

Stripe Billing → Matomo · architecture

How Stripe Billing and Matomo actually connect

  1. 1

    Stripe Billing holds the truth

    Every renewal produces a successful payment intent. Wire the conversion to payment success and a customer who stays two years generates twenty-four conversions against one acquisition.

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

  4. 4

    The event source decides reliability

    Send the first successful payment on a new subscription, not every invoice. Trial starts belong on a separate lower-value action.

  5. 5

    Deduplication at the destination

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

Stripe Billing → Matomo · normal or broken

Working vs. broken, side by side — Stripe Billing → Matomo

Normal, not a fault

  • The first-party visitor ID present on the subscription

  • Sent from the Stripe subscription lifecycle webhooks

  • 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

    Stripe Checkout takes the customer to a Stripe-hosted page, and trials mean the subscription and the first payment can be weeks apart.

  • Sent from the browser

    The most common Stripe Billing error and the easiest to make, because payment success is the obvious webhook. It inflates conversion counts by exactly your retention rate, which makes long-lived customers look like a marketing achievement every month.

  • 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

Stripe Billing → Matomo · diagnose

Diagnostic order — Stripe Billing → Matomo

  1. 01

    Count subscriptions carrying the first-party visitor ID

  2. 02

    Follow one real conversion end to end

  3. 03

    Compare monthly conversion count against new subscription count

    If conversions exceed new subscriptions, renewals are being counted and the acquisition figure is wrong by that amount.

  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.

Stripe Billing → Matomo · prove

How it gets proven — Stripe Billing → Matomo

Source of truth

Stripe subscriptions by creation date, separated from the invoice payments that recur against them.

  • The first-party visitor ID confirmed present on a live subscription.
  • Orders reconciled against the Matomo ecommerce log with order-ID deduplication verified.
  • New subscriptions reconciled against imported conversions for a settled month, with renewals demonstrably excluded.

Stripe Billing → 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
  • Compare monthly conversion count against new subscription count
  • Check tracker reachability and database lag before debugging any tag
  • Read the match rate, not the success message

Checked against

Stripe subscriptions by creation date, separated from the invoice payments that recur against them.

Get my free conversion tracking audit

Free30 minutesNo obligation

Stripe Billing → Matomo · when not to buy

When you don't need this — Stripe Billing → Matomo

  • Measure identifier coverage yourself first — pull your last hundred subscriptions and count how many carry the first-party visitor ID.
  • If you take one-off payments and no subscriptions, the plain Stripe integration covers you and this adds nothing.
  • 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.

Stripe Billing → Matomo · what we deliver

What gets built — Stripe Billing → Matomo

  • Identifier capture into Stripe Billing

    Capture on your own domain and pass the identifier into the Checkout session metadata, so it lands on the customer and survives to the first real charge.

  • Event source: the Stripe subscription lifecycle webhooks

    Send the first successful payment on a new subscription, not every invoice. Trial starts belong on a separate lower-value action.

  • Dispatch to Matomo

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

  • Reversals where they exist

    Cancellations inside the first period reverse.

Written guarantee

95%+ tracking accuracy

Measured against Stripe subscriptions by creation date, separated from the invoice payments that recur against them.. Miss it and we keep working at no cost.

Get my free conversion tracking audit

From $400 · See packages

FAQ

Stripe Billing → Matomo questions, answered

Yes, if you carry the Matomo visitor ID from your site into the Checkout session metadata and send it back with the order through the Tracking API.

Free · 30 min

Get Stripe Billing and Matomo joined properly

Free30 minutesNo obligation