Connecting Square Online to GA4
Square Online orders settle into the same Square account as the card taken at the counter, which is a genuine advantage: the online and in-person halves of the business are already denominated in one ledger. 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 Square Online order 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
Square Online to GA4: built-in tag or server events, not both
Decide whether Square Online's built-in Google Analytics setting or Measurement Protocol owns GA4 purchases, never both. For server events, get the client_id onto the order, link domains with cross-domain measurement, and list Square's payment page as an unwanted referral. Send online-channel orders with value net of tips and tax, and refunds against the same transaction_id.
Square Online has settings for connecting Google Analytics; check what your plan offers and whether it sends GA4 purchase events or only page views. If it sends purchase from the browser, adding Measurement Protocol events from Square transactions will count every order twice, because GA4 does not deduplicate the two. Decide which side owns purchase. The server side is more reliable, but it only works if you can get the shopper's client_id onto the order.
Domain matters here. If the store runs on a Square-provided subdomain while your main site and ads live on your own domain, they are separate cookie domains, and the session breaks at the hop unless cross-domain measurement links them. If checkout hands off to a Square-hosted payment page, add that domain to your unwanted referrals list, or GA4 will credit Square for the sale.
Send value net of tips and tax: GA4's purchase has its own tax and shipping parameters, and there is no tip parameter, so tips simply belong outside value. Filter to the online sales channel before anything is sent, since Square transactions include counter sales that have no GA4 user at all. Pickup orders paid online are fine; orders placed online but paid at the counter need a rule decided up front about which record counts. Send refunds as GA4 refund events against the same transaction_id.
Square Online → GA4 · what breaks
Why this join usually fails — Square Online → GA4
- 01
The GA4 client_id never reaches Square Online
Square Online sites are frequently on a Square-provided domain, and checkout may hand off to Square-hosted payment pages depending on configuration.
- 02
Counter sales counted as online conversions
The convenience of one ledger is also the trap. If the sales channel is not filtered, every card swipe at the register lands in your ad reporting as a conversion you paid for.
- 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.
Square Online → GA4 · the fix
What working looks like — Square Online → GA4
The GA4 client_id on every order
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
Square Online → GA4 · architecture
How Square Online and GA4 actually connect
- 1
Square Online holds the truth
The filter is the whole job. Square's default reporting cheerfully sums counter sales and online orders, and that total is not something any ad platform should be optimizing toward.
- 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 Square Online order.
- 4
The event source decides reliability
Send net of tips and taxes. Tips on food orders are substantial and are not your revenue.
- 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.
Square Online → GA4 · normal or broken
Working vs. broken, side by side — Square Online → GA4
Normal, not a fault
The GA4 client_id present on the order
Sent from the Square transaction 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
Square Online sites are frequently on a Square-provided domain, and checkout may hand off to Square-hosted payment pages depending on configuration.
Sent from the browser
The convenience of one ledger is also the trap. If the sales channel is not filtered, every card swipe at the register lands in your ad reporting as a conversion you paid for.
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
Square Online → GA4 · diagnose
Diagnostic order — Square Online → GA4
- 01
Count orders carrying the GA4 client_id
- 02
Follow one real conversion end to end
- 03
Filter by sales channel and re-check the total
Compare the filtered online total against Square Online's own order count. If they disagree, the filter is wrong before the tracking is.
- 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.
Square Online → GA4 · prove
How it gets proven — Square Online → GA4
Source of truth
Square transactions filtered to the online sales channel, by location.
- The GA4 client_id confirmed present on a live order.
- Server events confirmed in DebugView attaching to an existing session with the original traffic source intact.
- Online-channel transactions reconciled against imported conversions for a settled week.
Square Online → GA4 · free audit
What we check in the free audit
- Count orders carrying the GA4 client_id
- Follow one real conversion end to end
- Filter by sales channel and re-check the total
- Check whether server events carry a session and a source
- Read the match rate, not the success message
Checked against
Square transactions filtered to the online sales channel, by location.
Free30 minutesNo obligation
Square Online → GA4 · when not to buy
When you don't need this — Square Online → GA4
- Measure identifier coverage yourself first — pull your last hundred orders and count how many carry the GA4 client_id.
- If Square Online is a small side channel next to your counter business, measure it on order count and do not build an import for it.
- 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.
Square Online → GA4 · what we deliver
What gets built — Square Online → GA4
Identifier capture into Square Online
Persist the identifier in first-party storage on your own domain before the handoff, and reattach it to the order at the point the transaction is written.
Event source: the Square transaction record
Send net of tips and taxes. Tips on food orders are substantial and are not your revenue.
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
Refunds appear in Square as their own records and should be sent as reversals.
Written guarantee
95%+ tracking accuracy
Measured against Square transactions filtered to the online sales channel, by location.. Miss it and we keep working at no cost.
From $400 · See packages
FAQ
Square Online → GA4 questions, answered
Check the Google Analytics settings in your Square Online dashboard to see what it sends. If it already sends purchase, do not add a server-side purchase as well, or GA4 will count each order twice.
The session broke when the shopper moved to a Square domain. Set up cross-domain measurement or unwanted referrals for those domains.
Almost always because the GA4 client_id never reached the Square Online order. Square Online sites are frequently on a Square-provided domain, and checkout may hand off to Square-hosted payment pages depending on configuration. 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 Square transaction record. Send net of tips and taxes. Tips on food orders are substantial and are not your revenue.
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 Square Online → GA4
- Square → GA4Connecting Square to GA4
- Square Online → Google AdsConnecting Square Online to Google Ads
- Square Online → MetaConnecting Square Online to Meta Conversions API
RELATED GUIDES
Where Square Online → GA4 fits in the rest of your tracking
- Otter → GA4Connecting Otter to GA4
- ChowNow → GA4Connecting ChowNow to GA4
- Popmenu → GA4Connecting Popmenu to GA4
- Square Online → AmplitudeConnecting Square Online to Amplitude
- Square Online → MatomoConnecting Square Online to Matomo
- CateringConversion tracking for catering, measured in confirmed events
- Uber Eats → GA4Connecting Uber Eats to GA4
- DoorDash → GA4Connecting DoorDash to GA4
Free · 30 min
Get Square Online and GA4 joined properly
Free30 minutesNo obligation
