Connecting BigCommerce to GA4
BigCommerce is a hosted store with an unusually open API, which makes it one of the easier ecommerce platforms to instrument properly. 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 BigCommerce 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
BigCommerce to GA4: one client_id across storefront and checkout
Read the GA4 client_id and session_id from the storefront's cookies, write them to the BigCommerce cart custom field, and send purchase through Measurement Protocol once the order is paid, with the order ID as transaction_id. Check the checkout hostname for cross-domain breaks, and do not also keep BigCommerce's built-in GA4 purchase.
On BigCommerce the GA4 purchase should come from the order, not from the order-confirmation page, and it needs the client_id that was live on the storefront. Read the client_id from the _ga cookie and the session_id from the property's own _ga_ cookie on the storefront, write both to the cart custom field next to any click IDs, and send purchase through Measurement Protocol when the order reaches a paid status. Set transaction_id to the BigCommerce order ID so a browser tag and the server can never both claim the same order unnoticed.
The break specific to this pair is a headless or multi-domain store. When the storefront runs on your own domain and checkout is BigCommerce's hosted page on a different hostname, GA4 starts a new client_id at checkout unless cross-domain measurement covers both, and the order then reports as a referral from your own site or as (direct). Check the hostname of your checkout page before trusting any channel report.
Decide one owner for the purchase event. BigCommerce has a built-in GA4 connection (check under Data Solutions in your control panel) that sends browser-side ecommerce events; if you keep it, do not also send purchase from the server. If you replace it, send refund with the same transaction_id when a refund is recorded against the order, and send value in the order's transaction currency so a multi-currency store does not get summed in the wrong unit.
BigCommerce → GA4 · what breaks
Why this join usually fails — BigCommerce → GA4
- 01
The GA4 client_id never reaches BigCommerce
BigCommerce offers both a hosted checkout and an embedded one, and which you use changes whether your storefront scripts run during checkout. On the hosted flow the identifier has to travel through the cart rather than through a cookie.
- 02
Two checkout modes with different script access
Hosted and embedded checkout behave differently, and a setup built for one silently misses conversions on the other.
- 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.
BigCommerce → GA4 · the fix
What working looks like — BigCommerce → 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
BigCommerce → GA4 · architecture
How BigCommerce and GA4 actually connect
- 1
BigCommerce holds the truth
The order carries line items, tax, shipping and currency. Decide whether you report the order total or a net figure before comparing anything, because most BigCommerce discrepancies are two people using two definitions.
- 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 BigCommerce order.
- 4
The event source decides reliability
Send when the order status reaches paid, from your server. This covers wallet checkouts and customers who never reach the confirmation page.
- 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.
BigCommerce → GA4 · normal or broken
Working vs. broken, side by side — BigCommerce → GA4
Normal, not a fault
The GA4 client_id present on the order
Sent from the BigCommerce 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
Actually broken
The GA4 client_id missing on most records
BigCommerce offers both a hosted checkout and an embedded one, and which you use changes whether your storefront scripts run during checkout. On the hosted flow the identifier has to travel through the cart rather than through a cookie.
Sent from the browser
Hosted and embedded checkout behave differently, and a setup built for one silently misses conversions on the other.
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
BigCommerce → GA4 · diagnose
Diagnostic order — BigCommerce → GA4
- 01
Count orders carrying the GA4 client_id
- 02
Follow one real conversion end to end
- 03
Confirm which checkout mode the store uses
Then test a purchase on that mode specifically rather than on whichever one is convenient.
- 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.
BigCommerce → GA4 · prove
How it gets proven — BigCommerce → GA4
Source of truth
BigCommerce's order list for the same window, at an agreed value definition.
- 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 purchase through the store's actual checkout mode confirmed to carry the identifier onto the order.
BigCommerce → GA4 · free audit
What we check in the free audit
- Count orders carrying the GA4 client_id
- Follow one real conversion end to end
- Confirm which checkout mode the store uses
- Check whether server events carry a session and a source
- Read the match rate, not the success message
Checked against
BigCommerce's order list for the same window, at an agreed value definition.
Free30 minutesNo obligation
BigCommerce → GA4 · when not to buy
When you don't need this — BigCommerce → GA4
- Measure identifier coverage yourself first — pull your last hundred orders and count how many carry the GA4 client_id.
- BigCommerce's native channel integrations are decent for simple single-currency stores. If your admin and platform numbers already agree, leave 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.
BigCommerce → GA4 · what we deliver
What gets built — BigCommerce → GA4
Identifier capture into BigCommerce
Capture the identifier on the storefront and write it to the order through a cart custom field, then read it back server-side from the order.
Event source: the BigCommerce order webhook
Send when the order status reaches paid, from your server. This covers wallet checkouts and customers who never reach the confirmation page.
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 original order, so reversals are straightforward.
Written guarantee
95%+ tracking accuracy
Measured against BigCommerce's order list for the same window, at an agreed value definition.. Miss it and we keep working at no cost.
From $400 · See packages
FAQ
BigCommerce → GA4 questions, answered
Checkout runs on a different hostname from the storefront and GA4 is not linking the two, so a new session starts at checkout. Add both domains to GA4's cross-domain configuration, or send purchase server-side with the client_id saved from the storefront.
If your BigCommerce order count and GA4 purchases already agree within a few percent, keep the native integration. If they don't, send purchase from the order webhook through Measurement Protocol and turn off the browser purchase so it is not counted twice.
Almost always because the GA4 client_id never reached the BigCommerce order. BigCommerce offers both a hosted checkout and an embedded one, and which you use changes whether your storefront scripts run during checkout. On the hosted flow the identifier has to travel through the cart rather than through a cookie. 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 BigCommerce order webhook. Send when the order status reaches paid, from your server. This covers wallet checkouts and customers who never reach the confirmation page.
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 BigCommerce → GA4
- BigCommerce + GoogleGoogle Ads and GA4 tracking for BigCommerce
- Stripe → GA4Connecting Stripe to GA4
- PayPal → GA4Connecting PayPal to GA4
RELATED GUIDES
Where BigCommerce → GA4 fits in the rest of your tracking
- SureCart → GA4Connecting SureCart to GA4
- EDD → GA4Connecting Easy Digital Downloads to GA4
- Squarespace → GA4Connecting Squarespace Commerce to GA4
- BigCommerce → PostHogConnecting BigCommerce to PostHog
- BigCommerce → MatomoConnecting BigCommerce to Matomo
- SupplementsConversion tracking for supplement brands, built around subscription value
- PrestaShop → GA4Connecting PrestaShop to GA4
- WooCommerce → GA4Connecting WooCommerce to GA4
Free · 30 min
Get BigCommerce and GA4 joined properly
Free30 minutesNo obligation
