Skip to main content
Checkout Extensibility → AmplitudeIntegration guide

Connecting Shopify Checkout Extensibility to Amplitude

Shopify replaced checkout.liquid with a sandboxed extension model, and the thank-you page — where nearly every store put its conversion tracking — was the last thing to go. 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 Shopify 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

Shopify checkout to Amplitude: purchases from the webhook

If Amplitude's purchase ran on the thank-you page through Additional Scripts, it stopped at the upgrade. Rebuild it on the server: write the Amplitude device ID into a cart attribute, then post from orders/paid to the HTTP V2 API with that device ID, the Shopify customer ID as user_id, per-line-item price and quantity, and insert_id from the order ID.

Many Shopify stores ran the Amplitude browser SDK on the thank-you page through Additional Scripts, and that purchase event stopped when the store upgraded. Amplitude still shows page views and add-to-carts from the storefront theme, so funnels quietly end at checkout and nobody sees an error.

Rebuild the purchase on the server. Read the Amplitude device ID on the storefront and write it into a cart attribute before checkout, so it comes back on the order as a note attribute. Post from the orders/paid webhook to the HTTP V2 API with that device ID, user_id set to the Shopify customer ID if your storefront identifies logged-in customers the same way, price and quantity per line item, and insert_id from the Shopify order ID. A custom pixel subscribed to checkout_completed can add checkout-step events, but it runs sandboxed, so confirm it reads the same device ID as the storefront before trusting anything it sends, and keep it out of revenue.

Check whether an Amplitude integration or another installed Shopify app already sends orders; if so, make sure it and your own webhook handler are not both sending the purchase. Send refunds from the refunds/create webhook as a separate event with negative revenue on the same user.

Checkout Extensibility → Amplitude · what breaks

Why this join usually fails — Checkout Extensibility → Amplitude

  1. 01

    The user ID and device ID pair never reaches Checkout Extensibility

    Custom scripts can no longer run on checkout or the thank-you page. Client-side conversion tags placed there are not blocked — they are simply never loaded.

  2. 02

    Conversion tracking that silently stopped

    This is the single most common live tracking failure on Shopify right now. Nothing errors. The tag simply never runs, revenue keeps arriving, and the ad platform reports a collapse that looks like a market problem.

  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.

Checkout Extensibility → Amplitude · the fix

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

    Shopify Checkout Extensibility's own records are the reference, not either dashboard.

Checkout Extensibility → Amplitude · architecture

How Checkout Extensibility and Amplitude actually connect

  1. 1

    Shopify Checkout Extensibility holds the truth

    Additional Scripts and script tags on the order status page are gone. Any tracking that lived there has already stopped firing or will, and the store owner usually finds out from a revenue report rather than an error.

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

  4. 4

    The event source decides reliability

    Send orders from the webhook at the paid total. Web Pixels are the supported browser-side path and they run sandboxed, with no access to the page.

  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.

Checkout Extensibility → Amplitude · normal or broken

Working vs. broken, side by side — Checkout Extensibility → Amplitude

Normal, not a fault

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

    Visible on the record itself in Shopify Checkout Extensibility, not merely captured somewhere on the site.

  • Sent from the Shopify order webhook, server-side

  • 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 Shopify Checkout Extensibility's records agree within a few percent over a closed window.

Actually broken

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

    Custom scripts can no longer run on checkout or the thank-you page. Client-side conversion tags placed there are not blocked — they are simply never loaded.

  • Sent from the browser

    This is the single most common live tracking failure on Shopify right now. Nothing errors. The tag simply never runs, revenue keeps arriving, and the ad platform reports a collapse that looks like a market problem.

  • 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 Shopify Checkout Extensibility.

Checkout Extensibility → Amplitude · diagnose

Diagnostic order — Checkout Extensibility → Amplitude

  1. 01

    Count orders carrying the user ID and device ID pair

  2. 02

    Follow one real conversion end to end

  3. 03

    Compare Shopify order count against platform-reported conversions for the last 60 days

    A sharp divergence with no change in actual sales is the signature. Check what was in Additional Scripts before assuming anything else.

  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.

Checkout Extensibility → Amplitude · prove

How it gets proven — Checkout Extensibility → Amplitude

Against Shopify Checkout Extensibility's own records, not against either platform's dashboard.

Source of truth

Shopify orders by creation date, read from the order record rather than from anything rendered on a page.

  • 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.
  • Orders reconciled from the webhook against imported conversions for a settled week, with no dependence on anything rendered at checkout.

Checkout Extensibility → 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
  • Compare Shopify order count against platform-reported conversions for the last 60 days
  • Check a purchase event for the price and quantity fields specifically
  • Read the match rate, not the success message

Checked against

Shopify orders by creation date, read from the order record rather than from anything rendered on a page.

Get my free conversion tracking audit

Free30 minutesNo obligation

Checkout Extensibility → Amplitude · when not to buy

When you don't need this — Checkout Extensibility → Amplitude

  • If Amplitude already reports conversions that reconcile against Shopify Checkout Extensibility'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.
  • If you were already sending conversions server-side from the order webhook, this migration does not affect your tracking at all — which is exactly why server-side was worth doing before it was forced.
  • If nobody is building cohorts or retention analysis, this is a large amount of instrumentation for reporting a dashboard already gives you.

Checkout Extensibility → Amplitude · what we deliver

What gets built — Checkout Extensibility → Amplitude

  • Identifier capture into Checkout Extensibility

    Capture the identifier on your own storefront, persist it into cart or order attributes, and send the conversion server-side from the order webhook rather than from any page.

  • Event source: the Shopify order webhook, server-side

    Send orders from the webhook at the paid total. Web Pixels are the supported browser-side path and they run sandboxed, with no access to the page.

  • Dispatch to Amplitude

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

  • Reversals where they exist

    Refunds and cancellations reverse from their own webhooks.

Written guarantee

95%+ tracking accuracy

Measured against Shopify orders by creation date, read from the order record rather than from anything rendered on a page.. Miss it and we keep working at no cost.

Get my free conversion tracking audit

From $400 · See packages

FAQ

Checkout Extensibility → Amplitude questions, answered

The tracking ran on the thank-you page or in Additional Scripts, which no longer load custom scripts. Send purchases server-side from the order webhook, with the device ID saved as a cart attribute.

Free · 30 min

Get Checkout Extensibility and Amplitude joined properly

Free30 minutesNo obligation