Skip to main content
Recharge → AmplitudeIntegration guide

Connecting Recharge to Amplitude

Recharge holds the subscription, which means it holds the only complete record of what a Shopify subscription store actually earns over time. 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 Recharge subscription 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

Recharge to Amplitude: renewals as revenue on the customer's user ID

Send Recharge subscription created, charge processed and cancelled events to Amplitude on the Shopify customer ID that the browser SDK sets with setUserId at checkout, since renewals have no device ID. Tag renewals with a revenueType, use the Recharge charge ID as insert_id, and carry stored UTMs and click IDs on the created event for channel cohorts.

Amplitude is a good fit for Recharge because subscription retention is a cohort question, and Amplitude is built for cohorts. Send subscription created, charge processed and subscription cancelled as events, with the renewal carrying price, quantity and a revenueType such as renewal so first orders and recurring revenue can be split in the same chart.

Every renewal is generated by Recharge on a schedule, so there is never a device ID. These events must use the user ID your storefront already sets for the customer, usually the Shopify customer ID, and that only works if the browser SDK calls setUserId with the same value during checkout. Get that wrong and each renewal lands on an identified user with no acquisition history, which makes retention by campaign impossible. Store the original UTM source and click identifiers on the subscription metadata and send them as properties on the created event so cohorts can be cut by channel.

Use the Recharge charge ID as insert_id; webhook retries are common and a duplicated charge shows up as a phantom revenue bump. Send skips and paused subscriptions as events too, because a skip-heavy cohort looks fine on revenue for a month and then falls off.

Recharge → Amplitude · what breaks

Why this join usually fails — Recharge → Amplitude

  1. 01

    The user ID and device ID pair never reaches Recharge

    The identifier has to live on the subscription rather than the order. Every renewal creates a new order, so an identifier stored only on the first one can never be tied to any renewal — and renewals are where most of the revenue is.

  2. 02

    Renewals happen with no browser present

    Charges run on a schedule with no customer there. Nothing that fires from a page can see them, and stores routinely report only acquisition and undercount total revenue by whatever their retention is worth.

  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.

Recharge → Amplitude · the fix

What working looks like — Recharge → Amplitude

  • The user ID and device ID pair on every subscription

  • 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

Recharge → Amplitude · architecture

How Recharge and Amplitude actually connect

  1. 1

    Recharge holds the truth

    Every charge creates a Shopify order, so the two systems should agree. Recharge is authoritative for the recurring relationship; Shopify is authoritative for what the store banked.

  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 Recharge subscription.

  4. 4

    The event source decides reliability

    Send acquisition from subscription created, once, valued at expected lifetime. Renewals fire from charge processed and belong in your reporting rather than automatically in your bidding.

  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.

Recharge → Amplitude · normal or broken

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

Normal, not a fault

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

  • Sent from the Recharge subscription and charge 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

    The identifier has to live on the subscription rather than the order. Every renewal creates a new order, so an identifier stored only on the first one can never be tied to any renewal — and renewals are where most of the revenue is.

  • Sent from the browser

    Charges run on a schedule with no customer there. Nothing that fires from a page can see them, and stores routinely report only acquisition and undercount total revenue by whatever their retention is worth.

  • 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

Recharge → Amplitude · diagnose

Diagnostic order — Recharge → Amplitude

  1. 01

    Count subscriptions carrying the user ID and device ID pair

  2. 02

    Follow one real conversion end to end

  3. 03

    Check whether a subscription carries the identifier

    Not the order. If it is on the order only, renewals can never be attributed no matter what you build downstream.

  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.

Recharge → Amplitude · prove

How it gets proven — Recharge → Amplitude

Source of truth

Recharge's subscription and charge records, cross-checked against the Shopify orders they create.

  • The user ID and device ID pair confirmed present on a live subscription.
  • Revenue reconciled per transaction against your billing system, with identity merge behaviour verified across signup.
  • A renewal confirmed to land wherever the written policy says it should, and a cancellation confirmed to reverse.

Recharge → Amplitude · free audit

What we check in the free audit

  • Count subscriptions carrying the user ID and device ID pair
  • Follow one real conversion end to end
  • Check whether a subscription carries the identifier
  • Check a purchase event for the price and quantity fields specifically
  • Read the match rate, not the success message

Checked against

Recharge's subscription and charge records, cross-checked against the Shopify orders they create.

Get my free conversion tracking audit

Free30 minutesNo obligation

Recharge → Amplitude · when not to buy

When you don't need this — Recharge → Amplitude

  • Measure identifier coverage yourself first — pull your last hundred subscriptions and count how many carry the user ID and device ID pair.
  • If you sell one-off products with a small subscription tail, the store's native integration may already be adequate. Measure the recurring share first.
  • If nobody is building cohorts or retention analysis, this is a large amount of instrumentation for reporting a dashboard already gives you.

Recharge → Amplitude · what we deliver

What gets built — Recharge → Amplitude

  • Identifier capture into Recharge

    Capture the click identifier on the storefront and write it to the Recharge subscription's metadata at creation, so it is available on every subsequent charge.

  • Event source: the Recharge subscription and charge webhooks

    Send acquisition from subscription created, once, valued at expected lifetime. Renewals fire from charge processed and belong in your reporting rather than automatically in your bidding.

  • Dispatch to Amplitude

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

  • Reversals where they exist

    Recharge exposes cancellation, which should reverse the lifetime value you claimed at acquisition. Almost nobody wires this, so reported subscriber value only ever rises.

Written guarantee

95%+ tracking accuracy

Measured against Recharge's subscription and charge records, cross-checked against the Shopify orders they create.. Miss it and we keep working at no cost.

Get my free conversion tracking audit

From $400 · See packages

FAQ

Recharge → Amplitude questions, answered

Send an event from each Recharge charge with the Shopify customer ID as user_id, price and quantity filled in, and the charge ID as insert_id. There is no device ID because renewals happen without a browser.

Free · 30 min

Get Recharge and Amplitude joined properly

Free30 minutesNo obligation