Skip to main content
Loox → SegmentIntegration guide

Connecting Loox to Segment

Loox is photo reviews and referrals for Shopify, and the referral half is where the measurement problem lives — a customer-to-customer referral is not paid media, no matter which cookie is still sitting in the browser. 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 Loox referral 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

Loox through Segment: decide referral precedence once, upstream

Settle Loox referral precedence once in Segment: put a referral flag on Order Completed when the coupon or landing parameter is present, and mark stored paid click IDs superseded. Use the Shopify customer ID as userId, the anonymousId from a cart attribute and order ID as messageId. Filter ad destinations to non-referral purchases, and track review submissions separately.

Segment is the right place to settle the Loox precedence question, because without it every destination settles it differently. Put a referral flag on Order Completed whenever the referral coupon or landing parameter is present, and when it is, keep stored paid click IDs off the event or clearly marked as superseded. Then every connected ad platform, the warehouse and the email tool see one decision instead of five.

Identity is the Shopify customer ID as userId, with the anonymousId saved into a cart attribute so the server-sent order joins the browsing session. How Shopify orders reach Segment varies (a source, an app, or your own webhook handler), so check which route you're on and whether it carries cart attributes through. Use the Shopify order ID as messageId so a retried webhook doesn't fan the same order out twice.

Then filter per destination: ad platforms receive only non-referral purchases, while the warehouse and email tools receive everything with the flag. Check whether destination filters are available on your Segment plan; if not, do the filtering in the destination mappings. Send Loox review submissions as their own track event, never as a variant of Order Completed.

Loox → Segment · what breaks

Why this join usually fails — Loox → Segment

  1. 01

    The userId and anonymousId never reaches Loox

    Referral links route through Loox and land on your store with their own parameters, frequently overwriting or colliding with whatever was already stored.

  2. 02

    Word of mouth billed to the ad account

    The more successful your referral program is, the worse your paid reporting gets, which is a genuinely perverse outcome and an entirely avoidable 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.

Loox → Segment · the fix

What working looks like — Loox → Segment

  • The userId and anonymousId on every order

  • Conversions arriving in Segment

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

  • Reconciled against the source

Loox → Segment · architecture

How Loox and Segment actually connect

  1. 1

    Loox holds the truth

    Referral orders arrive from a friend's shared link. If your last-touch model has an old paid identifier persisted, that campaign takes the credit for a sale word of mouth produced.

  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 Loox referral order.

  4. 4

    The event source decides reliability

    Purchases, with referral-sourced orders marked and held out of paid conversion imports.

  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.

Loox → Segment · normal or broken

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

Normal, not a fault

  • The userId and anonymousId present on the order

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

    Referral links route through Loox and land on your store with their own parameters, frequently overwriting or colliding with whatever was already stored.

  • Sent from the browser

    The more successful your referral program is, the worse your paid reporting gets, which is a genuinely perverse outcome and an entirely avoidable 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

Loox → Segment · diagnose

Diagnostic order — Loox → Segment

  1. 01

    Count orders carrying the userId and anonymousId

  2. 02

    Follow one real conversion end to end

  3. 03

    Check precedence between referral and paid parameters

    Whichever wins in your storage logic determines who gets credit, and almost nobody has consciously chosen this.

  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.

Loox → Segment · prove

How it gets proven — Loox → Segment

Source of truth

Shopify orders, flagged by whether a Loox referral link or review-reward coupon produced them.

  • The userId and anonymousId confirmed present on a live order.
  • An anonymous session confirmed aliased to a known user, with the event visible in at least one downstream destination.
  • Non-referral orders reconciled against imported conversions; referral volume reported separately.

Loox → Segment · free audit

What we check in the free audit

  • Count orders carrying the userId and anonymousId
  • Follow one real conversion end to end
  • Check precedence between referral and paid parameters
  • Check identity resolution before checking anything downstream
  • Read the match rate, not the success message

Checked against

Shopify orders, flagged by whether a Loox referral link or review-reward coupon produced them.

Get my free conversion tracking audit

Free30 minutesNo obligation

Loox → Segment · when not to buy

When you don't need this — Loox → Segment

  • Measure identifier coverage yourself first — pull your last hundred orders and count how many carry the userId and anonymousId.
  • No referral program means no conflict. Keep review events out of the conversion list and there is nothing else to do.
  • 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.

Loox → Segment · what we deliver

What gets built — Loox → Segment

  • Identifier capture into Loox

    Detect the referral parameter explicitly and let it take precedence, rather than allowing a stale paid identifier to win by default.

  • Event source: the Shopify order record

    Purchases, with referral-sourced orders marked and held out of paid conversion imports.

  • 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 reduce the figure.

Written guarantee

95%+ tracking accuracy

Measured against Shopify orders, flagged by whether a Loox referral link or review-reward coupon produced them.. Miss it and we keep working at no cost.

Get my free conversion tracking audit

From $400 · See packages

FAQ

Loox → Segment questions, answered

Flag referral orders on Order Completed, then filter that flag out of ad destinations using destination filters or mappings, while the warehouse keeps everything.

Free · 30 min

Get Loox and Segment joined properly

Free30 minutesNo obligation