> ## 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.

# user_inactive Event

> Track when a user becomes inactive after a period of no engagement.

Fires when a user becomes inactive after a period of no engagement. Use this event to trigger re-engagement campaigns and identify at-risk accounts.

## JavaScript

```javascript theme={null}
window._upstack('track', 'user_inactive', {
  userId: 'usr_xyz789',
  accountId: 'acct_abc123',
  userEmail: 'user@acme.com',
  lastActiveDate: '2026-01-15T10:30:00.000Z',
  inactiveDays: 30
});
```

## Properties

| Property       | Type   | Required | Description                 |
| -------------- | ------ | -------- | --------------------------- |
| userId         | string | Yes      | User identifier             |
| accountId      | string | Yes      | Account identifier          |
| userEmail      | string | No       | User email address          |
| lastActiveDate | string | No       | ISO 8601 last activity date |
| inactiveDays   | number | No       | Days since last activity    |

## When to Fire

* When user hasn't logged in for defined period (e.g., 30 days)
* When automated inactivity check triggers
* When engagement score drops below threshold
