Skip to main content
Tock → PostHogIntegration guide

Connecting Tock to PostHog

Tock made prepaid and ticketed dining normal, which makes it the rare restaurant platform where money genuinely changes hands at the moment of booking. 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 Tock 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

Tock to PostHog: seeing which menus people abandon

Put the PostHog distinct_id on the Tock booking link, keep it with the reservation, and send a booking event through the capture API when Tock confirms, with booking type, party size, service date, amount paid and the confirmation number. Derive the event UUID from that number, and send modifications and cancellations as separate events.

PostHog can answer a question restaurants rarely see answered: which pages and offers lead people to book, and which lead them to look and leave. With Tock the funnel splits in two. Your site carries PostHog through the menu pages and the Reserve click, then Tock's hosted booking pages take over, out of reach of your snippet and session replay.

Join the halves by distinct_id. Put it on the Tock booking link, keep it with the reservation, and send a booking event from your server through the capture API when Tock confirms, with booking type, party size, service date, amount paid and the Tock confirmation number as a property. Supply a stable event UUID derived from that confirmation number so a retried send does not count twice. Modifications and cancellations should be separate events, since a funnel that only ever adds bookings overstates conversion.

The insight to look for is time-slot friction. Many people who click Reserve leave because the date they wanted was full, and that drop-off happens inside Tock where you cannot replay it. Comparing clicks to confirmed bookings by the page they came from, the day of week and the menu being promoted will usually show that availability, not your website, is where the bookings are lost.

Tock → PostHog · what breaks

Why this join usually fails — Tock → PostHog

  1. 01

    The distinct_id never reaches Tock

    The booking flow is Tock-hosted, and Tock also runs a consumer marketplace that fills seats you did not advertise for.

  2. 02

    Three booking types treated as one conversion

    A prepaid tasting menu and a free two-top reservation are both a row in the same table and are not remotely the same event. Pooling them tells the bidding algorithm that the cheap one is worth the expensive one's value.

  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.

Tock → PostHog · the fix

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

Tock → PostHog · architecture

How Tock and PostHog actually connect

  1. 1

    Tock holds the truth

    Three different things. A prepaid ticket is revenue now. A deposit is a fraction of revenue plus a commitment. A standard booking is a promise worth nothing if the guest does not arrive.

  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 Tock reservation.

  4. 4

    The event source decides reliability

    Send prepaid tickets at their paid value and standard bookings, if at all, as a separate lower-value event that is never summed with revenue.

  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.

Tock → PostHog · normal or broken

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

Normal, not a fault

  • The distinct_id present on the reservation

  • Sent from the Tock 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 booking flow is Tock-hosted, and Tock also runs a consumer marketplace that fills seats you did not advertise for.

  • Sent from the browser

    A prepaid tasting menu and a free two-top reservation are both a row in the same table and are not remotely the same event. Pooling them tells the bidding algorithm that the cheap one is worth the expensive one's value.

  • 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

Tock → PostHog · diagnose

Diagnostic order — Tock → PostHog

  1. 01

    Count reservations carrying the distinct_id

  2. 02

    Follow one real conversion end to end

  3. 03

    Split reservations by payment type

    Prepaid, deposit, standard. Three conversion actions, three values, or the reporting is meaningless.

  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.

Tock → PostHog · prove

How it gets proven — Tock → PostHog

Source of truth

Tock reservations by service date, split into prepaid tickets, deposits and standard bookings.

  • 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.
  • Prepaid ticket revenue reconciled against imported conversions for a settled service period.

Tock → PostHog · free audit

What we check in the free audit

  • Count reservations carrying the distinct_id
  • Follow one real conversion end to end
  • Split reservations by payment type
  • Check ingestion health and disk before debugging any missing event
  • Read the match rate, not the success message

Checked against

Tock reservations by service date, split into prepaid tickets, deposits and standard bookings.

Get my free conversion tracking audit

Free30 minutesNo obligation

Tock → PostHog · when not to buy

When you don't need this — Tock → PostHog

  • Measure identifier coverage yourself first — pull your last hundred reservations and count how many carry the distinct_id.
  • A restaurant taking only standard reservations has no revenue event here. Measure covers and stop.
  • 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.

Tock → PostHog · what we deliver

What gets built — Tock → PostHog

  • Identifier capture into Tock

    Carry the identifier into the booking flow where supported, and mark marketplace-sourced reservations as unattributable.

  • Event source: the Tock reservation record

    Send prepaid tickets at their paid value and standard bookings, if at all, as a separate lower-value event that is never summed with revenue.

  • 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

    Refunded tickets reverse; no-shows on prepaid tickets do not, because you kept the money.

Written guarantee

95%+ tracking accuracy

Measured against Tock reservations by service date, split into prepaid tickets, deposits and standard bookings.. Miss it and we keep working at no cost.

Get my free conversion tracking audit

From $400 · See packages

FAQ

Tock → PostHog questions, answered

PostHog cannot record Tock's hosted pages. Pass the distinct_id through the booking link and send confirmed reservations back server-side to complete the funnel.

Free · 30 min

Get Tock and PostHog joined properly

Free30 minutesNo obligation