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

# What analytics should I add to an app I built with Cursor or Lovable?

> Let the agent that built your app add analytics too: it adds the tag, checks the setup, and after each deploy asks whether anything broke.

Updated: 2026-12-01

Let the agent that built the app add it. Ask "Add nextanalytica to my site": the agent calls `get_tag`, adds the tag and checks it with `check_setup`. After each deploy, ask "Did I break anything?": `check_release` compares the new release with the last one for new errors, failing requests and slower pages.

## How do you do it?

1. Connect your agent: in Claude Code, `claude mcp add --transport http nextanalytica https://mcp.nextanalytica.app/mcp`, then `/mcp` to sign in.
2. Ask "Add nextanalytica to my site".
3. Open the app once, so `check_setup` sees it.
4. After a deploy, ask "Did I break anything?".

## What can you ask your agent?

- "What errors did the browser show while I tested the app locally?"
- "I deployed. Did I break anything?"

## Next steps

- [Let your agent set it up](/docs/model-context-protocol/agent-setup)
- [Check your work](/docs/model-context-protocol/check-your-work)

Canonical address: https://nextanalytica.app/docs/answers/analytics-for-apps-built-with-ai
