Skip to main content
SamCart → AmplitudeIntegration guide

Connecting SamCart to Amplitude

SamCart is a checkout platform built for conversion optimisation, which means order bumps and upsells are the point — and they complicate the value on every order. 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 SamCart 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

SamCart to Amplitude: bumps, upsells and rebills as revenue types

Send each SamCart line as its own Amplitude revenue event, with productId and a revenueType of front_end, bump or upsell, plus renewal for rebills and refund as negative revenue. Pass the Amplitude device ID into the checkout URL so it is stored on the order and returned in the webhook, and set insert_id from the order or charge ID.

Amplitude is where a SamCart funnel's economics can be taken apart instead of blended. Amplitude records one price and quantity per revenue event, so send each line as its own revenue event: the main product, each order bump and each one-click upsell, with productId and a revenueType such as front_end, bump or upsell. Cohort analysis can then answer whether buyers who took the bump retain or refund at different rates, a question SamCart's own dashboard does not answer.

Identity is lost at the domain hop. Amplitude's device ID lives on your sales page's domain, while SamCart's checkout runs on a SamCart domain or a custom subdomain pointed at it. Pass the device ID, and the user ID if known, into the checkout URL so it is stored on the order, and confirm it comes back in the webhook payload. Without it, every SamCart buyer appears in Amplitude as a new user with nothing before the purchase.

Subscriptions and payment plans arrive as later charges. Send rebills as revenue events with revenueType renewal on the same user, not as new purchases, and refunds as negative revenue with revenueType refund, so lifetime value per cohort nets out properly. Use insert_id from SamCart's order or charge ID so webhook retries are dropped rather than doubling revenue.

SamCart → Amplitude · what breaks

Why this join usually fails — SamCart → Amplitude

  1. 01

    The user ID and device ID pair never reaches SamCart

    SamCart hosts the checkout, so the identifier has to be passed through its URL parameters or custom fields. The upsell flow adds a further step after the initial purchase, which can create additional orders that should not each count as a new acquisition.

  2. 02

    Upsells counted as separate acquisitions

    A funnel with two upsells can produce three orders from one customer. Counted as three conversions, the campaign looks three times better than it is.

  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.

SamCart → Amplitude · the fix

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

SamCart → Amplitude · architecture

How SamCart and Amplitude actually connect

  1. 1

    SamCart holds the truth

    The headline product price is rarely what the customer paid. Order bumps and one-click upsells are the platform's core feature, so the order total and the product price routinely differ substantially.

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

  4. 4

    The event source decides reliability

    Send the initial purchase as the acquisition conversion at the full realised value including bumps, and treat one-click upsells as additional revenue against the same customer rather than as new acquisitions.

  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.

SamCart → Amplitude · normal or broken

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

Normal, not a fault

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

  • Sent from the SamCart 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

Actually broken

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

    SamCart hosts the checkout, so the identifier has to be passed through its URL parameters or custom fields. The upsell flow adds a further step after the initial purchase, which can create additional orders that should not each count as a new acquisition.

  • Sent from the browser

    A funnel with two upsells can produce three orders from one customer. Counted as three conversions, the campaign looks three times better than it is.

  • 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

SamCart → Amplitude · diagnose

Diagnostic order — SamCart → Amplitude

  1. 01

    Count orders carrying the user ID and device ID pair

  2. 02

    Follow one real conversion end to end

  3. 03

    Follow one purchase with upsells through to the conversions sent

    If three orders produced three acquisition conversions, you have found the inflation.

  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.

SamCart → Amplitude · prove

How it gets proven — SamCart → Amplitude

Source of truth

SamCart's order records for the same window, including bumps and upsells.

  • 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 purchase with two upsells confirmed to produce one acquisition conversion at the combined value.

SamCart → 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
  • Follow one purchase with upsells through to the conversions sent
  • Check a purchase event for the price and quantity fields specifically
  • Read the match rate, not the success message

Checked against

SamCart's order records for the same window, including bumps and upsells.

Get my free conversion tracking audit

Free30 minutesNo obligation

SamCart → Amplitude · when not to buy

When you don't need this — SamCart → Amplitude

  • Measure identifier coverage yourself first — pull your last hundred orders and count how many carry the user ID and device ID pair.
  • If you run a single product with no bumps or upsells, the standard checkout approach applies and none of this complexity is relevant.
  • If nobody is building cohorts or retention analysis, this is a large amount of instrumentation for reporting a dashboard already gives you.

SamCart → Amplitude · what we deliver

What gets built — SamCart → Amplitude

  • Identifier capture into SamCart

    Pass the identifier into the SamCart checkout URL and confirm it lands on the order, then decide how upsell orders relate to the parent purchase before sending anything.

  • Event source: the SamCart order webhook

    Send the initial purchase as the acquisition conversion at the full realised value including bumps, and treat one-click upsells as additional revenue against the same customer rather than as new acquisitions.

  • 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 and, on aggressive upsell funnels, refund rates are high enough that ignoring them materially overstates performance.

Written guarantee

95%+ tracking accuracy

Measured against SamCart's order records for the same window, including bumps and upsells.. Miss it and we keep working at no cost.

Get my free conversion tracking audit

From $400 · See packages

FAQ

SamCart → Amplitude questions, answered

As separate revenue events for the same order, each with its own productId and revenueType, so bump take rate and bump value can be analyzed by cohort.

Free · 30 min

Get SamCart and Amplitude joined properly

Free30 minutesNo obligation