Skip to main content
Toast → PostHogIntegration guide

Connecting Toast to PostHog

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. PostHog can be self-hosted, which changes the calculus entirely: the data stays on infrastructure you control, and so does the responsibility for everything that goes wrong with it. The join between them succeeds or fails on one thing: whether the distinct_id reaches the Toast order before the conversion happens, because PostHog can only match a conversion it can tie back to a click it recognizes.

Free30 minutesNo obligation

Specific to this pair

Toast to PostHog: one distinct_id from menu page to closed check

Append the PostHog distinct_id to the Toast ordering link and store it with the order. When the check closes, send an order completed event to PostHog's capture API with that distinct_id, the closed total, dining option and Toast order GUID, using the GUID as the event UUID if allowed so retries don't double-count.

PostHog is useful to a restaurant for one question: where do people drop out between landing on the site and paying for an order. With Toast, the funnel snaps in half. PostHog records the visit, the menu scroll and the click to Order Online, and then the guest is on Toast's domain, where your PostHog snippet does not run and session replay goes dark.

Rejoin the halves on the server. Append the PostHog distinct_id to the Toast ordering link, store it with the order, and when the check closes send an order completed event to the capture API with that distinct_id, the closed total, dining option and the Toast order GUID as a property. Toast GUIDs are UUID-shaped, so check whether you can supply one as the event UUID too, which stops a retried send from appearing as two orders. A guest who orders on the Toast app or a third-party delivery app never touched your site and will correctly show no web funnel at all.

Read the result as a two-step funnel: clicks to the ordering page, then closed orders matched back. The gap between them is abandonment inside Toast's checkout, which you cannot replay but can now measure. If it is large, the problem is usually menu availability or pickup time slots rather than anything on your website.

Toast → PostHog · what breaks

Why this join usually fails — Toast → PostHog

  1. 01

    The distinct_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

    Self-hosting the analytics and the outage together

    The advantage of owning the pipeline is that nothing blocks it. The cost is that when the ingestion instance fills its disk on a Saturday, the events are gone and nobody is paged. Hosted tools fail differently and more visibly.

  4. 04

    Nothing reconciles afterwards

    PostHog shows events in the activity view within moments. On a self-hosted instance, check the ingestion lag as well — events that are queued are not events that are lost, and the two need different responses.

Toast → PostHog · the fix

What working looks like — Toast → PostHog

  • The distinct_id on every order

  • Conversions arriving in PostHog

    The event lands on the person profile and becomes available in insights, funnels and session replay.

  • Reconciled against the source

Toast → PostHog · architecture

How Toast and PostHog 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

    PostHog needs a click to match

    PostHog needs a distinct_id, an event name and its properties. Self-hosted instances additionally need the ingestion endpoint reachable and the project API key correct, which is a class of failure hosted tools do not have.

  3. 3

    The identifier is the bridge

    The distinct_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

    PostHog deduplicates on the event UUID where supplied. Without one, a retried batch duplicates, and on a self-hosted instance there is no vendor support desk to notice it for you.

Toast → PostHog · normal or broken

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

Normal, not a fault

  • The distinct_id present on the order

  • Sent from the Toast order feed

  • Deduplicated correctly

    PostHog deduplicates on the event UUID where supplied. Without one, a retried batch duplicates, and on a self-hosted instance there is no vendor support desk to notice it for you.

  • Reconciles with the source

Actually broken

  • The distinct_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 advantage of owning the pipeline is that nothing blocks it. The cost is that when the ingestion instance fills its disk on a Saturday, the events are gone and nobody is paged. Hosted tools fail differently and more visibly.

  • Nobody has reconciled it

Toast → PostHog · diagnose

Diagnostic order — Toast → PostHog

  1. 01

    Count orders carrying the distinct_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 ingestion health and disk before debugging any missing event

    On self-hosted instances the answer is infrastructure far more often than it is instrumentation.

  5. 05

    Read the match rate, not the success message

    PostHog shows events in the activity view within moments. On a self-hosted instance, check the ingestion lag as well — events that are queued are not events that are lost, and the two need different responses.

Toast → PostHog · prove

How it gets proven — Toast → PostHog

Source of truth

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

  • The distinct_id confirmed present on a live order.
  • Purchase events reconciled per transaction against your billing system, with ingestion lag checked over the same window.
  • Closed checks on the online channel reconciled against imported conversions for a fully settled business week.

Toast → PostHog · free audit

What we check in the free audit

  • Count orders carrying the distinct_id
  • Follow one real conversion end to end
  • Split checks by dining option before anything else
  • Check ingestion health and disk before debugging any missing event
  • 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 → PostHog · when not to buy

When you don't need this — Toast → PostHog

  • Measure identifier coverage yourself first — pull your last hundred orders and count how many carry the distinct_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.
  • If you have no reason to keep the data on your own infrastructure and no team to run it, the hosted product removes the only real downside of this one.

Toast → PostHog · what we deliver

What gets built — Toast → PostHog

  • 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 PostHog

    The PostHog capture API, posted server-side from your backend to your own instance or to PostHog Cloud.

  • 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 → PostHog questions, answered

No. Toast's ordering page runs on Toast's domain, outside your PostHog snippet. You can only reconnect the closed order to the visitor by passing the distinct_id through the ordering link and sending the order server-side.

Free · 30 min

Get Toast and PostHog joined properly

Free30 minutesNo obligation