> ## Documentation Index
> Fetch the complete documentation index at: https://docs.upstackdata.com/llms.txt
> Use this file to discover all available pages before exploring further.

# signed_out Event

> Track when a user signs out of the application.

Fires when a user signs out of the application. Use this event to understand session patterns and user behavior.

## JavaScript

```javascript theme={null}
window._upstack('track', 'signed_out', {
  userId: 'usr_xyz789',
  accountId: 'acct_abc123',
  sessionDuration: 3600,
  signOutReason: 'user_initiated'
});
```

## Properties

| 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`) |

## When to Fire

* When user clicks sign out/logout button
* When session expires
* When user is forced out due to security event
