Connecting FreshBooks to GA4
FreshBooks is invoicing for people who bill for their time, which puts an unavoidable gap between winning the work and being paid for it. GA4 is where the business goes to understand what happened, which makes an unattributed conversion there expensive in decisions rather than in ad spend. The join between them succeeds or fails on one thing: whether the GA4 client_id reaches the FreshBooks invoice before the conversion happens, because GA4 can only match a conversion it can tie back to a click it recognizes.
Free30 minutesNo obligation
Specific to this pair
FreshBooks payments in GA4: revenue by the month it arrived
Store the GA4 client_id at the first inquiry and copy it onto the FreshBooks client. When a payment lands, send purchase by Measurement Protocol with that client_id, amount received, currency and invoice number as transaction_id, so revenue lands in the month money arrived. Send later retainer payments as a custom event and refunds as refunds.
A FreshBooks payment carries no trace of the website visit, so the GA4 client_id has to be stored when the prospect first enquires, on the form or CRM record, and copied onto the FreshBooks client. When a payment lands, send a purchase by Measurement Protocol with that client_id, the amount received as value, the currency, and the invoice number as transaction_id.
GA4 dates the event when you send it, and Measurement Protocol only allows a short backdate. For this pair that is closer to useful than broken: GA4 revenue ends up on a cash basis, in the month the money arrived, which matches your bank rather than your invoicing. What it cannot do is show revenue against the month of the original enquiry, so add a custom dimension for enquiry month if you want cohort views of how long clients take to pay.
Retainer clients paying an invoice every month will each produce a purchase. Mark the first payment from a new client as purchase and later ones as a custom event such as retainer_payment, or GA4 will show your best clients as repeat conversions from a click years ago. Send refunds and credit notes as a refund event with the original transaction_id, and never send the client's name or email to GA4.
FreshBooks → GA4 · what breaks
Why this join usually fails — FreshBooks → GA4
- 01
The GA4 client_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
Everything lands under (direct)/(none)
The classic Measurement Protocol symptom, and it always means the same thing: the client_id was missing or wrong, so GA4 had no session to attach the event to and invented a new user.
- 04
Nothing reconciles afterwards
GA4 DebugView shows events arriving with their parameters, and Realtime confirms the user and session they attached to. Neither tells you whether you are double-counting — for that, compare GA4's conversion count against the source system's record for the same window.
FreshBooks → GA4 · the fix
What working looks like — FreshBooks → GA4
The GA4 client_id on every invoice
Conversions arriving in GA4
Conversions appear in GA4 attributed to the original session's source and medium, so acquisition reporting reflects what actually drove revenue.
Reconciled against the source
FreshBooks → GA4 · architecture
How FreshBooks and GA4 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
GA4 needs a click to match
GA4 needs the client_id to attach a server event to the user and session that produced the click. Without it there is no attribution to inherit and the event is orphaned.
- 3
The identifier is the bridge
The GA4 client_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
GA4 has no built-in deduplication for Measurement Protocol. If the browser also sends the event, it counts twice. The only reliable approach is to decide per event which side sends it, and enforce that decision — GA4 will not protect you from your own duplicates.
FreshBooks → GA4 · normal or broken
Working vs. broken, side by side — FreshBooks → GA4
Normal, not a fault
The GA4 client_id present on the invoice
Sent from the FreshBooks payment record
Deduplicated correctly
GA4 has no built-in deduplication for Measurement Protocol. If the browser also sends the event, it counts twice. The only reliable approach is to decide per event which side sends it, and enforce that decision — GA4 will not protect you from your own duplicates.
Reconciles with the source
Actually broken
The GA4 client_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 classic Measurement Protocol symptom, and it always means the same thing: the client_id was missing or wrong, so GA4 had no session to attach the event to and invented a new user.
Nobody has reconciled it
FreshBooks → GA4 · diagnose
Diagnostic order — FreshBooks → GA4
- 01
Count invoices carrying the GA4 client_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 whether server events carry a session and a source
In GA4 Realtime or DebugView, find the event and look at its session and traffic source. A brand-new user with no source on every server event is the missing-client_id signature.
- 05
Read the match rate, not the success message
GA4 DebugView shows events arriving with their parameters, and Realtime confirms the user and session they attached to. Neither tells you whether you are double-counting — for that, compare GA4's conversion count against the source system's record for the same window.
FreshBooks → GA4 · prove
How it gets proven — FreshBooks → GA4
Source of truth
FreshBooks invoices by payment date, not by issue date.
- The GA4 client_id confirmed present on a live invoice.
- Server events confirmed in DebugView attaching to an existing session with the original traffic source intact.
- Payments received reconciled against imported conversions over a window longer than your payment terms.
FreshBooks → GA4 · free audit
What we check in the free audit
- Count invoices carrying the GA4 client_id
- Follow one real conversion end to end
- Measure your average days-to-payment and your write-off rate
- Check whether server events carry a session and a source
- Read the match rate, not the success message
Checked against
FreshBooks invoices by payment date, not by issue date.
Free30 minutesNo obligation
FreshBooks → GA4 · when not to buy
When you don't need this — FreshBooks → GA4
- Measure identifier coverage yourself first — pull your last hundred invoices and count how many carry the GA4 client_id.
- If you take payment upfront, issue and payment coincide and this whole distinction disappears.
- GA4 is reporting, not bidding. If your problem is ad platform optimization, fix the ad platform destination first — GA4 will not change what any campaign does.
FreshBooks → GA4 · what we deliver
What gets built — FreshBooks → GA4
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 GA4
Measurement Protocol events with the client_id, session_id and the correct measurement ID and API secret, sent server-side.
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 → GA4 questions, answered
Yes, by sending each payment as a purchase via Measurement Protocol with the client_id stored at the original enquiry. It records on the day you send it, so revenue shows by payment month.
Payments. An issued invoice is not money received, and invoices that are never paid would stay counted as revenue.
Almost always because the GA4 client_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.
The client_id, from the _ga cookie. Measurement Protocol events without it are rejected or create a brand-new user with no session and no source, which is how server events end up filed under (direct)/(none) and make paid channels look worse than they are. Send session_id alongside it so the event joins the existing session, and include engagement_time_msec or the event may not appear as expected in reports.
The FreshBooks payment record. Send invoices at the point of payment, at the amount received after any processing fee.
GA4 DebugView shows events arriving with their parameters, and Realtime confirms the user and session they attached to. Neither tells you whether you are double-counting — for that, compare GA4's conversion count against the source system's record for the same window.
More on FreshBooks → GA4
- Stripe → GA4Connecting Stripe to GA4
- PayPal → GA4Connecting PayPal to GA4
- HubSpot → GA4Connecting HubSpot to GA4
RELATED GUIDES
Where FreshBooks → GA4 fits in the rest of your tracking
- BILL → GA4Connecting BILL to GA4
- QuickBooks → GA4Connecting QuickBooks to GA4
- Xero → GA4Connecting Xero to GA4
- FreshBooks → Adobe AnalyticsConnecting FreshBooks to Adobe Analytics
- FreshBooks → MixpanelConnecting FreshBooks to Mixpanel
- Accounting and CPAConversion tracking for accounting firms, measured in engagements
- Wave → GA4Connecting Wave to GA4
- Harvest → GA4Connecting Harvest to GA4
Free · 30 min
Get FreshBooks and GA4 joined properly
Free30 minutesNo obligation
