Skip to main content
Toast → GA4Integration guide

Connecting Toast to GA4

Toast holds the check, and a restaurant check is the only place where an online order, a dine-in tab and a catering deposit are all denominated in the same money. 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 Toast 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

Toast to GA4: online orders tied to the session that sent them

Add Toast's ordering domain to GA4 cross-domain settings so the client_id carries across. Send purchase server-side when the check closes, with the order GUID as transaction_id, the closed total as value and the carried client_id and session_id, dropping duplicate tag purchases. Exclude dine-in, counter and delivery-app orders, and send refunds for voids.

A restaurant's own website is mostly a menu and a button that leaves for Toast Online Ordering, which makes the click on that button the place GA4 usually loses the visitor. Add the Toast ordering domain to GA4's cross-domain configuration so the _gl parameter carries the client_id across, and check whether your Toast ordering settings let you add a GA4 measurement ID or Google tag. If they do, use the same property as your website.

Send purchase server-side from the Toast order feed when the check closes, with the Toast order GUID as transaction_id and the closed check total as value, including the client_id and session_id carried through the ordering link. Measurement Protocol can only backdate an event by a short window, so for scheduled catering orders closed days later, the purchase lands on the close date. If the ordering page's own tag already fires purchase, drop one side; GA4 does not deduplicate.

Two Toast-specific choices shape the report. Exclude dine-in, takeout at the counter and third-party delivery app orders from purchase, since none had a GA4 session. And send a refund event for voids and refunds on online checks, so online revenue per channel in GA4 matches the online figure in Toast's sales summary.

Toast → GA4 · what breaks

Why this join usually fails — Toast → GA4

  1. 01

    The GA4 client_id never reaches Toast

    Toast Online Ordering runs on a Toast-hosted subdomain. Guests leave your site to place the order, so the click identifier is dropped at the handoff unless it is deliberately carried across.

  2. 02

    Dine-in revenue that advertising will never see

    Most restaurants take the majority of their money from people who walked in. That revenue is real, it is often driven by the same advertising, and there is no honest way to attribute it to a click. Say so rather than quietly excluding it.

  3. 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.

  4. 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.

Toast → GA4 · the fix

What working looks like — Toast → 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

Toast → GA4 · architecture

How Toast and GA4 actually connect

  1. 1

    Toast holds the truth

    Order channel is the field that matters. Only the online channel can carry an advertising identifier at all; the rest is revenue you can measure but cannot attribute, and pretending otherwise inflates every ratio you calculate.

  2. 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. 3

    The identifier is the bridge

    The GA4 client_id, captured at the visit and carried into the Toast order.

  4. 4

    The event source decides reliability

    Send the closed check total, not the cart. Restaurant orders get modified at the pass constantly — an item 86'd, a substitution, a comped appetizer — and the cart figure is routinely wrong by the time the guest pays.

  5. 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.

Toast → GA4 · normal or broken

Working vs. broken, side by side — Toast → GA4

Normal, not a fault

  • The GA4 client_id present on the order

  • Sent from the Toast order feed

  • 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

    Toast Online Ordering runs on a Toast-hosted subdomain. Guests leave your site to place the order, so the click identifier is dropped at the handoff unless it is deliberately carried across.

  • Sent from the browser

    Most restaurants take the majority of their money from people who walked in. That revenue is real, it is often driven by the same advertising, and there is no honest way to attribute it to a click. Say so rather than quietly excluding it.

  • 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

Toast → GA4 · diagnose

Diagnostic order — Toast → GA4

  1. 01

    Count orders carrying the GA4 client_id

  2. 02

    Follow one real conversion end to end

  3. 03

    Split checks by dining option before anything else

    Online, dine-in, takeout, delivery, catering. If those are pooled, an increase in dine-in reads as advertising success and an increase in ad spend reads as waste.

  4. 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.

  5. 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.

Toast → GA4 · prove

How it gets proven — Toast → GA4

Source of truth

Toast orders by business date with the dining option attached — online, dine-in, takeout, delivery or catering.

  • 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.
  • Closed checks on the online channel reconciled against imported conversions for a fully settled business week.

Toast → GA4 · free audit

What we check in the free audit

  • Count orders carrying the GA4 client_id
  • Follow one real conversion end to end
  • Split checks by dining option before anything else
  • Check whether server events carry a session and a source
  • Read the match rate, not the success message

Checked against

Toast orders by business date with the dining option attached — online, dine-in, takeout, delivery or catering.

Get my free conversion tracking audit

Free30 minutesNo obligation

Toast → GA4 · when not to buy

When you don't need this — Toast → GA4

  • Measure identifier coverage yourself first — pull your last hundred orders and count how many carry the GA4 client_id.
  • If online ordering is a rounding error against your dine-in volume, the honest answer is that paid search cannot be measured on revenue here — measure it on order volume and stop there.
  • 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.

Toast → GA4 · what we deliver

What gets built — Toast → GA4

  • Identifier capture into Toast

    Carry the identifier through the ordering link as a supported parameter and persist it against the guest record, so the check that closes hours later still knows which click produced it.

  • Event source: the Toast order feed

    Send the closed check total, not the cart. Restaurant orders get modified at the pass constantly — an item 86'd, a substitution, a comped appetizer — and the cart figure is routinely wrong by the time the guest pays.

  • 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

    Voids, comps and refunds should all reduce the figure. Restaurants void more than most businesses expect.

Written guarantee

95%+ tracking accuracy

Measured against Toast orders by business date with the dining option attached — online, dine-in, takeout, delivery or catering.. Miss it and we keep working at no cost.

Get my free conversion tracking audit

From $400 · See packages

FAQ

Toast → GA4 questions, answered

Set up cross-domain measurement for the Toast ordering domain, carry the client_id through the order link and send purchase from the Toast order feed with the closed check total.

Free · 30 min

Get Toast and GA4 joined properly

Free30 minutesNo obligation