Skip to main content
Fires when a subscription ends completely (no longer billing). This is the final churn event for calculating churn rate.

JavaScript

window._upstack('track', 'subscription_churned', {
  subscriptionId: 'sub_def456',
  accountId: 'acct_abc123',
  planId: 'plan_pro_monthly',
  cancelReason: 'switched_competitor',
  mrr: 9900,
  ltv: 118800,
  subscriptionMonths: 12
});

Properties

PropertyTypeRequiredDescription
subscriptionIdstringYesSubscription identifier
accountIdstringYesAccount identifier
planIdstringNoChurned plan
cancelReasonstringNoChurn reason
mrrnumberNoLost MRR in cents
ltvnumberNoCustomer lifetime value in cents
subscriptionMonthsnumberNoHow long they were subscribed

When to Fire

  • When final billing period ends
  • When subscription is deactivated
  • When Stripe customer.subscription.deleted fires

Stripe Webhook

Maps to customer.subscription.deleted.
Use this event to calculate churn rate and analyze churn reasons. Track ltv to understand which customer segments have the highest lifetime value.