Skip to main content
Swell → AmplitudeIntegration guide

Connecting Swell to Amplitude

Swell is headless commerce with subscriptions built in, which puts two conversion types in one system: a one-off order and a recurring plan that will bill again next month. 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 Swell 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

Swell to Amplitude: where subscription renewals belong

Unlike ad platforms, Amplitude should get Swell renewals deliberately, as their own event type. Set the user ID to the Swell account ID and write the device ID into cart metadata so webhook orders land on the same person. Use the order or invoice ID as insert_id, a revenue type separating renewals, and send pauses, skips and cancellations.

For ad platforms, Swell subscription renewals are noise to be filtered out. For Amplitude they are the point: retention curves, subscriber cohorts and lifetime value by acquisition month all depend on every renewal arriving on the right user. This is the one destination in the list where you should send renewals deliberately, as their own event type, alongside the first order.

Because the storefront is headless, you control identity. Initialize the Amplitude SDK in your frontend, set the user ID to the Swell account ID at login or checkout, and write the device ID into the cart or order metadata so the server-side order event from the Swell webhook lands on the same person. Renewals have no session at all, so they must be sent with the user ID from the subscription's account, with the Swell order or invoice ID in the insert ID.

Use Amplitude's revenue fields with a revenue type that separates first orders from renewals, so revenue charts can split acquisition from retention. Paused subscriptions, skipped cycles and cancellations are worth sending as events too; without them a churned subscriber simply goes quiet, and a retention chart cannot tell a skip from a cancellation.

Swell → Amplitude · what breaks

Why this join usually fails — Swell → Amplitude

  1. 01

    The user ID and device ID pair never reaches Swell

    Headless storefront plus recurring billing means the renewal happens months later with no session and no storefront involved.

  2. 02

    Renewals indistinguishable from new orders

    In a combined store the export gives you a list of payments. Without a first-versus-renewal flag, a customer on a monthly plan generates a conversion every month against the click that acquired them once.

  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.

Swell → Amplitude · the fix

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

Swell → Amplitude · architecture

How Swell and Amplitude actually connect

  1. 1

    Swell holds the truth

    A subscription's first payment and its renewals are the same object type in most exports. Sending both means one acquisition produces a conversion every billing cycle.

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

  4. 4

    The event source decides reliability

    Send one-off orders and first subscription payments. Renewals belong in a retention figure.

  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.

Swell → Amplitude · normal or broken

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

Normal, not a fault

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

  • Sent from the Swell order and subscription webhooks

  • 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

    Headless storefront plus recurring billing means the renewal happens months later with no session and no storefront involved.

  • Sent from the browser

    In a combined store the export gives you a list of payments. Without a first-versus-renewal flag, a customer on a monthly plan generates a conversion every month against the click that acquired them once.

  • 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

Swell → Amplitude · diagnose

Diagnostic order — Swell → 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 monthly conversion count against new customer count

    If conversions exceed new customers, renewals are being counted as acquisition.

  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.

Swell → Amplitude · prove

How it gets proven — Swell → Amplitude

Source of truth

Swell orders and subscriptions by date, held apart from each other.

  • 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.
  • First payments reconciled against imported conversions, with renewals reported separately.

Swell → 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 monthly conversion count against new customer count
  • Check a purchase event for the price and quantity fields specifically
  • Read the match rate, not the success message

Checked against

Swell orders and subscriptions by date, held apart from each other.

Get my free conversion tracking audit

Free30 minutesNo obligation

Swell → Amplitude · when not to buy

When you don't need this — Swell → Amplitude

  • Measure identifier coverage yourself first — pull your last hundred orders and count how many carry the user ID and device ID pair.
  • A store selling only one-off products does not have the renewal problem.
  • If nobody is building cohorts or retention analysis, this is a large amount of instrumentation for reporting a dashboard already gives you.

Swell → Amplitude · what we deliver

What gets built — Swell → Amplitude

  • Identifier capture into Swell

    Write the identifier into customer metadata so the first payment can be attributed and renewals can be recognised as renewals.

  • Event source: the Swell order and subscription webhooks

    Send one-off orders and first subscription payments. Renewals belong in a retention figure.

  • 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 inside the first period reverse.

Written guarantee

95%+ tracking accuracy

Measured against Swell orders and subscriptions by date, held apart from each other.. Miss it and we keep working at no cost.

Get my free conversion tracking audit

From $400 · See packages

FAQ

Swell → Amplitude questions, answered

Yes, as a separate event type with its own revenue type. Amplitude retention and LTV analysis depend on them, unlike ad platforms where renewals should be excluded.

Free · 30 min

Get Swell and Amplitude joined properly

Free30 minutesNo obligation