Skip to main content
Square Online → SegmentIntegration guide

Connecting Square Online to Segment

Square Online orders settle into the same Square account as the card taken at the counter, which is a genuine advantage: the online and in-person halves of the business are already denominated in one ledger. 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 Square Online 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

Square Online through Segment: one order event, channel filtered

Check Segment's catalog for a Square source; otherwise receive Square order webhooks on your server and call track with Order Completed, order_id as the Square order ID, revenue net of tax and tip, and Square SKUs. Send only Square Online orders under that name, build messageId from order ID plus event name, and carry click IDs as properties.

Segment is worth it for a Square seller only when orders feed several tools: email, warehouse and a couple of ad platforms. Check Segment's catalog for a Square source that covers orders; if there is none, the route is your own server receiving Square order webhooks and calling track with Order Completed per Segment's ecommerce spec, with order_id as the Square order ID, revenue net of tax and tip, and products carrying the Square SKU.

The channel filter has to happen before Segment, not in each destination. Send only Square Online orders as Order Completed; if you want counter sales in the warehouse too, send them under a different event name so no ad destination mapping picks them up. Build the messageId from the Square order ID and the event name, because Square fires order.updated many times per order and every one of them would otherwise fan out.

For identity, the userId should be the Square customer ID or your own customer key. An anonymousId only exists if Segment's browser library runs on your storefront, which depends on the custom code Square Online allows. Without it, click IDs come from your own landing-page capture and travel as properties on Order Completed, with consent state alongside so ad destinations can be filtered on it.

Square Online → Segment · what breaks

Why this join usually fails — Square Online → Segment

  1. 01

    The userId and anonymousId never reaches Square Online

    Square Online sites are frequently on a Square-provided domain, and checkout may hand off to Square-hosted payment pages depending on configuration.

  2. 02

    Counter sales counted as online conversions

    The convenience of one ledger is also the trap. If the sales channel is not filtered, every card swipe at the register lands in your ad reporting as a conversion you paid for.

  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.

Square Online → Segment · the fix

What working looks like — Square Online → 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

Square Online → Segment · architecture

How Square Online and Segment actually connect

  1. 1

    Square Online holds the truth

    The filter is the whole job. Square's default reporting cheerfully sums counter sales and online orders, and that total is not something any ad platform should be optimizing toward.

  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 Square Online order.

  4. 4

    The event source decides reliability

    Send net of tips and taxes. Tips on food orders are substantial and are not your revenue.

  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.

Square Online → Segment · normal or broken

Working vs. broken, side by side — Square Online → Segment

Normal, not a fault

  • The userId and anonymousId present on the order

  • Sent from the Square transaction 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

    Square Online sites are frequently on a Square-provided domain, and checkout may hand off to Square-hosted payment pages depending on configuration.

  • Sent from the browser

    The convenience of one ledger is also the trap. If the sales channel is not filtered, every card swipe at the register lands in your ad reporting as a conversion you paid for.

  • 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

Square Online → Segment · diagnose

Diagnostic order — Square Online → Segment

  1. 01

    Count orders carrying the userId and anonymousId

  2. 02

    Follow one real conversion end to end

  3. 03

    Filter by sales channel and re-check the total

    Compare the filtered online total against Square Online's own order count. If they disagree, the filter is wrong before the tracking is.

  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.

Square Online → Segment · prove

How it gets proven — Square Online → Segment

Source of truth

Square transactions filtered to the online sales channel, by location.

  • 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.
  • Online-channel transactions reconciled against imported conversions for a settled week.

Square Online → Segment · free audit

What we check in the free audit

  • Count orders carrying the userId and anonymousId
  • Follow one real conversion end to end
  • Filter by sales channel and re-check the total
  • Check identity resolution before checking anything downstream
  • Read the match rate, not the success message

Checked against

Square transactions filtered to the online sales channel, by location.

Get my free conversion tracking audit

Free30 minutesNo obligation

Square Online → Segment · when not to buy

When you don't need this — Square Online → Segment

  • Measure identifier coverage yourself first — pull your last hundred orders and count how many carry the userId and anonymousId.
  • If Square Online is a small side channel next to your counter business, measure it on order count and do not build an import for it.
  • 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.

Square Online → Segment · what we deliver

What gets built — Square Online → Segment

  • Identifier capture into Square Online

    Persist the identifier in first-party storage on your own domain before the handoff, and reattach it to the order at the point the transaction is written.

  • Event source: the Square transaction record

    Send net of tips and taxes. Tips on food orders are substantial and are not your revenue.

  • 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 appear in Square as their own records and should be sent as reversals.

Written guarantee

95%+ tracking accuracy

Measured against Square transactions filtered to the online sales channel, by location.. Miss it and we keep working at no cost.

Get my free conversion tracking audit

From $400 · See packages

FAQ

Square Online → Segment questions, answered

Check the Segment catalog for your workspace and whether it covers orders. Otherwise forward Square order webhooks to Segment's HTTP tracking API from a small server function.

Free · 30 min

Get Square Online and Segment joined properly

Free30 minutesNo obligation