Skip to main content
Global-e → SegmentIntegration guide

Connecting Global-e to Segment

Global-e frequently acts as merchant of record for international orders, which means the transaction is legally theirs and what reaches you is a settlement rather than the customer's payment. 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 Global-e international 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

Global-e orders through Segment: one Order Completed, settled value

Segment's revenue choice becomes every destination's, so decide it first. Send Order Completed from your server when Global-e confirms, with the order ID as messageId, the chosen value in revenue and the others as named properties. Carry anonymousId, click IDs and consent state onto the order before handoff, send settlement as a separate warehouse-only event, and returns as Order Refunded.

Segment fans one event out to every connected destination, so the value definition you choose for international orders becomes every tool's value definition at once. Send Order Completed from your server when Global-e confirms the order, keyed to the order ID as messageId, with the order ID, currency and products on the standard ecommerce spec. Decide what revenue means before sending: shopper total including duties and taxes, merchandise subtotal, or the settled amount you receive. Put that in revenue and send the others as clearly named custom properties.

Identity must survive the Global-e handoff. Read analytics.js's anonymousId on your storefront, attach it to the order before the shopper leaves for the Global-e checkout, and send it with the server event along with your userId if the shopper is known. Do the same with click IDs (gclid, fbclid, ttclid) so ad destinations downstream can match, and pass the shopper's consent state, which in EU and UK markets carries GDPR weight.

The settlement often arrives after the order. Rather than resending Order Completed, send a separate settlement event keyed to the order and route it only to the warehouse and analytics destinations; ad platforms usually cannot use a correction days later. Returns go out as Order Refunded with the same order ID.

Global-e → Segment · what breaks

Why this join usually fails — Global-e → Segment

  1. 01

    The userId and anonymousId never reaches Global-e

    International checkout is frequently handed off to a Global-e-hosted flow, and the currency and pricing shown differ from your own store.

  2. 02

    The customer's total reported as your revenue

    Duties, taxes, currency spread and the merchant-of-record fee all sit between what the shopper paid and what arrives. Reporting the shopper's figure overstates international performance systematically.

  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.

Global-e → Segment · the fix

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

Global-e → Segment · architecture

How Global-e and Segment actually connect

  1. 1

    Global-e holds the truth

    Under a merchant-of-record model the shopper pays Global-e, who handles duties, taxes and currency and settles a different amount to you. The gap between the two is not small and it varies by market.

  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 Global-e international order.

  4. 4

    The event source decides reliability

    Send orders at the settled amount you receive, per market, not at the customer's total.

  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.

Global-e → Segment · normal or broken

Working vs. broken, side by side — Global-e → Segment

Normal, not a fault

  • The userId and anonymousId present on the order

  • Sent from the Global-e settlement 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

    International checkout is frequently handed off to a Global-e-hosted flow, and the currency and pricing shown differ from your own store.

  • Sent from the browser

    Duties, taxes, currency spread and the merchant-of-record fee all sit between what the shopper paid and what arrives. Reporting the shopper's figure overstates international performance systematically.

  • 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

Global-e → Segment · diagnose

Diagnostic order — Global-e → Segment

  1. 01

    Count orders carrying the userId and anonymousId

  2. 02

    Follow one real conversion end to end

  3. 03

    Compare customer-facing totals against settlements by market

    The gap is the number nobody has, and it decides which international markets are worth advertising in.

  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.

Global-e → Segment · prove

How it gets proven — Global-e → Segment

Source of truth

Global-e settlements by market, not the customer-facing order totals.

  • 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.
  • Settled amounts reconciled per market against imported conversions.

Global-e → Segment · free audit

What we check in the free audit

  • Count orders carrying the userId and anonymousId
  • Follow one real conversion end to end
  • Compare customer-facing totals against settlements by market
  • Check identity resolution before checking anything downstream
  • Read the match rate, not the success message

Checked against

Global-e settlements by market, not the customer-facing order totals.

Get my free conversion tracking audit

Free30 minutesNo obligation

Global-e → Segment · when not to buy

When you don't need this — Global-e → Segment

  • Measure identifier coverage yourself first — pull your last hundred orders and count how many carry the userId and anonymousId.
  • If you sell internationally on your own merchant account, you already see the true figure and this complexity does not apply.
  • 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.

Global-e → Segment · what we deliver

What gets built — Global-e → Segment

  • Identifier capture into Global-e

    Capture on your own domain before the handoff and carry the identifier into the international order record.

  • Event source: the Global-e settlement record

    Send orders at the settled amount you receive, per market, not at the customer's total.

  • 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

    International returns reverse, and they cost more than domestic ones.

Written guarantee

95%+ tracking accuracy

Measured against Global-e settlements by market, not the customer-facing order totals.. Miss it and we keep working at no cost.

Get my free conversion tracking audit

From $400 · See packages

FAQ

Global-e → Segment questions, answered

Choose one definition (merchandise subtotal or settled amount, not the shopper total with duties) and use it for every market, because Segment forwards it to every destination.

Free · 30 min

Get Global-e and Segment joined properly

Free30 minutesNo obligation