Example
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'
});
Standard parameters
| Name | Type | Required | Example value | Description |
|---|---|---|---|---|
accountId | string | Yes | acct_abc123 | Your account or organization ID. |
userId | string | Yes | user_789 | Your ID for this user. |
accountName | string | No | Example Co | Account or organization name. |
accountCreatedAt | string | No | 2026-11-01T10:00:00Z | When the account was created, ISO 8601. |
planId | string | No | plan_pro_monthly | Your plan ID. |
planName | string | No | Pro Plan | Plan display name. |
User data
* Required if you have it.
Custom data
Examples for this event. See how custom data works.| Name | Type | Example value | Description |
|---|---|---|---|
referralCode | string | FRIEND20 | The referral code used. |
companySize | string | 11-50 | Employee range of the company. |