Skip to main content
GoCardless → MatomoIntegration guide

Connecting GoCardless to Matomo

GoCardless is bank debit rather than card, which changes everything about timing — a mandate is set up now and money moves days later, repeatedly. 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 GoCardless mandate 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

GoCardless to Matomo: backdated orders tied to the original visit

Capture the Matomo visitor ID on signup and store it in GoCardless mandate metadata, then send an ecommerce order through the HTTP Tracking API when the webhook confirms the mandate, with the mandate ID as order ID and a custom timestamp backed by an authentication token. Send one order per active mandate, reporting collections and failures elsewhere.

Matomo self-hosted gives a GoCardless business a first-party record of the visit that produced a signup, which is useful because bank debit separates the visit from any money by days. Capture the Matomo visitor ID on your signup page and store it in the mandate metadata when you create the mandate. Then, when the webhook confirms the mandate, send an ecommerce order through the HTTP Tracking API with that visitor ID and the mandate ID as the order ID.

Two Matomo specifics apply. A hit describing something that happened earlier needs a custom timestamp, and backdating beyond a short window requires an authentication token, so set that up rather than letting confirmations land as new visits today. And the order ID is your only protection against a retried GoCardless webhook recording the same mandate twice.

Decide what Matomo revenue means. If you send collections as additional orders, Matomo's ecommerce reports will show recurring revenue as repeat purchases and inflate conversion rates. A clearer setup is one order per active mandate at the value you plan around, with collections, failures and cancellations reported from GoCardless or a warehouse. Check database lag before blaming the integration for missing orders.

GoCardless → Matomo · what breaks

Why this join usually fails — GoCardless → Matomo

  1. 01

    The first-party visitor ID never reaches GoCardless

    Bank debit has a mandatory notice period and a settlement lag measured in days, so the money event is always well after the click. The identifier must live on the mandate, because every subsequent payment references it rather than a browser session.

  2. 02

    Days between the signup and the money

    Bank debit is not instant. The mandate is agreed today and the first collection clears later, which puts every naive page-based conversion at the wrong moment and the wrong value.

  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.

GoCardless → Matomo · the fix

What working looks like — GoCardless → Matomo

  • The first-party visitor ID on every mandate

  • 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

GoCardless → Matomo · architecture

How GoCardless and Matomo actually connect

  1. 1

    GoCardless holds the truth

    The mandate is the acquisition; each payment is a collection against it. A subscription business on direct debit should value the mandate, not the first collection.

  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 GoCardless mandate.

  4. 4

    The event source decides reliability

    Send the mandate setup as acquisition at expected lifetime value, and treat individual collections as reporting rather than as new conversions.

  5. 5

    Deduplication at the destination

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

GoCardless → Matomo · normal or broken

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

Normal, not a fault

  • The first-party visitor ID present on the mandate

  • Sent from the GoCardless payment confirmed 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

    Bank debit has a mandatory notice period and a settlement lag measured in days, so the money event is always well after the click. The identifier must live on the mandate, because every subsequent payment references it rather than a browser session.

  • Sent from the browser

    Bank debit is not instant. The mandate is agreed today and the first collection clears later, which puts every naive page-based conversion at the wrong moment and the wrong value.

  • 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

GoCardless → Matomo · diagnose

Diagnostic order — GoCardless → Matomo

  1. 01

    Count mandates carrying the first-party visitor ID

  2. 02

    Follow one real conversion end to end

  3. 03

    Check whether the identifier is on the mandate or only the first payment

    If it is on the payment, no later collection can be attributed — and later collections are most of the revenue.

  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.

GoCardless → Matomo · prove

How it gets proven — GoCardless → Matomo

Source of truth

GoCardless payments confirmed by charge date, against the mandate that authorised them.

  • The first-party visitor ID confirmed present on a live mandate.
  • Orders reconciled against the Matomo ecommerce log with order-ID deduplication verified.
  • A collection weeks after setup confirmed traceable to the original mandate and click.

GoCardless → Matomo · free audit

What we check in the free audit

  • Count mandates carrying the first-party visitor ID
  • Follow one real conversion end to end
  • Check whether the identifier is on the mandate or only the first payment
  • Check tracker reachability and database lag before debugging any tag
  • Read the match rate, not the success message

Checked against

GoCardless payments confirmed by charge date, against the mandate that authorised them.

Get my free conversion tracking audit

Free30 minutesNo obligation

GoCardless → Matomo · when not to buy

When you don't need this — GoCardless → Matomo

  • Measure identifier coverage yourself first — pull your last hundred mandates and count how many carry the first-party visitor ID.
  • If you take one-off bank payments with no mandate, this reduces to a much simpler 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.

GoCardless → Matomo · what we deliver

What gets built — GoCardless → Matomo

  • Identifier capture into GoCardless

    Pass the click identifier into the mandate's metadata at setup, so all future collections trace back to the campaign that acquired the customer.

  • Event source: the GoCardless payment confirmed webhook

    Send the mandate setup as acquisition at expected lifetime value, and treat individual collections as reporting rather than as new conversions.

  • Dispatch to Matomo

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

  • Reversals where they exist

    Failed collections, chargebacks and cancelled mandates all exist and all should reduce the reported value.

Written guarantee

95%+ tracking accuracy

Measured against GoCardless payments confirmed by charge date, against the mandate that authorised them.. Miss it and we keep working at no cost.

Get my free conversion tracking audit

From $400 · See packages

FAQ

GoCardless → Matomo questions, answered

Store the Matomo visitor ID in the mandate metadata at signup, then send an ecommerce order through the HTTP Tracking API when the mandate is confirmed, using the mandate ID as the order ID.

Free · 30 min

Get GoCardless and Matomo joined properly

Free30 minutesNo obligation