Sign inGet started
Tracking

Identify people

View as MarkdownOpen in ChatGPTOpen in Claude
Connect your agent
Add to CursorAdd to VS Code

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

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.

On sign-in

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

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.