Skip to main content
Chargebee → AmplitudeIntegration guide

Connecting Chargebee to Amplitude

Chargebee is a billing system, so it holds the only complete record of what a subscription business earned — and it sits entirely outside the browser. 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 Chargebee 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

Chargebee to Amplitude: subscription revenue on the right user

Store your Amplitude user_id on the Chargebee customer at subscription creation and post payment events with it. Map paid invoice amount to price with quantity 1, use revenueType for first payment, renewal and plan change, and invoice ID as insert_id. Send every renewal, cancellation and refund, and set original UTM and click IDs as never-overwritten user properties.

Amplitude's value for a Chargebee business is tying in-product behavior during the trial to whether the first invoice gets paid. That only works if the payment event lands on the same user your browser and app SDKs already track. The Chargebee customer ID is not that user. Store your Amplitude user_id on the Chargebee customer as a custom field when the subscription is created, and post the payment event with that user_id, never with the Chargebee ID or an email you do not use as user_id elsewhere.

Revenue fields decide whether Amplitude's revenue charts work at all. Map the paid invoice amount into price with quantity 1, use revenueType to separate first payment, renewal and plan change, and use the Chargebee invoice ID as insert_id so a retried webhook is ignored. Confirm the exact field names in Amplitude's current HTTP V2 docs. Refunds can be sent as negative revenue so cohort lifetime value reflects money you kept.

Unlike an ad platform, Amplitude should receive every renewal and cancellation, because retention by acquisition cohort is the reason to send billing data here. Set the original UTM and click-ID values as user properties at signup and never overwrite them, and you can ask which campaigns produced subscribers who stayed past month three. Check whether Chargebee offers a native Amplitude connector; most teams post from their own webhook handler.

Chargebee → Amplitude · what breaks

Why this join usually fails — Chargebee → Amplitude

  1. 01

    The user ID and device ID pair never reaches Chargebee

    The identifier must live on the customer or subscription so it survives a trial period that is longer than any browser cookie you can rely on. Chargebee's hosted checkout is also a different origin, so nothing crosses it by default.

  2. 02

    Trials longer than any cookie

    The gap between signup and first payment is where the identifier has to survive, and it is measured in weeks. Browser storage will not do it.

  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.

Chargebee → Amplitude · the fix

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

Chargebee → Amplitude · architecture

How Chargebee and Amplitude actually connect

  1. 1

    Chargebee holds the truth

    The distinction that matters most here is invoice generated versus payment succeeded. An invoice is a bill you sent; a payment is money you received, and in any business with dunning the gap between them is large.

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

  4. 4

    The event source decides reliability

    Fire on payment succeeded, not invoice generated, and key the conversion on the billing period so a dunning sequence with four retries produces one conversion rather than four.

  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.

Chargebee → Amplitude · normal or broken

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

Normal, not a fault

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

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

    The identifier must live on the customer or subscription so it survives a trial period that is longer than any browser cookie you can rely on. Chargebee's hosted checkout is also a different origin, so nothing crosses it by default.

  • Sent from the browser

    The gap between signup and first payment is where the identifier has to survive, and it is measured in weeks. Browser storage will not do it.

  • 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

Chargebee → Amplitude · diagnose

Diagnostic order — Chargebee → 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 the event fires on invoice or on payment

    Invoice-based firing counts money you have not received, and in a business with dunning that overstates consistently.

  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.

Chargebee → Amplitude · prove

How it gets proven — Chargebee → Amplitude

Source of truth

Chargebee's paid invoices by payment date, net of refunds and failed payments.

  • 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 dunning sequence confirmed to produce one conversion rather than one per retry.

Chargebee → 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 the event fires on invoice or on payment
  • Check a purchase event for the price and quantity fields specifically
  • Read the match rate, not the success message

Checked against

Chargebee's paid invoices by payment date, net of refunds and failed payments.

Get my free conversion tracking audit

Free30 minutesNo obligation

Chargebee → Amplitude · when not to buy

When you don't need this — Chargebee → Amplitude

  • Measure identifier coverage yourself first — pull your last hundred subscriptions and count how many carry the user ID and device ID pair.
  • If your trial is longer than 90 days, uploading the first payment against the original click cannot work — we will tell you that before quoting.
  • If nobody is building cohorts or retention analysis, this is a large amount of instrumentation for reporting a dashboard already gives you.

Chargebee → Amplitude · what we deliver

What gets built — Chargebee → Amplitude

  • Identifier capture into Chargebee

    Write the click identifier to a custom field on the Chargebee customer or subscription when the subscription is created, server-side, rather than relying on the hosted checkout page to carry it.

  • Event source: the Chargebee payment_succeeded webhook

    Fire on payment succeeded, not invoice generated, and key the conversion on the billing period so a dunning sequence with four retries produces one conversion rather than four.

  • Dispatch to Amplitude

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

  • Reversals where they exist

    Cancellations and refunds are exposed and should reverse the lifetime value claimed at acquisition.

Written guarantee

95%+ tracking accuracy

Measured against Chargebee's paid invoices by payment date, net of refunds and failed payments.. Miss it and we keep working at no cost.

Get my free conversion tracking audit

From $400 · See packages

FAQ

Chargebee → Amplitude questions, answered

Handle the payment_succeeded webhook and post a revenue event with the app user_id stored on the Chargebee customer, the amount in the price field and the invoice ID as insert_id.

Free · 30 min

Get Chargebee and Amplitude joined properly

Free30 minutesNo obligation