> AI agents: this is one page of nextanalytica's docs. The full index for agents: https://nextanalytica.app/llms.txt

# Identify people

> Name signed-in people with identify, so their visits on every device make one profile your agent can read. It works only after the visitor's consent.

Updated: 2026-11-17

When people sign in on your site, `identify` tells the tag who they are, so their visits on every device make one profile your agent can read. Without it, the same person on a laptop and a phone is two visitors.

> **Note:** `identify` works only after the visitor's consent. Before it, the call does nothing.

## On sign-in

```js
window.nextanalytica.identify("u_4821", { plan: "team", company: "Acme" });
```

Use your own user id, never an email. Add up to **20** properties that help you answer questions later, such as `plan`.

## On sign-out

```js
window.nextanalytica.reset();
```

The next person on the same browser starts fresh.

## How do you add groups and properties?

- `group("company", "acme", { seats: 12 })` puts the person in a company or workspace.
- `setPersonProperties({ plan: "business" })` updates the person without an event.

## How do you erase a person?

When a visitor asks to be forgotten, an owner or admin asks their agent to erase them: `forget_person` removes the person and every id they had, for good.

Canonical address: https://nextanalytica.app/docs/tracking/identify-people
