Connecting FreshBooks to Matomo
FreshBooks is invoicing for people who bill for their time, which puts an unavoidable gap between winning the work and being paid for it. 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 FreshBooks invoice 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
FreshBooks payments as Matomo ecommerce orders, weeks after the visit
Save the Matomo visitor ID, campaign and keyword on the FreshBooks client when the inquiry form submits. When payment arrives, send an ecommerce order through the HTTP Tracking API with the invoice number as order ID, the amount received and the stored campaign attribution, or it shows as direct. Net credit notes through a negative-revenue goal.
Matomo can record a FreshBooks payment as an ecommerce order through its HTTP Tracking API, but only if you kept the Matomo visitor ID from the original enquiry. Nobody is on your site when a client pays from an emailed invoice link in the FreshBooks client portal, so read the visitor ID from the Matomo cookie when the enquiry form submits and save it, with the campaign name and keyword from that visit, on the FreshBooks client record.
Use the FreshBooks invoice number as the Matomo order ID so a payment replayed by a retried webhook is not recorded twice, and send the amount received on the payment date. Partial payments are the awkward case: an invoice paid in two installments is two payments against one invoice number. Either wait until the invoice is fully paid and send once, or build the order ID from invoice number plus payment sequence. Check whether your Matomo version can reverse an ecommerce order; if not, record credit notes and write-offs as a separate negative-revenue goal and net them in reporting.
The failure for this pair is the expired visit. An order posted forty days after the enquiry lands on a fresh visit with no referrer, and every FreshBooks payment shows up as direct traffic. Matomo's tracking API accepts campaign name and keyword attribution with the request, so pass the values you stored at enquiry. For a small consultancy, a Matomo goal on the enquiry form plus a monthly paid-invoices-by-source table is often enough.
FreshBooks → Matomo · what breaks
Why this join usually fails — FreshBooks → Matomo
- 01
The first-party visitor ID never reaches FreshBooks
The client relationship starts on your website and the invoice is created weeks later by you, in an app, with no session anywhere near it.
- 02
Invoices sent counted as revenue earned
For a service business with payment terms this systematically reports revenue a month or more early, and it never corrects for the invoices that are simply never paid.
- 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.
- 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.
FreshBooks → Matomo · the fix
What working looks like — FreshBooks → Matomo
The first-party visitor ID on every invoice
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
FreshBooks → Matomo · architecture
How FreshBooks and Matomo actually connect
- 1
FreshBooks holds the truth
An invoice sent is a claim; an invoice paid is revenue. On thirty-day terms those are different months, and reporting the first as a conversion books income you have not received and may not.
- 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
The identifier is the bridge
The first-party visitor ID, captured at the visit and carried into the FreshBooks invoice.
- 4
The event source decides reliability
Send invoices at the point of payment, at the amount received after any processing fee.
- 5
Deduplication at the destination
Matomo deduplicates ecommerce orders on order ID. Without one, a refreshed confirmation page records a second order.
FreshBooks → Matomo · normal or broken
Working vs. broken, side by side — FreshBooks → Matomo
Normal, not a fault
The first-party visitor ID present on the invoice
Sent from the FreshBooks payment 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
The client relationship starts on your website and the invoice is created weeks later by you, in an app, with no session anywhere near it.
Sent from the browser
For a service business with payment terms this systematically reports revenue a month or more early, and it never corrects for the invoices that are simply never paid.
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
FreshBooks → Matomo · diagnose
Diagnostic order — FreshBooks → Matomo
- 01
Count invoices carrying the first-party visitor ID
- 02
Follow one real conversion end to end
- 03
Measure your average days-to-payment and your write-off rate
Two numbers. Together they tell you how far your reported revenue sits from your bank balance.
- 04
Check tracker reachability and database lag before debugging any tag
On self-hosted analytics the answer is infrastructure more often than instrumentation.
- 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.
FreshBooks → Matomo · prove
How it gets proven — FreshBooks → Matomo
Source of truth
FreshBooks invoices by payment date, not by issue date.
- The first-party visitor ID confirmed present on a live invoice.
- Orders reconciled against the Matomo ecommerce log with order-ID deduplication verified.
- Payments received reconciled against imported conversions over a window longer than your payment terms.
FreshBooks → Matomo · free audit
What we check in the free audit
- Count invoices carrying the first-party visitor ID
- Follow one real conversion end to end
- Measure your average days-to-payment and your write-off rate
- Check tracker reachability and database lag before debugging any tag
- Read the match rate, not the success message
Checked against
FreshBooks invoices by payment date, not by issue date.
Free30 minutesNo obligation
FreshBooks → Matomo · when not to buy
When you don't need this — FreshBooks → Matomo
- Measure identifier coverage yourself first — pull your last hundred invoices and count how many carry the first-party visitor ID.
- If you take payment upfront, issue and payment coincide and this whole distinction disappears.
- 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.
FreshBooks → Matomo · what we deliver
What gets built — FreshBooks → Matomo
Identifier capture into FreshBooks
Store the identifier on the client record at first enquiry and carry it onto every invoice raised against that client.
Event source: the FreshBooks payment record
Send invoices at the point of payment, at the amount received after any processing fee.
Dispatch to Matomo
The Matomo HTTP Tracking API, posted server-side from your order system.
Reversals where they exist
Credit notes and refunds reverse. Written-off invoices should reverse too, and usually never do.
Written guarantee
95%+ tracking accuracy
Measured against FreshBooks invoices by payment date, not by issue date.. Miss it and we keep working at no cost.
From $400 · See packages
FAQ
FreshBooks → Matomo questions, answered
Not out of the box. Check FreshBooks' app marketplace for a Matomo connector; otherwise post each payment to Matomo's HTTP Tracking API from a small server script, using a visitor ID saved on the FreshBooks client at enquiry.
The order arrives weeks after the visit, so Matomo files it under a new visit with no referrer. Send the campaign name and keyword you stored at enquiry with the order.
Almost always because the first-party visitor ID never reached the FreshBooks invoice. The client relationship starts on your website and the invoice is created weeks later by you, in an app, with no session anywhere near it. Measure coverage before debugging the dispatch.
Matomo sets its own first-party cookie and, when self-hosted on your domain, is not a third-party request at all. That means ad blockers and browser tracking-prevention affect it far less than a hosted analytics tag — one of the few genuine measurement advantages available under current privacy conditions.
The FreshBooks payment record. Send invoices at the point of payment, at the amount received after any processing fee.
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.
More on FreshBooks → Matomo
- FreshBooks → Google AdsConnecting FreshBooks to Google Ads
- FreshBooks → MetaConnecting FreshBooks to Meta Conversions API
- FreshBooks → GA4Connecting FreshBooks to GA4
RELATED GUIDES
Where FreshBooks → Matomo fits in the rest of your tracking
- Xero → MatomoConnecting Xero to Matomo
- Harvest → MatomoConnecting Harvest to Matomo
- BILL → MatomoConnecting BILL to Matomo
- FreshBooks → GA4Connecting FreshBooks to GA4
- FreshBooks → Adobe AnalyticsConnecting FreshBooks to Adobe Analytics
- Accounting and CPAConversion tracking for accounting firms, measured in engagements
- Wave → MatomoConnecting Wave to Matomo
- QuickBooks → MatomoConnecting QuickBooks to Matomo
Free · 30 min
Get FreshBooks and Matomo joined properly
Free30 minutesNo obligation
