JavaScript
Properties
When to Fire
- When user clicks sign out/logout button
- When session expires
- When user is forced out due to security event
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Track when a user signs out of the application.
window._upstack('track', 'signed_out', {
userId: 'usr_xyz789',
accountId: 'acct_abc123',
sessionDuration: 3600,
signOutReason: 'user_initiated'
});
| Property | Type | Required | Description |
|---|---|---|---|
| userId | string | Yes | User identifier |
| accountId | string | No | Account identifier |
| sessionDuration | number | No | Session length in seconds |
| signOutReason | string | No | Reason for sign out (user_initiated, session_expired, forced) |
Was this page helpful?