Connecting Squarespace Commerce to GA4
Squarespace prioritises design simplicity over extensibility, so what you can instrument is bounded by what the platform chooses to expose. 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 Squarespace 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
Squarespace in GA4: test the native purchase before replacing it
Test Squarespace's native GA4 connection first: place an order in DebugView and confirm purchase arrives with the order number as transaction_id and correct value. Since a client_id rarely reaches the order, use the webhook for refunds and reconciliation rather than a second purchase, sending refunds with the same order number the native purchase used.
Squarespace has a native GA4 connection in its analytics settings. Before building anything, place a test order with DebugView open and see whether purchase arrives with the order number as transaction_id and the right value and currency. If it does, the native event is your browser-side purchase, and the work is filling its gaps rather than replacing it.
A purchase sent from the order webhook through Measurement Protocol needs the buyer's client_id, and on Squarespace there is no reliable way to get it into the order; test whether a custom checkout field survives. Without a client_id the webhook purchase is an orphan under (direct)/(none) and also duplicates the native event, since GA4 does not deduplicate across the two. For most stores the webhook is better used for reconciliation and refunds than for purchase itself.
If your checkout URL sits on a squarespace.com host rather than your own domain, look at whether purchases are being credited to a squarespace.com referral; that points to a broken session at checkout. When Squarespace records a refund, send a refund event carrying the same order number the native purchase used, so GA4 revenue falls by the right amount.
Squarespace → GA4 · what breaks
Why this join usually fails — Squarespace → GA4
- 01
The GA4 client_id never reaches Squarespace
Checkout runs on Squarespace's infrastructure with limited script access, so an identifier held in a cookie on your pages does not reliably reach the order. What survives has to be tested rather than assumed.
- 02
Platform limits mistaken for implementation failures
Squarespace restricts what runs at checkout by design. A setup that works on Shopify will not simply port, and the gap is the platform rather than the build.
- 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.
Squarespace → GA4 · the fix
What working looks like — Squarespace → 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
Squarespace Commerce's own records are the reference, not either dashboard.
Squarespace → GA4 · architecture
How Squarespace and GA4 actually connect
- 1
Squarespace Commerce holds the truth
Squarespace holds the order cleanly. The constraint is access — code injection is limited and checkout customisation more so, which caps what a browser-side approach can achieve.
- 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 Squarespace order.
- 4
The event source decides reliability
Send from the webhook rather than the confirmation page, which has restricted script access and may not run what you expect.
- 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.
Squarespace → GA4 · normal or broken
Working vs. broken, side by side — Squarespace → GA4
Normal, not a fault
The GA4 client_id present on the order
Visible on the record itself in Squarespace Commerce, not merely captured somewhere on the site.
Sent from the Squarespace order webhook
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
GA4's count and Squarespace Commerce's records agree within a few percent over a closed window.
Actually broken
The GA4 client_id missing on most records
Checkout runs on Squarespace's infrastructure with limited script access, so an identifier held in a cookie on your pages does not reliably reach the order. What survives has to be tested rather than assumed.
Sent from the browser
Squarespace restricts what runs at checkout by design. A setup that works on Shopify will not simply port, and the gap is the platform rather than the build.
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
The dashboard shows a number and no one has compared it to Squarespace Commerce.
Squarespace → GA4 · diagnose
Diagnostic order — Squarespace → GA4
- 01
Count orders carrying the GA4 client_id
- 02
Follow one real conversion end to end
- 03
Test what actually reaches the order record
One real purchase tells you more than the documentation about what this platform preserves.
- 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.
Squarespace → GA4 · prove
How it gets proven — Squarespace → GA4
Against Squarespace Commerce's own records, not against either platform's dashboard.
Source of truth
Squarespace's order records for the same window.
- 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.
- A test purchase with the identifier confirmed retrievable from the Squarespace order.
Squarespace → GA4 · free audit
What we check in the free audit
- Count orders carrying the GA4 client_id
- Follow one real conversion end to end
- Test what actually reaches the order record
- Check whether server events carry a session and a source
- Read the match rate, not the success message
Checked against
Squarespace's order records for the same window.
Free30 minutesNo obligation
Squarespace → GA4 · when not to buy
When you don't need this — Squarespace → GA4
- If GA4 already reports conversions that reconcile against Squarespace Commerce's records within a few percent, this join is working and there is nothing to buy.
- Measure identifier coverage yourself first — pull your last hundred orders and count how many carry the GA4 client_id.
- For a small Squarespace store, the native integrations plus honest reporting may be the right answer — the platform's ceiling is real.
- 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.
Squarespace → GA4 · what we deliver
What gets built — Squarespace → GA4
Identifier capture into Squarespace
Capture the identifier and pass it through the supported order form fields or the commerce API, verifying on a real order which values persist.
Event source: the Squarespace order webhook
Send from the webhook rather than the confirmation page, which has restricted script access and may not run what you expect.
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 are recorded against the order.
Written guarantee
95%+ tracking accuracy
Measured against Squarespace's order records for the same window.. Miss it and we keep working at no cost.
From $400 · See packages
FAQ
Squarespace → GA4 questions, answered
Squarespace has a native GA4 connection. Check in DebugView with a test order whether purchase arrives with the order number and value before adding your own.
Only usefully with the buyer's client_id, which rarely reaches a Squarespace order. Without it the event lands as a new user and duplicates the native purchase.
Almost always because the GA4 client_id never reached the Squarespace order. Checkout runs on Squarespace's infrastructure with limited script access, so an identifier held in a cookie on your pages does not reliably reach the order. What survives has to be tested rather than assumed. 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 Squarespace order webhook. Send from the webhook rather than the confirmation page, which has restricted script access and may not run what you expect.
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 Squarespace → GA4
- Squarespace → Google AdsConnecting Squarespace Commerce to Google Ads
- Squarespace → MetaConnecting Squarespace Commerce to Meta Conversions API
- Squarespace → HubSpotConnecting Squarespace Commerce to HubSpot
RELATED GUIDES
Where Squarespace → GA4 fits in the rest of your tracking
- Magento → GA4Connecting Magento to GA4
- WooCommerce Subscriptions → GA4Connecting WooCommerce Subscriptions to GA4
- Shopify POS → GA4Connecting Shopify POS to GA4
- Squarespace → MixpanelConnecting Squarespace Commerce to Mixpanel
- Squarespace → PostHogConnecting Squarespace Commerce to PostHog
- SupplementsConversion tracking for supplement brands, built around subscription value
- Gumroad → GA4Connecting Gumroad to GA4
- Swell → GA4Connecting Swell to GA4
Free · 30 min
Get Squarespace and GA4 joined properly
Free30 minutesNo obligation
