Skip to main content
TrekkSoft → PostHogIntegration guide

Connecting TrekkSoft to PostHog

TrekkSoft is built for operators selling on the web, at a desk and through resellers simultaneously, which makes the point-of-sale channel a large and entirely unattributable share of revenue. 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 TrekkSoft 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 funnels for the TrekkSoft booking widget

PostHog's funnel stops at the TrekkSoft widget opening unless you pass your distinct_id into the booking as a custom field and send the confirmed booking server-side under it, or match on email. Use the booking reference as event UUID, with tour, departure date, lead time, participants and net value as properties. Exclude desk and reseller bookings.

PostHog is useful to a tour operator for one question: which tour pages get the widget opened and which turn into bookings. The TrekkSoft checkout runs in its own code, so PostHog's funnel ends at the widget opening unless you send the confirmed booking server-side with the same distinct_id the browser had.

To make that join, generate the distinct_id on your page and pass it into the booking if TrekkSoft lets you attach a custom field or reference, then read it back off the confirmed booking. Check whether your TrekkSoft setup supports that; if not, match on booker email, which only works for visitors who gave you their email first. Use the booking reference as the event UUID so a retried import does not duplicate.

Set properties that make the funnel useful: tour, departure date, days between booking and departure, participants and net value. A tour whose widget opens but rarely converts often has a sold-out or badly timed schedule rather than a page problem, which PostHog can surface and no ad platform will. Desk and reseller bookings have no distinct_id and stay out.

TrekkSoft → PostHog · what breaks

Why this join usually fails — TrekkSoft → PostHog

  1. 01

    The distinct_id never reaches TrekkSoft

    Point-of-sale bookings are taken on a terminal by staff; reseller bookings arrive by API.

  2. 02

    Desk sales absorbed into online performance

    A walk-up sale at a city-centre desk is footfall, not advertising. Pooling it with online bookings makes campaign performance track tourist season rather than campaign quality.

  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.

TrekkSoft → PostHog · the fix

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

TrekkSoft → PostHog · architecture

How TrekkSoft and PostHog actually connect

  1. 1

    TrekkSoft holds the truth

    Desk and reseller sales frequently exceed online ones for city-centre operators. Only the online share can carry an identifier, and the report should say what proportion that is.

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

  4. 4

    The event source decides reliability

    Send online bookings at net revenue after reseller and payment fees.

  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.

TrekkSoft → PostHog · normal or broken

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

Normal, not a fault

  • The distinct_id present on the booking

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

    Point-of-sale bookings are taken on a terminal by staff; reseller bookings arrive by API.

  • Sent from the browser

    A walk-up sale at a city-centre desk is footfall, not advertising. Pooling it with online bookings makes campaign performance track tourist season rather than campaign quality.

  • 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

TrekkSoft → PostHog · diagnose

Diagnostic order — TrekkSoft → PostHog

  1. 01

    Count bookings carrying the distinct_id

  2. 02

    Follow one real conversion end to end

  3. 03

    Report the online share of total bookings

    It sets the ceiling on what any advertising figure can mean.

  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.

TrekkSoft → PostHog · prove

How it gets proven — TrekkSoft → PostHog

Source of truth

TrekkSoft bookings by departure and channel, at net revenue.

  • 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.
  • Online bookings reconciled at net revenue against imported conversions, with the desk share stated.

TrekkSoft → PostHog · free audit

What we check in the free audit

  • Count bookings carrying the distinct_id
  • Follow one real conversion end to end
  • Report the online share of total bookings
  • Check ingestion health and disk before debugging any missing event
  • Read the match rate, not the success message

Checked against

TrekkSoft bookings by departure and channel, at net revenue.

Get my free conversion tracking audit

Free30 minutesNo obligation

TrekkSoft → PostHog · when not to buy

When you don't need this — TrekkSoft → PostHog

  • Measure identifier coverage yourself first — pull your last hundred bookings and count how many carry the distinct_id.
  • Online-only operators do not have the channel mix problem and can report simply.
  • 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.

TrekkSoft → PostHog · what we deliver

What gets built — TrekkSoft → PostHog

  • Identifier capture into TrekkSoft

    Attribute the online channel and report the rest as named unattributable volume.

  • Event source: the TrekkSoft booking record

    Send online bookings at net revenue after reseller and payment fees.

  • 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 TrekkSoft bookings by departure and channel, at net revenue.. Miss it and we keep working at no cost.

Get my free conversion tracking audit

From $400 · See packages

FAQ

TrekkSoft → PostHog questions, answered

No; the checkout runs in TrekkSoft's code. Send confirmed bookings server-side against the same distinct_id to complete the funnel.

Free · 30 min

Get TrekkSoft and PostHog joined properly

Free30 minutesNo obligation