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

# How do I see what a user did before they upgraded?

> Ask your agent for one person's visits and events: it works for people who agreed to analytics or whom your site identified.

Updated: 2026-12-01

Ask your agent "What did the user with id 4821 do before they upgraded?": nextanalytica's `get_person` returns one person's properties, ids, groups and visits. It works for people who agreed to analytics or whom your site identified with `identify`.

## How do you do it?

1. Call `identify` with your own user id after sign-in.
2. Connect your agent: in Claude Code, `claude mcp add --transport http nextanalytica https://mcp.nextanalytica.app/mcp`, then `/mcp` to sign in.
3. Ask about a user by your id.

## What can you ask your agent?

- "What did the user with id 4821 do before they upgraded?"

## Next steps

- [Identify people](/docs/tracking/identify-people)

Canonical address: https://nextanalytica.app/docs/answers/what-a-user-did-before-upgrading
