Connecting TheFork to PostHog
TheFork is a consumer marketplace with a booking widget attached, and its discount-led model means the bookings it sends you arrive with a margin already removed. 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 TheFork reservation 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
TheFork to PostHog: funnel stops where the widget starts
PostHog follows your own pages up to TheFork's hosted widget, showing which pages lead to widget opens. To close the funnel, store the distinct_id when the widget opens and send the confirmed reservation to the capture API from your server, with a UUID built from the reservation reference plus party size, location, channel and discount.
PostHog shows how people move through your site, and for a restaurant that funnel is short: menu, location, opening hours, then the TheFork widget. Session replay and autocapture stop at the widget because it is TheFork's hosted flow, so PostHog can tell you how many visitors opened it and from which page, and nothing about whether they finished. That alone is useful, because a menu page with heavy traffic and few widget opens is a fixable problem on your side.
To close the funnel, send the confirmed reservation to the capture API from your server with the same distinct_id the visitor had in the browser, which means storing it when the widget opened and recovering it when the reservation arrives. Use the TheFork reservation reference to build a stable event UUID so a retried import does not duplicate it, and add properties for party size, location, booking channel and discount.
Be clear what PostHog is for here. It is a diagnostic tool for your own pages and booking path, not an ad attribution system, and it cannot see marketplace bookings made in TheFork's app. A self-hosted instance for a single restaurant is more infrastructure than the question justifies; PostHog Cloud or nothing is usually the sensible choice.
TheFork → PostHog · what breaks
Why this join usually fails — TheFork → PostHog
- 01
The distinct_id never reaches TheFork
The widget is TheFork-hosted, and marketplace bookings originate entirely inside TheFork's app.
- 02
Discounted covers valued at full price
A cover booked at 50% off is worth half a cover in revenue and a full cover in cost. Report it at menu price and every campaign that drives discount-seekers looks like your best performer.
- 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.
TheFork → PostHog · the fix
What working looks like — TheFork → PostHog
The distinct_id on every reservation
Conversions arriving in PostHog
The event lands on the person profile and becomes available in insights, funnels and session replay.
Reconciled against the source
TheFork → PostHog · architecture
How TheFork and PostHog actually connect
- 1
TheFork holds the truth
Marketplace covers carry a per-cover fee and frequently a 30% or 50% food discount. The revenue on those covers is not comparable to a full-price direct booking and should never be averaged with it.
- 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 TheFork reservation.
- 4
The event source decides reliability
Send seated covers at the actual discounted spend, not the menu price.
- 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.
TheFork → PostHog · normal or broken
Working vs. broken, side by side — TheFork → PostHog
Normal, not a fault
The distinct_id present on the reservation
Sent from the TheFork reservation record
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
The widget is TheFork-hosted, and marketplace bookings originate entirely inside TheFork's app.
Sent from the browser
A cover booked at 50% off is worth half a cover in revenue and a full cover in cost. Report it at menu price and every campaign that drives discount-seekers looks like your best performer.
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
TheFork → PostHog · diagnose
Diagnostic order — TheFork → PostHog
- 01
Count reservations carrying the distinct_id
- 02
Follow one real conversion end to end
- 03
Check whether the discount is reflected in the imported value
Usually it is not, and the overstatement is proportional to how heavily you promote.
- 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.
TheFork → PostHog · prove
How it gets proven — TheFork → PostHog
Source of truth
TheFork reservations by service date, split into widget-sourced and marketplace-sourced, with the promotional discount recorded.
- The distinct_id confirmed present on a live reservation.
- Purchase events reconciled per transaction against your billing system, with ingestion lag checked over the same window.
- Seated covers reconciled at actual spend against imported conversions, with marketplace volume separated.
TheFork → PostHog · free audit
What we check in the free audit
- Count reservations carrying the distinct_id
- Follow one real conversion end to end
- Check whether the discount is reflected in the imported value
- Check ingestion health and disk before debugging any missing event
- Read the match rate, not the success message
Checked against
TheFork reservations by service date, split into widget-sourced and marketplace-sourced, with the promotional discount recorded.
Free30 minutesNo obligation
TheFork → PostHog · when not to buy
When you don't need this — TheFork → PostHog
- Measure identifier coverage yourself first — pull your last hundred reservations and count how many carry the distinct_id.
- If TheFork is purely a marketplace channel for you, the question is whether the discount economics work — not conversion tracking.
- 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.
TheFork → PostHog · what we deliver
What gets built — TheFork → PostHog
Identifier capture into TheFork
Attribute widget bookings from your own site; report marketplace covers as a separate channel with their own economics.
Event source: the TheFork reservation record
Send seated covers at the actual discounted spend, not the menu price.
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
Cancellations and no-shows reverse.
Written guarantee
95%+ tracking accuracy
Measured against TheFork reservations by service date, split into widget-sourced and marketplace-sourced, with the promotional discount recorded.. Miss it and we keep working at no cost.
From $400 · See packages
FAQ
TheFork → PostHog questions, answered
No. It sees the widget being opened on your page. Completed reservations have to be sent server-side with the visitor's distinct_id.
Sometimes, to diagnose why visitors do not open the booking widget. It is not an ad attribution tool and cannot see marketplace bookings.
Almost always because the distinct_id never reached the TheFork reservation. The widget is TheFork-hosted, and marketplace bookings originate entirely inside TheFork's app. 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 TheFork reservation record. Send seated covers at the actual discounted spend, not the menu price.
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 TheFork → PostHog
- TheFork → Google AdsConnecting TheFork to Google Ads
- TheFork → MetaConnecting TheFork to Meta Conversions API
- TheFork → GA4Connecting TheFork to GA4
RELATED GUIDES
Where TheFork → PostHog fits in the rest of your tracking
- TableCheck → PostHogConnecting TableCheck to PostHog
- Yelp Guest Manager → PostHogConnecting Yelp Guest Manager to PostHog
- OpenTable → PostHogConnecting OpenTable to PostHog
- TheFork → MixpanelConnecting TheFork to Mixpanel
- TheFork → MatomoConnecting TheFork to Matomo
- Event venuesConversion tracking for event venues, measured in signed contracts
- SevenRooms → PostHogConnecting SevenRooms to PostHog
- Resy → PostHogConnecting Resy to PostHog
Free · 30 min
Get TheFork and PostHog joined properly
Free30 minutesNo obligation
