Skip to main content
Shopify → AmplitudeIntegration guide

Connecting Shopify to Amplitude

Shopify is the system of record for the order, and its admin numbers are the ones the business runs on. 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 orders in Amplitude on the same user as the storefront

Write the Amplitude device ID into a Shopify cart attribute, read it from the order's note attributes in the orders/paid webhook, and send the purchase server-side under that device ID, plus the customer ID as user ID when one exists. Choose line-item or order-level revenue once, set insert_id from order and line item IDs, and send refunds as negative revenue.

Most Shopify purchases are guest checkouts, so Amplitude has no login to merge on. The device ID the Amplitude SDK set on the storefront has to travel with the cart: write it to a cart attribute, read it from the order's note attributes in the orders/paid webhook, and send the purchase server-side under that device ID, plus the Shopify customer ID as user ID when one exists. Skip this and every order lands on a new anonymous user with no browsing history.

Send revenue the way Amplitude expects: one revenue event per line item with productId, price and quantity, or one order-level event with revenue set, chosen once. Use shop money rather than presentment money if you report in one currency, and set insert_id from the order ID plus line item ID so webhook retries do not duplicate. Send refunds/create as negative revenue if you want net figures.

If you load the Amplitude SDK inside a Shopify custom pixel to capture checkout steps, it runs in a sandbox and may mint its own device ID; pass the storefront's ID in explicitly rather than trusting it to match. Repeat orders are where this pair pays off, because cohorts by first-order channel show which ads bring customers who come back.

Shopify → Amplitude · what breaks

Why this join usually fails — Shopify → Amplitude

  1. 01

    The user ID and device ID pair never reaches Shopify

    Shopify's checkout is locked down. Custom scripts on the checkout steps are not permitted on standard plans, and the old additional-scripts route is gone, so the identifier has to be captured on the storefront and carried into the order through cart or order attributes rather than read at the checkout itself.

  2. 02

    Checkout extensibility hides what you need

    Shopify deliberately restricts what runs during checkout. Setups that assumed free rein there broke when the platform moved to Checkout Extensibility, and many stores have been quietly under-reporting since.

  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.

Shopify → Amplitude · the fix

What working looks like — Shopify → 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 → Amplitude · architecture

How Shopify and Amplitude actually connect

  1. 1

    Shopify holds the truth

    The order carries line items, discounts, shipping, tax, currency and the customer. Note which figure you intend to report — total, subtotal, or net of shipping and tax — because most mismatches between Shopify and an ad platform turn out to be two people comparing two different numbers.

  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 when Shopify says the order is paid, from your server. This also covers draft orders, POS, and the customer who closes the tab on the thank-you page — none of which a pixel on the order-status page will ever see.

  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.

Shopify → Amplitude · normal or broken

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

Normal, not a fault

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

  • Sent from the orders/paid 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

Actually broken

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

    Shopify's checkout is locked down. Custom scripts on the checkout steps are not permitted on standard plans, and the old additional-scripts route is gone, so the identifier has to be captured on the storefront and carried into the order through cart or order attributes rather than read at the checkout itself.

  • Sent from the browser

    Shopify deliberately restricts what runs during checkout. Setups that assumed free rein there broke when the platform moved to Checkout Extensibility, and many stores have been quietly under-reporting since.

  • 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

Shopify → Amplitude · diagnose

Diagnostic order — Shopify → Amplitude

  1. 01

    Count orders carrying the user ID and device ID pair

  2. 02

    Follow one real conversion end to end

  3. 03

    Open a recent paid order and read its note attributes

    If the identifier is not on the order, nothing downstream can attribute it. Check ten orders, not one — partial coverage is the normal failure, not total absence.

  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.

Shopify → Amplitude · prove

How it gets proven — Shopify → Amplitude

Source of truth

Shopify Admin → Orders, for the same window, in the same currency and on the same timezone.

  • 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.
  • Order totals in Shopify Admin reconciled per order, not on the summed total, over a closed window.

Shopify → 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
  • Open a recent paid order and read its note attributes
  • Check a purchase event for the price and quantity fields specifically
  • Read the match rate, not the success message

Checked against

Shopify Admin → Orders, for the same window, in the same currency and on the same timezone.

Get my free conversion tracking audit

Free30 minutesNo obligation

Shopify → Amplitude · when not to buy

When you don't need this — Shopify → Amplitude

  • Measure identifier coverage yourself first — pull your last hundred orders and count how many carry the user ID and device ID pair.
  • Shopify's own native channel integrations already cover simple single-currency stores adequately. If your admin numbers and platform numbers already agree, you do not need this.
  • If nobody is building cohorts or retention analysis, this is a large amount of instrumentation for reporting a dashboard already gives you.

Shopify → Amplitude · what we deliver

What gets built — Shopify → Amplitude

  • Identifier capture into Shopify

    Capture the click identifier on the storefront, write it to a cart attribute so it becomes an order note attribute, and read it back server-side from the order. That path survives the checkout domain hop that breaks cookie-based approaches.

  • Event source: the orders/paid webhook

    Send when Shopify says the order is paid, from your server. This also covers draft orders, POS, and the customer who closes the tab on the thank-you page — none of which a pixel on the order-status page will ever see.

  • Dispatch to Amplitude

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

  • Reversals where they exist

    refunds/create fires with the original order reference, so refunds and cancellations can be reversed at the destination.

Written guarantee

95%+ tracking accuracy

Measured against Shopify Admin → Orders, for the same window, in the same currency and on the same timezone.. Miss it and we keep working at no cost.

Get my free conversion tracking audit

From $400 · See packages

FAQ

Shopify → Amplitude questions, answered

Carry the storefront device ID into the order as a cart attribute, then send the purchase server-side under that device ID.

Free · 30 min

Get Shopify and Amplitude joined properly

Free30 minutesNo obligation