Skip to main content
Fires when a customer purchases an add-on feature or service. Use this event to measure add-on adoption and expansion revenue.

JavaScript

window._upstack('track', 'addon_purchased', {
  accountId: 'acct_abc123',
  subscriptionId: 'sub_def456',
  addonId: 'addon_advanced_analytics',
  addonName: 'Advanced Analytics',
  price: 4900,
  currency: 'USD',
  billingInterval: 'month'
});

Properties

PropertyTypeRequiredDescription
accountIdstringYesAccount identifier
addonIdstringYesAdd-on identifier
subscriptionIdstringNoSubscription identifier
addonNamestringNoHuman-readable add-on name
pricenumberNoAdd-on price in cents
currencystringNoISO 4217 currency code
billingIntervalstringNomonth or year

When to Fire

  • When add-on is purchased from settings
  • When add-on checkout completes
  • When Stripe subscription item is added