Skip to main content
TourCMS → PostHogIntegration guide

Connecting TourCMS to PostHog

TourCMS is built around distribution to agents and resellers, which means a large share of bookings arrive through partners who found the customer and take a margin. 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 TourCMS booking 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

PostHog on the TourCMS booking flow: find sold-out demand

Use PostHog to see unmet demand: capture date selected, party size and availability shown. Carry the distinct_id into the TourCMS booking flow and send confirmed bookings server-side with tour, departure date, party size and customer price, deriving the event UUID from the booking reference. Keep agent bookings out of person-level analysis.

PostHog is useful to a tour operator for one question the booking report cannot answer: what travelers tried to book and could not. TourCMS records the bookings that happened. It does not record the visitor who wanted Saturday's sunset tour for four, found two seats left, and went elsewhere. That unmet demand is product information, and it decides where to add departures.

Capture date selected, party size and availability shown as events on your site, and inside the booking engine if TourCMS lets you add your own scripts there; check first. Carry the PostHog distinct_id into the booking flow and send the confirmed booking server-side with that distinct_id, tour, departure date, party size and value at customer price, deriving the event UUID from the TourCMS booking reference so a retry does not create a second booking.

Then the useful funnel is availability viewed, seats requested versus seats available, and booking made, broken down by tour and departure. A tour that converts poorly because it is always nearly full is not a marketing problem. Keep agent bookings out of person-level analysis, since they never pass through the funnel. Without someone deciding schedules from this data, basic web analytics is sufficient.

TourCMS → PostHog · what breaks

Why this join usually fails — TourCMS → PostHog

  1. 01

    The distinct_id never reaches TourCMS

    Agent bookings arrive through an API or an agent portal with no consumer session.

  2. 02

    Agent net rates reported at retail price

    An agent booking at a twenty-five percent net discount reported at the retail price overstates that channel by a third. Since agents are often the majority, the total is badly wrong.

  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.

TourCMS → PostHog · the fix

What working looks like — TourCMS → PostHog

  • The distinct_id on every booking

  • Conversions arriving in PostHog

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

  • Reconciled against the source

TourCMS → PostHog · architecture

How TourCMS and PostHog actually connect

  1. 1

    TourCMS holds the truth

    Agent bookings come at a net rate agreed in advance. Reporting the customer-facing price on those bookings overstates revenue by the whole agent margin.

  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 TourCMS booking.

  4. 4

    The event source decides reliability

    Send direct bookings at customer price and agent bookings, if reported at all, at net rate — never mixed.

  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.

TourCMS → PostHog · normal or broken

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

Normal, not a fault

  • The distinct_id present on the booking

  • Sent from the TourCMS booking 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

    Agent bookings arrive through an API or an agent portal with no consumer session.

  • Sent from the browser

    An agent booking at a twenty-five percent net discount reported at the retail price overstates that channel by a third. Since agents are often the majority, the total is badly wrong.

  • 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

TourCMS → PostHog · diagnose

Diagnostic order — TourCMS → PostHog

  1. 01

    Count bookings carrying the distinct_id

  2. 02

    Follow one real conversion end to end

  3. 03

    Check whether agent bookings are valued at net or retail

    One question, and on distribution-heavy operators it changes the revenue picture substantially.

  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.

TourCMS → PostHog · prove

How it gets proven — TourCMS → PostHog

Source of truth

TourCMS bookings by departure and channel, at net rate after agent commission.

  • The distinct_id confirmed present on a live booking.
  • Purchase events reconciled per transaction against your billing system, with ingestion lag checked over the same window.
  • Direct bookings reconciled at customer price against imported conversions, agent volume reported at net.

TourCMS → PostHog · free audit

What we check in the free audit

  • Count bookings carrying the distinct_id
  • Follow one real conversion end to end
  • Check whether agent bookings are valued at net or retail
  • Check ingestion health and disk before debugging any missing event
  • Read the match rate, not the success message

Checked against

TourCMS bookings by departure and channel, at net rate after agent commission.

Get my free conversion tracking audit

Free30 minutesNo obligation

TourCMS → PostHog · when not to buy

When you don't need this — TourCMS → PostHog

  • Measure identifier coverage yourself first — pull your last hundred bookings and count how many carry the distinct_id.
  • Operators selling only direct do not have the net-rate question.
  • 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.

TourCMS → PostHog · what we deliver

What gets built — TourCMS → PostHog

  • Identifier capture into TourCMS

    Attribute direct bookings only and value agent bookings at the net rate you actually receive.

  • Event source: the TourCMS booking record

    Send direct bookings at customer price and agent bookings, if reported at all, at net rate — never mixed.

  • 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 reverse.

Written guarantee

95%+ tracking accuracy

Measured against TourCMS bookings by departure and channel, at net rate after agent commission.. Miss it and we keep working at no cost.

Get my free conversion tracking audit

From $400 · See packages

FAQ

TourCMS → PostHog questions, answered

Record the date, party size and availability shown each time a visitor checks a departure, then compare requested seats against bookings made by tour and date.

Free · 30 min

Get TourCMS and PostHog joined properly

Free30 minutesNo obligation