Skip to main content
LoyaltyLion → SegmentIntegration guide

Connecting LoyaltyLion to Segment

LoyaltyLion is built around tiers, which means a customer's discount rate changes as they spend more — and so does the margin on every subsequent order. 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 LoyaltyLion tier order 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

LoyaltyLion to Segment: the tier as a trait every tool can read

Route LoyaltyLion through Segment with identify calls using the store customer ID as userId and tier, points and member status as traits. Send Order Completed with the tier discount in the discount field and revenue net of it, and put the tier on the order event because traits overwrite. Pass consent so opted-out members stay out of ad audiences.

Routing LoyaltyLion through Segment makes the tier available to every connected tool at once: email, ad audiences, analytics. Send identify calls with the store customer ID as userId and tier, points balance and member status as traits whenever they change. Send orders as Order Completed with the tier discount in the discount field and revenue net of it, so destinations reading revenue don't overvalue members.

Check whether LoyaltyLion offers a Segment integration on your plan before building; otherwise its webhooks or exports can feed your own server-side calls. Traits overwrite. If a downstream tool needs to know the tier a customer held when they bought, put the tier on the order event as well, or every historical analysis will use today's value.

Because traits fan out, the tier reaches ad destinations too, so decide what it is for. Suppressing top-tier members from acquisition campaigns is a good use. Sending a VIP's full purchase value as an acquisition conversion is not. Pass consent in the event context so customers who opted out of sharing don't land in ad audiences just because they are loyal customers.

LoyaltyLion → Segment · what breaks

Why this join usually fails — LoyaltyLion → Segment

  1. 01

    The userId and anonymousId never reaches LoyaltyLion

    Tier benefits apply automatically at checkout, so the discount is inside the order rather than in a code.

  2. 02

    Tier discounts absorbed silently into order value

    Unlike a coupon, a tier discount has no code. It is applied automatically and disappears into the order total, so the margin erosion from a maturing loyalty base is invisible in every marketing report.

  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.

LoyaltyLion → Segment · the fix

What working looks like — LoyaltyLion → Segment

  • The userId and anonymousId on every redemption

  • Conversions arriving in Segment

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

  • Reconciled against the source

LoyaltyLion → Segment · architecture

How LoyaltyLion and Segment actually connect

  1. 1

    LoyaltyLion holds the truth

    A top-tier customer buys at a permanently lower margin. Their order value looks identical to a new customer's and is worth meaningfully less, which matters when you are deciding what a new customer is worth acquiring.

  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 LoyaltyLion tier order.

  4. 4

    The event source decides reliability

    Send orders net of tier discount, with the tier recorded so margin by cohort stays visible.

  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.

LoyaltyLion → Segment · normal or broken

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

Normal, not a fault

  • The userId and anonymousId present on the redemption

  • Sent from your order feed with tier attached

  • 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

    Tier benefits apply automatically at checkout, so the discount is inside the order rather than in a code.

  • Sent from the browser

    Unlike a coupon, a tier discount has no code. It is applied automatically and disappears into the order total, so the margin erosion from a maturing loyalty base is invisible in every marketing report.

  • 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

LoyaltyLion → Segment · diagnose

Diagnostic order — LoyaltyLion → Segment

  1. 01

    Count redemptions carrying the userId and anonymousId

  2. 02

    Follow one real conversion end to end

  3. 03

    Compare average margin by loyalty tier

    As the programme matures this gap widens, and it is the reason a growing loyal base can coincide with falling profitability.

  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.

LoyaltyLion → Segment · prove

How it gets proven — LoyaltyLion → Segment

Source of truth

Store orders with the customer's loyalty tier recorded at the time of purchase.

  • The userId and anonymousId confirmed present on a live redemption.
  • An anonymous session confirmed aliased to a known user, with the event visible in at least one downstream destination.
  • Orders reconciled net of tier discount against imported conversions, with tier recorded.

LoyaltyLion → Segment · free audit

What we check in the free audit

  • Count redemptions carrying the userId and anonymousId
  • Follow one real conversion end to end
  • Compare average margin by loyalty tier
  • Check identity resolution before checking anything downstream
  • Read the match rate, not the success message

Checked against

Store orders with the customer's loyalty tier recorded at the time of purchase.

Get my free conversion tracking audit

Free30 minutesNo obligation

LoyaltyLion → Segment · when not to buy

When you don't need this — LoyaltyLion → Segment

  • Measure identifier coverage yourself first — pull your last hundred redemptions and count how many carry the userId and anonymousId.
  • Flat-rate loyalty programmes without tiers do not have this problem.
  • 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.

LoyaltyLion → Segment · what we deliver

What gets built — LoyaltyLion → Segment

  • Identifier capture into LoyaltyLion

    Record the tier on the order and net tier discounts out of the reported value.

  • Event source: your order feed with tier attached

    Send orders net of tier discount, with the tier recorded so margin by cohort stays visible.

  • 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 Store orders with the customer's loyalty tier recorded at the time of purchase.. Miss it and we keep working at no cost.

Get my free conversion tracking audit

From $400 · See packages

FAQ

LoyaltyLion → Segment questions, answered

As identify traits keyed on the store customer ID, updated on every tier change; add tier to order events too if you need it historically.

Free · 30 min

Get LoyaltyLion and Segment joined properly

Free30 minutesNo obligation