Account and user
| Name | Type | Description |
|---|---|---|
accountId | string | Your account or organization ID. |
accountName | string | Account or organization name. |
accountCreatedAt | string | When the account was created, ISO 8601. |
userId | string | Your ID for this user. |
userRole | string | One of owner, admin, manager, member. |
account_created payload:
window._upstack('track', 'account_created', {
// Standard parameters
accountId: 'acct_abc123',
userId: 'user_789',
accountName: 'Example Co',
accountCreatedAt: '2026-11-01T10:00:00Z',
planId: 'plan_pro_monthly',
planName: 'Pro Plan',
// User data
email: 'jane@example.com',
phone: '+15551234567',
firstName: 'Jane',
lastName: 'Smith',
// Custom data
referralCode: 'FRIEND20',
companySize: '11-50'
});
user_joined payload:
window._upstack('track', 'user_joined', {
// Standard parameters
accountId: 'acct_abc123',
userId: 'user_789',
userRole: 'admin',
// User data
email: 'jane@example.com',
phone: '+15551234567',
firstName: 'Jane',
lastName: 'Smith',
// Custom data
invitedByUserId: 'user_123',
joinMethod: 'email_invite'
});
Subscription and revenue
| Name | Type | Description |
|---|---|---|
subscriptionId | string | Your subscription ID. |
planId | string | Your plan ID. |
planName | string | Plan display name. |
billingInterval | string | One of day, week, month, year. |
mrr | number | Monthly recurring revenue, in cents. |
arr | number | Annual recurring revenue, in cents. |
mrrDelta | number | Change in monthly recurring revenue, in cents. |
ltv | number | Lifetime value to date, in cents. |
subscription_started payload:
window._upstack('track', 'subscription_started', {
// Standard parameters
accountId: 'acct_abc123',
subscriptionId: 'sub_def456',
planId: 'plan_pro_monthly',
value: 99.00,
currency: 'USD',
planName: 'Pro Plan',
mrr: 9900,
arr: 118800,
billingInterval: 'month',
// User data
email: 'jane@example.com',
phone: '+15551234567',
firstName: 'Jane',
lastName: 'Smith',
// Custom data
referralCode: 'FRIEND20',
previousTrial: true
});
subscription_upgraded payload:
window._upstack('track', 'subscription_upgraded', {
// Standard parameters
accountId: 'acct_abc123',
subscriptionId: 'sub_def456',
planId: 'plan_pro_monthly',
value: 99.00,
currency: 'USD',
planName: 'Pro Plan',
mrr: 9900,
mrrDelta: 5000,
// User data
email: 'jane@example.com',
phone: '+15551234567',
firstName: 'Jane',
lastName: 'Smith',
// Custom data
previousPlanId: 'plan_basic_monthly',
upgradeReason: 'seat_limit'
});
subscription_churned payload:
window._upstack('track', 'subscription_churned', {
// Standard parameters
accountId: 'acct_abc123',
subscriptionId: 'sub_def456',
planId: 'plan_pro_monthly',
mrr: 9900,
ltv: 118800,
cancelReason: 'too_expensive',
// User data
email: 'jane@example.com',
phone: '+15551234567',
firstName: 'Jane',
lastName: 'Smith',
// Custom data
subscriptionMonths: 12,
churnType: 'voluntary'
});
Trial
| Name | Type | Description |
|---|---|---|
trialStartDate | string | Trial start date, ISO 8601. |
trialEndDate | string | Trial end date, ISO 8601. |
trialDaysRemaining | number | Days left in the trial. |
trial_started payload:
window._upstack('track', 'trial_started', {
// Standard parameters
accountId: 'acct_abc123',
planId: 'plan_pro_monthly',
value: 99.00,
currency: 'USD',
planName: 'Pro Plan',
trialStartDate: '2026-11-01',
trialEndDate: '2026-11-15',
trialDaysRemaining: 14,
// User data
email: 'jane@example.com',
phone: '+15551234567',
firstName: 'Jane',
lastName: 'Smith',
// Custom data
trialSource: 'pricing_page',
experimentVariant: 'pricing_b'
});
Payment
| Name | Type | Description |
|---|---|---|
invoiceId | string | Your invoice ID. |
amount | number | Amount in cents. |
failureReason | string | Why the payment failed. |
payment_failed payload:
window._upstack('track', 'payment_failed', {
// Standard parameters
accountId: 'acct_abc123',
invoiceId: 'inv_1042',
failureReason: 'card_declined',
subscriptionId: 'sub_def456',
amount: 9900,
value: 99.00,
currency: 'USD',
// User data
email: 'jane@example.com',
phone: '+15551234567',
firstName: 'Jane',
lastName: 'Smith',
// Custom data
failureCode: 'insufficient_funds',
attemptCount: 2
});
Seats and add-ons
Sample
seat_added payload:
window._upstack('track', 'seat_added', {
// Standard parameters
accountId: 'acct_abc123',
subscriptionId: 'sub_def456',
seatCount: 6,
seatDelta: 1,
mrrDelta: 5000,
// User data
email: 'jane@example.com',
phone: '+15551234567',
firstName: 'Jane',
lastName: 'Smith',
// Custom data
addedBy: 'user_789',
seatType: 'editor'
});
addon_purchased payload:
window._upstack('track', 'addon_purchased', {
// Standard parameters
accountId: 'acct_abc123',
addonId: 'addon_sso',
value: 29.00,
currency: 'USD',
subscriptionId: 'sub_def456',
addonName: 'SSO',
billingInterval: 'month',
// User data
email: 'jane@example.com',
phone: '+15551234567',
firstName: 'Jane',
lastName: 'Smith',
// Custom data
purchasedFrom: 'billing_page',
addonQuantity: 1
});
Engagement
| Name | Type | Description |
|---|---|---|
featureId | string | Your feature ID. |
featureName | string | Feature display name. |
milestoneId | string | Your milestone ID. |
milestoneName | string | Milestone display name. |
inactiveDays | number | Days since the user was last active. |
feature_used payload:
window._upstack('track', 'feature_used', {
// Standard parameters
accountId: 'acct_abc123',
userId: 'user_789',
featureId: 'feat_reports',
featureName: 'Reports',
// User data
email: 'jane@example.com',
phone: '+15551234567',
firstName: 'Jane',
lastName: 'Smith',
// Custom data
featureCategory: 'reporting',
usageCount: 12
});
milestone_reached payload:
window._upstack('track', 'milestone_reached', {
// Standard parameters
accountId: 'acct_abc123',
milestoneId: 'first_report',
milestoneName: 'First report created',
// User data
email: 'jane@example.com',
phone: '+15551234567',
firstName: 'Jane',
lastName: 'Smith',
// Custom data
milestoneValue: 100,
milestoneCategory: 'usage'
});
user_inactive payload:
window._upstack('track', 'user_inactive', {
// Standard parameters
accountId: 'acct_abc123',
userId: 'user_789',
inactiveDays: 30,
// User data
email: 'jane@example.com',
phone: '+15551234567',
firstName: 'Jane',
lastName: 'Smith',
// Custom data
lastActiveDate: '2026-10-05',
lastFeatureUsed: 'reports'
});
Cancellation
| Name | Type | Description |
|---|---|---|
cancelReason | string | Why they cancelled. |
cancelFeedback | string | Feedback they gave when cancelling. |
cancelledAt | string | When the cancellation was requested, ISO 8601. |
subscription_cancelled payload:
window._upstack('track', 'subscription_cancelled', {
// Standard parameters
accountId: 'acct_abc123',
subscriptionId: 'sub_def456',
planId: 'plan_pro_monthly',
mrr: 9900,
cancelReason: 'too_expensive',
cancelFeedback: 'Over budget this year',
cancelledAt: '2026-11-04T15:00:00Z',
// User data
email: 'jane@example.com',
phone: '+15551234567',
firstName: 'Jane',
lastName: 'Smith',
// Custom data
cancelAtPeriodEnd: true,
retentionOfferShown: true
});