Example
window._upstack('track', 'addon_cancelled', {
// Standard parameters
accountId: 'acct_abc123',
addonId: 'addon_sso',
subscriptionId: 'sub_def456',
addonName: 'SSO',
cancelReason: 'too_expensive',
// User data
email: 'jane@example.com',
phone: '+15551234567',
firstName: 'Jane',
lastName: 'Smith',
// Custom data
addonMonths: 6,
cancelledBy: 'customer'
});
Standard parameters
| Name | Type | Required | Example value | Description |
|---|---|---|---|---|
accountId | string | Yes | acct_abc123 | Your account or organization ID. |
addonId | string | Yes | addon_sso | Your add-on ID. |
subscriptionId | string | No | sub_def456 | Your subscription ID. |
addonName | string | No | SSO | Add-on display name. |
cancelReason | string | No | too_expensive | Why they cancelled. |
User data
* Required if you have it.
Custom data
Examples for this event. See how custom data works.| Name | Type | Example value | Description |
|---|---|---|---|
addonMonths | number | 6 | How many months the add-on was active. |
cancelledBy | string | customer | Who cancelled it. |