Connecting Olo to PostHog
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. 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 Olo 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
Olo with PostHog: funnels only where you own the ordering front end
PostHog's funnel works only on screens you control: brands built on Olo's ordering API can track every step, while Olo-hosted ordering may not allow scripts. Identify signed-in guests by account or loyalty ID, alias earlier browsing, and send completed orders from the Olo webhook with an order-based event UUID, store and handoff method. Exclude Rails orders.
PostHog earns its keep on the ordering funnel itself: menu views, item customization, cart, checkout, the moment guests abandon because the pickup time they wanted is gone. That instrumentation only works on screens you control. Brands that build their own app or website on Olo's ordering API can capture every step; brands on the Olo-hosted ordering site should check whether custom scripts are allowed there before planning anything. That split decides whether PostHog is a funnel tool for you or just another order counter.
Use the guest's account or loyalty ID as the distinct_id once they sign in, and alias the anonymous browsing that came before it. Then send the completed order server-side from the Olo order webhook with the same distinct_id and an event UUID derived from the Olo order ID, so a retried webhook does not put a second purchase on the person.
Add store ID and handoff method, pickup, delivery or curbside, as event properties; drop-off at a high-volume urban store looks nothing like a suburban one. Rails orders should never enter PostHog as purchases. They have no person, no session and no funnel, and adding them makes every conversion rate meaningless.
Olo → PostHog · what breaks
Why this join usually fails — Olo → PostHog
- 01
The distinct_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
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.
- 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.
Olo → PostHog · the fix
What working looks like — Olo → 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
Olo → PostHog · architecture
How Olo and PostHog actually connect
- 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
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
The identifier is the bridge
The distinct_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
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.
Olo → PostHog · normal or broken
Working vs. broken, side by side — Olo → PostHog
Normal, not a fault
The distinct_id present on the order
Sent from the Olo order webhook
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
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 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
Olo → PostHog · diagnose
Diagnostic order — Olo → PostHog
- 01
Count orders carrying the distinct_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 ingestion health and disk before debugging any missing event
On self-hosted instances the answer is infrastructure far more often than it is instrumentation.
- 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.
Olo → PostHog · prove
How it gets proven — Olo → PostHog
Source of truth
Olo orders by location and by channel, with direct and Rails-sourced marketplace orders held apart.
- 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.
- Direct-channel orders per location reconciled against imported conversions, with Rails volume reported as a named exclusion.
Olo → PostHog · free audit
What we check in the free audit
- Count orders carrying the distinct_id
- Follow one real conversion end to end
- Separate direct from Rails at the source
- Check ingestion health and disk before debugging any missing event
- 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 → PostHog · when not to buy
When you don't need this — Olo → PostHog
- Measure identifier coverage yourself first — pull your last hundred orders and count how many carry the distinct_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.
- 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.
Olo → PostHog · what we deliver
What gets built — Olo → PostHog
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 PostHog
The PostHog capture API, posted server-side from your backend to your own instance or to PostHog Cloud.
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 → PostHog questions, answered
On a custom front end built on Olo's API, yes. On the Olo-hosted site, check whether you can add your own scripts; if not, you can only send completed orders server-side, without the funnel steps that make PostHog useful.
Send a stable event UUID derived from the Olo order ID with every purchase, so webhook retries are recognized as the same event.
Almost always because the distinct_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.
PostHog identifies by distinct_id with an alias call to merge anonymous and identified users. On a self-hosted instance you also control the ingestion endpoint, which means the identifier survives ad blockers that would kill a third-party pixel — one of the few genuine technical advantages available to a first-party setup.
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.
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.
More on Olo → PostHog
- Olo → Google AdsConnecting Olo to Google Ads
- Olo → MetaConnecting Olo to Meta Conversions API
- Olo → GA4Connecting Olo to GA4
RELATED GUIDES
Where Olo → PostHog fits in the rest of your tracking
- Uber Eats → PostHogConnecting Uber Eats to PostHog
- Deliverect → PostHogConnecting Deliverect to PostHog
- Toast → PostHogConnecting Toast to PostHog
- Olo → AmplitudeConnecting Olo to Amplitude
- Olo → Adobe AnalyticsConnecting Olo to Adobe Analytics
- CateringConversion tracking for catering, measured in confirmed events
- Square Online → PostHogConnecting Square Online to PostHog
- Popmenu → PostHogConnecting Popmenu to PostHog
Free · 30 min
Get Olo and PostHog joined properly
Free30 minutesNo obligation
