Connecting Olo to GA4
Olo sits between a multi-location brand and every channel it sells through, which makes it the only place where a direct order and a marketplace order can be compared on the same terms. 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 Olo 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
Olo in GA4: direct revenue per location, Rails kept out
Send direct Olo web orders to GA4 as purchase with transaction_id set to the Olo order ID and location ID as a registered custom dimension. Add your GA4 tag and cross-domain measurement to the ordering pages if Olo allows. Pick one sender, browser or Measurement Protocol, since GA4 won't deduplicate. Keep Rails orders out.
In GA4, an Olo brand's direct web orders should arrive as purchase with transaction_id set to the Olo order ID and the location ID as an event parameter registered as a custom dimension. That gives revenue by restaurant next to the traffic that produced it. Rails orders have no web session, and Measurement Protocol would need an invented client_id to send them. Keep them out of GA4 and report marketplace volume from Olo.
The ordering pages need the GA4 tag, and cross-domain measurement if they are not on your domain. Check whether your Olo setup lets you add your own GA4 tag or GTM container to the ordering experience. If it does not, every order looks like a session that left your site and never came back, and GA4's conversion rate for paid traffic reads close to zero.
If you add a server-side purchase from the Olo order webhook to back up the browser tag, GA4 will count both, because it does not deduplicate Measurement Protocol events. Pick one sender. If you choose the server, store the client_id and session_id on the order at checkout, and remember Measurement Protocol backdates no more than 72 hours, so a delayed webhook queue loses attribution fast.
Olo → GA4 · what breaks
Why this join usually fails — Olo → GA4
- 01
The GA4 client_id never reaches Olo
Olo's ordering experience is frequently hosted on an Olo subdomain, and marketplace orders arrive through an API with no browser session behind them whatsoever.
- 02
Marketplace orders inflating the direct channel
Rails is designed to make marketplace demand look like your own order flow, which is excellent for operations and ruinous for measurement. Left unsplit, a good week on DoorDash reads as a good week for your ad account.
- 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.
Olo → GA4 · the fix
What working looks like — Olo → 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
Olo → GA4 · architecture
How Olo and GA4 actually connect — Olo → GA4
- 1
Olo holds the truth
Rails pulls DoorDash, Uber Eats and Grubhub orders into the same order stream as your own website. They land in one feed and they are not the same thing: one carries a click you paid for, the other carries a marketplace commission and no identifier at all.
- 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 Olo order.
- 4
The event source decides reliability
Send per-location. A brand with two hundred restaurants running one national campaign learns nothing from a single national conversion number.
- 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.
Olo → GA4 · normal or broken
Working vs. broken, side by side — Olo → GA4
Normal, not a fault
The GA4 client_id present on the order
Sent from the Olo 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
Olo's ordering experience is frequently hosted on an Olo subdomain, and marketplace orders arrive through an API with no browser session behind them whatsoever.
Sent from the browser
Rails is designed to make marketplace demand look like your own order flow, which is excellent for operations and ruinous for measurement. Left unsplit, a good week on DoorDash reads as a good week for your ad account.
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
Olo → GA4 · diagnose
Diagnostic order — Olo → GA4
- 01
Count orders carrying the GA4 client_id
- 02
Follow one real conversion end to end
- 03
Separate direct from Rails at the source
Do this before any tracking work. The split is the measurement; everything after it is plumbing.
- 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.
Olo → GA4 · prove
How it gets proven — Olo → GA4
Source of truth
Olo orders by location and by channel, with direct and Rails-sourced marketplace orders held apart.
- 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.
- Direct-channel orders per location reconciled against imported conversions, with Rails volume reported as a named exclusion.
Olo → GA4 · free audit
What we check in the free audit
- Count orders carrying the GA4 client_id
- Follow one real conversion end to end
- Separate direct from Rails at the source
- Check whether server events carry a session and a source
- Read the match rate, not the success message
Checked against
Olo orders by location and by channel, with direct and Rails-sourced marketplace orders held apart.
Free30 minutesNo obligation
Olo → GA4 · when not to buy
When you don't need this — Olo → GA4
- Measure identifier coverage yourself first — pull your last hundred orders and count how many carry the GA4 client_id.
- If your Olo volume is overwhelmingly Rails, the campaign question is about marketplace placement and commission, and no amount of conversion tracking will answer 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.
Olo → GA4 · what we deliver
What gets built — Olo → GA4
Identifier capture into Olo
Persist the identifier on the direct-ordering path only, and mark Rails-sourced orders explicitly as unattributable rather than letting them dilute the figure.
Event source: the Olo order webhook
Send per-location. A brand with two hundred restaurants running one national campaign learns nothing from a single national conversion number.
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
Cancelled and refunded orders should reduce the figure, per location.
Written guarantee
95%+ tracking accuracy
Measured against Olo orders by location and by channel, with direct and Rails-sourced marketplace orders held apart.. Miss it and we keep working at no cost.
From $400 · See packages
FAQ
Olo → GA4 questions, answered
No. They have no web session and would need a fake client_id. Report marketplace volume from Olo instead.
Send the Olo location ID as an event parameter on purchase and register it as a custom dimension.
Almost always because the GA4 client_id never reached the Olo order. Olo's ordering experience is frequently hosted on an Olo subdomain, and marketplace orders arrive through an API with no browser session behind them whatsoever. 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 Olo order webhook. Send per-location. A brand with two hundred restaurants running one national campaign learns nothing from a single national conversion number.
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 Olo → GA4
- Stripe → GA4Connecting Stripe to GA4
- PayPal → GA4Connecting PayPal to GA4
- HubSpot → GA4Connecting HubSpot to GA4
RELATED GUIDES
Where Olo → GA4 fits in the rest of your tracking
- ChowNow → GA4Connecting ChowNow to GA4
- Deliverect → GA4Connecting Deliverect to GA4
- Square Online → GA4Connecting Square Online to GA4
- Olo → MixpanelConnecting Olo to Mixpanel
- Olo → MatomoConnecting Olo to Matomo
- RestaurantsConversion tracking for restaurants, across reservations, orders and calls
- Uber Eats → GA4Connecting Uber Eats to GA4
- Popmenu → GA4Connecting Popmenu to GA4
