Skip to main content
TeamUp → SegmentIntegration guide

Connecting TeamUp to Segment

TeamUp handles class-based fitness where the same customer might hold a membership, buy a class pack and pay per drop-in — three revenue models in one account. 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 TeamUp purchase 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

TeamUp through Segment: different events for purchases and bookings

Send TeamUp purchases to Segment as Order Completed with the purchase ID as order_id, and bookings as Class Booked with no revenue or value property. Restrict ad destinations to Order Completed and verify each mapping, use the TeamUp customer ID as userId, add is_renewal, and set messageId from purchase or booking ID.

Segment is worth adding for a studio group sending TeamUp data to several tools, typically an ad platform, an email tool, product analytics and a warehouse. Send purchases as Order Completed with the TeamUp purchase ID as order_id, the price as revenue and the offering type as the product. Send class bookings as a separate Class Booked event with no revenue or value property.

The value property is the safeguard. Some ad destinations map any event carrying revenue or value to a purchase, so a booking that inherits the pack price from a careless transformation multiplies conversions across every connected ad platform at once. Restrict ad destinations to Order Completed, let analytics and the warehouse receive both events, and confirm the mapping in each destination, not just in Segment.

Use the TeamUp customer ID as userId. For first purchases after an ad click, check whether TeamUp's hosted purchase page can carry Segment's anonymousId as a URL parameter; if so, the purchase joins the visit that produced it. Add an is_renewal property so ad destinations can drop membership renewals, and set messageId from the purchase or booking ID so a re-run sync does not duplicate anything downstream.

TeamUp → Segment · what breaks

Why this join usually fails — TeamUp → Segment

  1. 01

    The userId and anonymousId never reaches TeamUp

    Booking and purchase pages are TeamUp-hosted, and class bookings continue for months after the original click.

  2. 02

    Class bookings counted as purchases

    A ten-class pack generates one purchase and ten bookings. If bookings are the conversion event, you have inflated the count by ten and the revenue by whatever value got attached to each one.

  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.

TeamUp → Segment · the fix

What working looks like — TeamUp → Segment

  • The userId and anonymousId on every purchase

  • Conversions arriving in Segment

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

  • Reconciled against the source

TeamUp → Segment · architecture

How TeamUp and Segment actually connect

  1. 1

    TeamUp holds the truth

    A class pack behaves like the spa package problem: it is sold once and consumed many times, and the consumption is not revenue.

  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 TeamUp purchase.

  4. 4

    The event source decides reliability

    Send purchases only. Class bookings that draw down an existing pack carry no value.

  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.

TeamUp → Segment · normal or broken

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

Normal, not a fault

  • The userId and anonymousId present on the purchase

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

    Booking and purchase pages are TeamUp-hosted, and class bookings continue for months after the original click.

  • Sent from the browser

    A ten-class pack generates one purchase and ten bookings. If bookings are the conversion event, you have inflated the count by ten and the revenue by whatever value got attached to each one.

  • 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

TeamUp → Segment · diagnose

Diagnostic order — TeamUp → Segment

  1. 01

    Count purchases carrying the userId and anonymousId

  2. 02

    Follow one real conversion end to end

  3. 03

    Check whether booking events carry a value

    On class platforms they usually do by default, because the booking is the obvious thing to fire on.

  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.

TeamUp → Segment · prove

How it gets proven — TeamUp → Segment

Source of truth

TeamUp purchases by date, split into memberships, class packs and drop-ins.

  • The userId and anonymousId confirmed present on a live purchase.
  • An anonymous session confirmed aliased to a known user, with the event visible in at least one downstream destination.
  • Purchases reconciled against imported conversions, with bookings demonstrably valued at zero.

TeamUp → Segment · free audit

What we check in the free audit

  • Count purchases carrying the userId and anonymousId
  • Follow one real conversion end to end
  • Check whether booking events carry a value
  • Check identity resolution before checking anything downstream
  • Read the match rate, not the success message

Checked against

TeamUp purchases by date, split into memberships, class packs and drop-ins.

Get my free conversion tracking audit

Free30 minutesNo obligation

TeamUp → Segment · when not to buy

When you don't need this — TeamUp → Segment

  • Measure identifier coverage yourself first — pull your last hundred purchases and count how many carry the userId and anonymousId.
  • A studio selling only drop-ins has no pack problem and can treat each booking as the purchase it is.
  • 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.

TeamUp → Segment · what we deliver

What gets built — TeamUp → Segment

  • Identifier capture into TeamUp

    Persist the identifier against the customer at first purchase, and mark subsequent bookings as consumption rather than conversion.

  • Event source: the TeamUp purchase record

    Send purchases only. Class bookings that draw down an existing pack carry no value.

  • 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

    Refunds reverse.

Written guarantee

95%+ tracking accuracy

Measured against TeamUp purchases by date, split into memberships, class packs and drop-ins.. Miss it and we keep working at no cost.

Get my free conversion tracking audit

From $400 · See packages

FAQ

TeamUp → Segment questions, answered

Order Completed for purchases, with revenue, and a separate Class Booked event for bookings, with no revenue or value.

Free · 30 min

Get TeamUp and Segment joined properly

Free30 minutesNo obligation