Example
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
});
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. |
featureId | string | Yes | feat_reports | Your feature ID. |
featureName | string | No | Reports | Feature 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 |
|---|---|---|---|
featureCategory | string | reporting | The feature group. |
usageCount | number | 12 | How many times the feature has been used. |