Connecting Flow Commerce to Segment
Flow handles cross-border pricing, duties and landed cost, which means the price a shopper sees is calculated per market and your margin varies by destination in ways the order value does not show. 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 Flow 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
Flow Commerce into Segment: Order Completed with country and currency
Send Order Completed server-side from the Flow order record with order_id, a messageId derived from it, your customer ID as userId, any pre-handoff anonymousId, net-to-merchant value in revenue and the matching currency. Add destination country, duties, taxes, shipping, captured click IDs and consent state as properties. Send returns as Order Refunded with the original order ID.
Segment fits a Flow store that sends orders to several places, because the cross-border details such as currency, duties and destination country only have to be mapped correctly once. Get the Order Completed event wrong in Segment and every downstream tool inherits the same wrong currency on the same day.
Send Order Completed server-side from the Flow order record, with the order ID in order_id and messageId derived from it, userId set to your customer ID, and the browser anonymousId if you captured it before the checkout handoff. Segment's ecommerce spec includes a currency property; set it to the currency the value is actually in, and put net-to-merchant value in revenue. Add destination country, duties and taxes, and shipping as properties so destinations and the warehouse can split by market.
Check how each downstream destination reads currency before trusting it: some convert, some assume an account default, some ignore the field. Carry gclid, fbclid and other click IDs captured before localization as properties, plus the consent state recorded on your domain, because EU shoppers who check out through Flow are still under your consent obligations. Returns go as Order Refunded with the original order ID, valued at what actually came back to you.
Flow → Segment · what breaks
Why this join usually fails — Flow → Segment
- 01
The userId and anonymousId never reaches Flow
Localised checkout can run on a Flow-managed surface with its own currency and pricing.
- 02
One international figure across many economies
Duty rates, shipping costs and return rates all differ by country. A single international line in the report averages profitable markets with loss-making ones and keeps funding both.
- 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.
- 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.
Flow → Segment · the fix
What working looks like — Flow → 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
Flow Commerce's own records are the reference, not either dashboard.
Flow → Segment · architecture
How Flow and Segment actually connect
- 1
Flow Commerce holds the truth
Landed-cost pricing means two orders of identical value to different countries can leave you materially different amounts. A blended international figure describes neither.
- 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
The identifier is the bridge
The userId and anonymousId, captured at the visit and carried into the Flow international order.
- 4
The event source decides reliability
Send orders at net-to-merchant value, split by destination market.
- 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.
Flow → Segment · normal or broken
Working vs. broken, side by side — Flow → Segment
Normal, not a fault
The userId and anonymousId present on the order
Visible on the record itself in Flow Commerce, not merely captured somewhere on the site.
Sent from the Flow 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
Segment's count and Flow Commerce's records agree within a few percent over a closed window.
Actually broken
The userId and anonymousId missing on most records
Localised checkout can run on a Flow-managed surface with its own currency and pricing.
Sent from the browser
Duty rates, shipping costs and return rates all differ by country. A single international line in the report averages profitable markets with loss-making ones and keeps funding both.
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
The dashboard shows a number and no one has compared it to Flow Commerce.
Flow → Segment · diagnose
Diagnostic order — Flow → Segment
- 01
Count orders carrying the userId and anonymousId
- 02
Follow one real conversion end to end
- 03
Report net margin by destination country, not by region
Regional grouping hides the variation that actually decides where to spend.
- 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.
- 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.
Flow → Segment · prove
How it gets proven — Flow → Segment
Against Flow Commerce's own records, not against either platform's dashboard.
Source of truth
Orders net of duties, taxes and cross-border fees, by destination market.
- 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.
- Net-to-merchant revenue reconciled per country against imported conversions.
Flow → Segment · free audit
What we check in the free audit
- Count orders carrying the userId and anonymousId
- Follow one real conversion end to end
- Report net margin by destination country, not by region
- Check identity resolution before checking anything downstream
- Read the match rate, not the success message
Checked against
Orders net of duties, taxes and cross-border fees, by destination market.
Free30 minutesNo obligation
Flow → Segment · when not to buy
When you don't need this — Flow → Segment
- If Segment already reports conversions that reconcile against Flow Commerce's records within a few percent, this join is working and there is nothing to buy.
- Measure identifier coverage yourself first — pull your last hundred orders and count how many carry the userId and anonymousId.
- If you ship to one or two nearby markets at similar cost, a blended figure is adequate.
- 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.
Flow → Segment · what we deliver
What gets built — Flow → Segment
Identifier capture into Flow
Capture before localisation and carry the identifier through to the international order.
Event source: the Flow order record
Send orders at net-to-merchant value, split by destination market.
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 at full logistics cost.
Written guarantee
95%+ tracking accuracy
Measured against Orders net of duties, taxes and cross-border fees, by destination market.. Miss it and we keep working at no cost.
From $400 · See packages
FAQ
Flow → Segment questions, answered
Set currency to the currency the revenue value is actually in, choosing deliberately between local and a converted reporting currency. Check how each destination handles the field before relying on it.
Check Segment's catalog. If none is listed, send Order Completed from your server using Flow's order data or webhooks, with the order ID as messageId.
Almost always because the userId and anonymousId never reached the Flow international order. Localised checkout can run on a Flow-managed surface with its own currency and pricing. Measure coverage before debugging the dispatch.
Segment identifies people by anonymousId before they are known and userId afterwards, and the alias between them is what stitches a session to a customer. Click identifiers travel as event properties or traits rather than as a matching key — Segment does not match anything itself, it forwards. That distinction changes the whole design: get the identity resolution right and every downstream destination inherits it.
The Flow order record. Send orders at net-to-merchant value, split by destination market.
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.
More on Flow → Segment
- Squarespace → SegmentConnecting Squarespace Commerce to Segment
- Drupal Commerce → SegmentConnecting Drupal Commerce to Segment
- Flow → Google AdsConnecting Flow Commerce to Google Ads
RELATED GUIDES
Where Flow → Segment fits in the rest of your tracking
- Global-e → SegmentConnecting Global-e to Segment
- Zonos → SegmentConnecting Zonos to Segment
- Flow → BigQueryConnecting Flow Commerce to BigQuery
- FashionConversion tracking for fashion brands, reported net of returns
- Global-e → BigQueryConnecting Global-e to BigQuery
- Zonos → SnowflakeConnecting Zonos to Snowflake
- Global-e → SnowflakeConnecting Global-e to Snowflake
- Zonos → BigQueryConnecting Zonos to BigQuery
Free · 30 min
Get Flow and Segment joined properly
Free30 minutesNo obligation
