Skip to main content
TourCMS → SegmentIntegration guide

Connecting TourCMS to Segment

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. Segment is a customer data platform rather than an ad network, so sending to it is not about matching a conversion — it is about putting one clean event where every other destination can read it. The join between them succeeds or fails on one thing: whether the userId and anonymousId reaches the TourCMS booking before the conversion happens, because Segment can only match a conversion it can tie back to a click it recognizes.

Free30 minutesNo obligation

Specific to this pair

TourCMS into Segment: tag every booking direct or agent first

Send TourCMS bookings to Segment as Order Completed with the booking ID as order_id, a channel property, and revenue at customer price for direct or net rate for agent bookings, naming the basis. Direct bookings carry the stored anonymousId and click IDs; agent bookings get synthetic IDs and stay away from ad destinations.

Segment fans one event out to every tool, so a TourCMS booking has to say at the source whether it's direct or agent-sold, and on what price basis, before anything downstream reads it. Send Order Completed with the booking ID as order_id, a channel property (direct, or the agent's channel ID), and revenue at customer price for direct bookings and at net rate for agent ones, with the basis named in its own property.

Identity is the other issue. Direct bookings can carry the anonymousId you stored before the booking engine handoff, plus a userId if you keep a customer ID. Agent bookings have neither, and Segment needs one; if you send them, use a synthetic per-booking ID and keep them away from ad destinations, with a destination filter where your plan has them or by not forwarding agent-channel events. Carry click IDs and consent state from the direct session as properties so ad platforms downstream can use them.

The common break is a warehouse or ad tool summing revenue across both channels as though it were one price basis. Build messageId from the booking ID, and send cancellations as their own event keyed to the same booking.

TourCMS → Segment · what breaks

Why this join usually fails — TourCMS → Segment

  1. 01

    The userId and anonymousId 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

    One bad event multiplied across every destination

    Segment's value is fan-out, which is also its risk. An inconsistent identity or a duplicated event does not break one report — it breaks every connected tool simultaneously, and tracing it back is harder than debugging a direct integration.

  4. 04

    Nothing reconciles afterwards

    Segment's debugger shows events arriving and which destinations accepted them. Arriving is not the test — check a destination you care about and confirm the event landed there with the identity intact, then reconcile against your own records.

TourCMS → Segment · the fix

What working looks like — TourCMS → Segment

  • The userId and anonymousId on every booking

  • Conversions arriving in Segment

    Events land in Segment and forward to every connected destination, warehouse included, on one shared definition.

  • Reconciled against the source

TourCMS → Segment · architecture

How TourCMS and Segment 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

    Segment needs a click to match

    Segment needs a consistent identity model — the same userId everywhere, an alias when an anonymous visitor becomes known, and event names that follow one spec. Feeding it inconsistent identities pushes the mess to every connected destination at once.

  3. 3

    The identifier is the bridge

    The userId and anonymousId, 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

    Segment deduplicates on messageId within a window. Because it fans out to many destinations, a duplicate here becomes a duplicate everywhere, which makes idempotent messageIds more important than in any single-destination integration.

TourCMS → Segment · normal or broken

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

Normal, not a fault

  • The userId and anonymousId present on the booking

  • Sent from the TourCMS booking record

  • Deduplicated correctly

    Segment deduplicates on messageId within a window. Because it fans out to many destinations, a duplicate here becomes a duplicate everywhere, which makes idempotent messageIds more important than in any single-destination integration.

  • Reconciles with the source

Actually broken

  • The userId and anonymousId 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

    Segment's value is fan-out, which is also its risk. An inconsistent identity or a duplicated event does not break one report — it breaks every connected tool simultaneously, and tracing it back is harder than debugging a direct integration.

  • Nobody has reconciled it

TourCMS → Segment · diagnose

Diagnostic order — TourCMS → Segment

  1. 01

    Count bookings carrying the userId and anonymousId

  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 identity resolution before checking anything downstream

    If anonymousId is never aliased to userId, every destination sees two people where there is one, and no downstream fix helps.

  5. 05

    Read the match rate, not the success message

    Segment's debugger shows events arriving and which destinations accepted them. Arriving is not the test — check a destination you care about and confirm the event landed there with the identity intact, then reconcile against your own records.

TourCMS → Segment · prove

How it gets proven — TourCMS → Segment

Source of truth

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

  • The userId and anonymousId confirmed present on a live booking.
  • An anonymous session confirmed aliased to a known user, with the event visible in at least one downstream destination.
  • Direct bookings reconciled at customer price against imported conversions, agent volume reported at net.

TourCMS → Segment · free audit

What we check in the free audit

  • Count bookings carrying the userId and anonymousId
  • Follow one real conversion end to end
  • Check whether agent bookings are valued at net or retail
  • Check identity resolution before checking anything downstream
  • 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 → Segment · when not to buy

When you don't need this — TourCMS → Segment

  • Measure identifier coverage yourself first — pull your last hundred bookings and count how many carry the userId and anonymousId.
  • Operators selling only direct do not have the net-rate question.
  • If you send to one or two destinations, Segment is infrastructure you do not need — direct integrations are simpler and cheaper. It earns its place at genuine fan-out.

TourCMS → Segment · what we deliver

What gets built — TourCMS → Segment

  • 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 Segment

    Server-side track and identify calls with a stable messageId, consistent userId, and the click identifier carried as a trait or property.

  • 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 → Segment questions, answered

With a channel property and net-rate revenue, under a synthetic ID since there is no visitor, and filtered away from ad destinations.

Free · 30 min

Get TourCMS and Segment joined properly

Free30 minutesNo obligation