Skip to main content
Squarespace → AmplitudeIntegration guide

Connecting Squarespace Commerce to Amplitude

Squarespace prioritises design simplicity over extensibility, so what you can instrument is bounded by what the platform chooses to expose. 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 Squarespace 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

Squarespace orders in Amplitude: join browser and order on one user ID

Add Amplitude's SDK through Squarespace code injection and, on the order confirmation page, call setUserId or log an event tying the device ID to the order ID. Then send revenue from your server via the order webhook with that ID, price, quantity, revenue type and the order ID as insert_id. Send refunds as negative-revenue events.

Squarespace lets you add the Amplitude browser SDK through code injection on your pages, but its checkout is restricted, so the browsing and the purchase are tracked in two different places. The join usually happens on the order confirmation page, which accepts injected code and exposes order variables such as the order ID and customer email (check the current variable list in Squarespace's code-injection docs). There, call Amplitude's setUserId with an ID derived from the customer, or log a small event that ties the current device ID to the order ID.

Then send the revenue event from your server, triggered by the Squarespace order webhook, using that same user ID or device ID, with price, quantity and revenue type in Amplitude's revenue fields. The order ID becomes the insert_id. The browser confirmation page is the identity bridge and the webhook is the record: if the confirmation script fails to run, you still have the purchase, just on an unlinked user.

Squarespace webhooks and the Commerce APIs may require a specific plan level and an API key or OAuth app; confirm both before designing around them. Refunds do not generate a revenue event on their own, so send a negative-revenue event keyed to the order when a refund is recorded, or Amplitude's lifetime-value cohorts will overstate customers who return everything.

Squarespace → Amplitude · what breaks

Why this join usually fails — Squarespace → Amplitude

  1. 01

    The user ID and device ID pair never reaches Squarespace

    Checkout runs on Squarespace's infrastructure with limited script access, so an identifier held in a cookie on your pages does not reliably reach the order. What survives has to be tested rather than assumed.

  2. 02

    Platform limits mistaken for implementation failures

    Squarespace restricts what runs at checkout by design. A setup that works on Shopify will not simply port, and the gap is the platform rather than the build.

  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.

Squarespace → Amplitude · the fix

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

    Squarespace Commerce's own records are the reference, not either dashboard.

Squarespace → Amplitude · architecture

How Squarespace and Amplitude actually connect

  1. 1

    Squarespace Commerce holds the truth

    Squarespace holds the order cleanly. The constraint is access — code injection is limited and checkout customisation more so, which caps what a browser-side approach can achieve.

  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 Squarespace order.

  4. 4

    The event source decides reliability

    Send from the webhook rather than the confirmation page, which has restricted script access and may not run what you expect.

  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.

Squarespace → Amplitude · normal or broken

Working vs. broken, side by side — Squarespace → Amplitude

Normal, not a fault

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

    Visible on the record itself in Squarespace Commerce, not merely captured somewhere on the site.

  • Sent from the Squarespace order webhook

  • 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

    Amplitude's count and Squarespace Commerce's records agree within a few percent over a closed window.

Actually broken

  • The user ID and device ID pair missing on most records

    Checkout runs on Squarespace's infrastructure with limited script access, so an identifier held in a cookie on your pages does not reliably reach the order. What survives has to be tested rather than assumed.

  • Sent from the browser

    Squarespace restricts what runs at checkout by design. A setup that works on Shopify will not simply port, and the gap is the platform rather than the build.

  • 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

    The dashboard shows a number and no one has compared it to Squarespace Commerce.

Squarespace → Amplitude · diagnose

Diagnostic order — Squarespace → Amplitude

  1. 01

    Count orders carrying the user ID and device ID pair

  2. 02

    Follow one real conversion end to end

  3. 03

    Test what actually reaches the order record

    One real purchase tells you more than the documentation about what this platform preserves.

  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.

Squarespace → Amplitude · prove

How it gets proven — Squarespace → Amplitude

Against Squarespace Commerce's own records, not against either platform's dashboard.

Source of truth

Squarespace's order records for the same window.

  • 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.
  • A test purchase with the identifier confirmed retrievable from the Squarespace order.

Squarespace → 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
  • Test what actually reaches the order record
  • Check a purchase event for the price and quantity fields specifically
  • Read the match rate, not the success message

Checked against

Squarespace's order records for the same window.

Get my free conversion tracking audit

Free30 minutesNo obligation

Squarespace → Amplitude · when not to buy

When you don't need this — Squarespace → Amplitude

  • If Amplitude already reports conversions that reconcile against Squarespace 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 user ID and device ID pair.
  • For a small Squarespace store, the native integrations plus honest reporting may be the right answer — the platform's ceiling is real.
  • If nobody is building cohorts or retention analysis, this is a large amount of instrumentation for reporting a dashboard already gives you.

Squarespace → Amplitude · what we deliver

What gets built — Squarespace → Amplitude

  • Identifier capture into Squarespace

    Capture the identifier and pass it through the supported order form fields or the commerce API, verifying on a real order which values persist.

  • Event source: the Squarespace order webhook

    Send from the webhook rather than the confirmation page, which has restricted script access and may not run what you expect.

  • Dispatch to Amplitude

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

  • Reversals where they exist

    Refunds are recorded against the order.

Written guarantee

95%+ tracking accuracy

Measured against Squarespace's order records for the same window.. Miss it and we keep working at no cost.

Get my free conversion tracking audit

From $400 · See packages

FAQ

Squarespace → Amplitude questions, answered

Load the Amplitude SDK via code injection, use the order confirmation page to link the device to a user ID, and send revenue from the Squarespace order webhook with that ID.

Free · 30 min

Get Squarespace and Amplitude joined properly

Free30 minutesNo obligation