# User identification

Attach a name, email and your own user id to a visitor with the identify call, so the live view, journeys and goal alerts show who they are.

Put a name and email on a visitor, usually right after they sign up or sign in. Their past and future visits stay attached.

```
window.supr("identify", {
  user_id: "usr_123",   // your own id (optional)
  email: "ada@example.com",
  name: "Ada Lovelace",
});
```

- Identified visitors show their name and avatar in the live view, the User panel, their [journey](https://supranalytics.app/docs/visitor-journeys.md) and the [recordings](https://supranalytics.app/docs/session-recordings.md) list.
- [Retention](https://supranalytics.app/docs/retention.md) counts every browser identified with the same `user_id` as one person, on any device.
- Payments without a visitor id are matched to the visitor with the same email.
- [Goal alerts](https://supranalytics.app/docs/alerts.md) can include `{{visitor.name}}` and `{{visitor.email}}`.
- Calling it again replaces the values.
- Names and emails are never shown on a [public dashboard](https://supranalytics.app/docs/public-dashboards.md).

Payments also name visitors: the email and name from your payment provider are added to the visitor when they don't have one.

To send goals for a known user from your server, use their visitor id with the [goals API](https://supranalytics.app/docs/api/goals.md) at `https://supranalytics.app/api/v1/goals`.

---

This page on the web: https://supranalytics.app/docs/user-identification
Every documentation page: https://supranalytics.app/docs.md
