Skip to main content
Square Online → AmplitudeIntegration guide

Connecting Square Online to Amplitude

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. Amplitude is built around behavioural cohorts, which makes the identity resolution and the event taxonomy load-bearing in a way they never are for an ad pixel. The join between them succeeds or fails on one thing: whether the user ID and device ID pair reaches the Square Online order before the conversion happens, because Amplitude can only match a conversion it can tie back to a click it recognizes.

Free30 minutesNo obligation

Specific to this pair

Square Online orders in Amplitude when the store is not your app

Amplitude is a poor fit for most Square Online stores, since the hosted storefront may not allow its SDK. Where you have your own app, send orders from Square's order webhooks or Orders API to Amplitude's HTTP V2 API with your app's user_id matched by email, revenue net of tax and tip, and the Square order ID as insert_id.

Amplitude is a poor fit for most Square Online stores. The storefront is Square-hosted, so you control little of the page code, and there is rarely a logged-in product to analyze. Check what custom code your Square Online plan allows; if you cannot install the Amplitude SDK, there is no device ID to tie an order to, and every server-sent order lands on a brand new user.

Where it fits, a business with its own app or member site that also sells through Square Online, send orders from Square's order webhooks or the Orders API to Amplitude's HTTP V2 API with the user_id your app already uses, matched on the customer's email. Set price and quantity per line item from Square's item data, keep revenue net of tax and tip, and use the Square order ID as insert_id. Filter to the online source before sending, so counter sales never show up as app revenue.

Fulfillment type deserves its own property, because pickup, delivery and shipping change repeat behavior and are the cut restaurant and retail teams actually ask for. Square records refunds separately; send them as negative revenue events carrying the original order ID, so cohort LTV does not keep money you returned.

Square Online → Amplitude · what breaks

Why this join usually fails — Square Online → Amplitude

  1. 01

    The user ID and device ID pair 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

    Revenue events that carry no revenue

    Amplitude will happily accept a purchase event with no price field. The event count looks correct, the funnel looks correct, and the revenue reporting stays at zero — which people usually discover a quarter later when someone asks what a cohort is worth.

  4. 04

    Nothing reconciles afterwards

    Amplitude shows the event in the user's activity stream with its properties expanded. Read the properties, because an event that arrives without its revenue fields still looks like a success.

Square Online → Amplitude · the fix

What working looks like — Square Online → Amplitude

  • The user ID and device ID pair on every order

  • Conversions arriving in Amplitude

    The event lands on the user, joins their behavioural history, and becomes available for cohorts, funnels and retention.

  • Reconciled against the source

Square Online → Amplitude · architecture

How Square Online and Amplitude 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

    Amplitude needs a click to match

    Amplitude needs a device or user identifier, an event type and its properties. Revenue events need the price and quantity fields specifically, or the revenue reporting stays empty while events flow normally.

  3. 3

    The identifier is the bridge

    The user ID and device ID pair, 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

    Amplitude deduplicates on insert_id. Omit it and a retried batch is counted twice, which shows up as a phantom spike that someone will eventually build a hypothesis on.

Square Online → Amplitude · normal or broken

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

Normal, not a fault

  • The user ID and device ID pair present on the order

  • Sent from the Square transaction record

  • Deduplicated correctly

    Amplitude deduplicates on insert_id. Omit it and a retried batch is counted twice, which shows up as a phantom spike that someone will eventually build a hypothesis on.

  • Reconciles with the source

Actually broken

  • The user ID and device ID pair 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

    Amplitude will happily accept a purchase event with no price field. The event count looks correct, the funnel looks correct, and the revenue reporting stays at zero — which people usually discover a quarter later when someone asks what a cohort is worth.

  • Nobody has reconciled it

Square Online → Amplitude · diagnose

Diagnostic order — Square Online → Amplitude

  1. 01

    Count orders carrying the user ID and device ID pair

  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 a purchase event for the price and quantity fields specifically

    Not whether the event arrived — whether the revenue fields are populated, in the exact names Amplitude expects.

  5. 05

    Read the match rate, not the success message

    Amplitude shows the event in the user's activity stream with its properties expanded. Read the properties, because an event that arrives without its revenue fields still looks like a success.

Square Online → Amplitude · prove

How it gets proven — Square Online → Amplitude

Source of truth

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

  • The user ID and device ID pair confirmed present on a live order.
  • Revenue reconciled per transaction against your billing system, with identity merge behaviour verified across signup.
  • Online-channel transactions reconciled against imported conversions for a settled week.

Square Online → Amplitude · free audit

What we check in the free audit

  • Count orders carrying the user ID and device ID pair
  • Follow one real conversion end to end
  • Filter by sales channel and re-check the total
  • Check a purchase event for the price and quantity fields specifically
  • 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 → Amplitude · when not to buy

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

  • Measure identifier coverage yourself first — pull your last hundred orders and count how many carry the user ID and device ID pair.
  • 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 nobody is building cohorts or retention analysis, this is a large amount of instrumentation for reporting a dashboard already gives you.

Square Online → Amplitude · what we deliver

What gets built — Square Online → Amplitude

  • 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 Amplitude

    The Amplitude HTTP V2 API, posted server-side with the identity, event type and properties.

  • 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 → Amplitude questions, answered

It depends on the custom-code options in your Square Online plan; check the site settings. Without the SDK on the storefront, server-sent orders cannot join to browsing behavior.

Free · 30 min

Get Square Online and Amplitude joined properly

Free30 minutesNo obligation