JavaScript
Properties
When to Fire
- After first successful charge
- When subscription status becomes
active - After trial converts to paid
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Track when a new subscription begins (first billing period starts).
window._upstack('track', 'subscription_started', {
subscriptionId: 'sub_def456',
accountId: 'acct_abc123',
planId: 'plan_pro_monthly',
planName: 'Pro Plan',
mrr: 9900,
billingInterval: 'month'
});
| Property | Type | Required | Description |
|---|---|---|---|
| subscriptionId | string | Yes | Subscription identifier |
| accountId | string | Yes | Account identifier |
| planId | string | Yes | Plan identifier |
| planName | string | No | Plan display name |
| mrr | number | No | Monthly recurring revenue in cents |
| billingInterval | string | No | Billing frequency |
activeWas this page helpful?