Staats

Cookieless web analytics your coding agent reads and remembers. Traffic, referrers and funnels over MCP, plus deploy-tagged before/after comparisons, stored site context, and proactive anomaly surfacing. Remote server, no install: one key covers every site on an account.

Documentation

Getting Started

From zero to live answers in your agent's chat in under two minutes.

1. Create your account

Sign in at staats.ai with Google or GitHub. Every account starts on the free tier: 10,000 monthly events, 1 site, and all MCP tools enabled.

2. Connect your agent

In your account view under Connect your agent, grab the one-line connection snippet for your client (Claude Code, Cursor, Windsurf, Codex, or a raw URL). Your account key is embedded in the URL, so there are no headers or env variables to configure: paste the command and the connection is active.

One connection covers your entire account: every current project and any future ones you add. For manual configuration, see the MCP Server reference.

3. Add the script tag

Create a site in the dashboard (or ask your agent to run create_site), then drop the site's script tag into your page head:

<script defer data-site="YOUR_SITE_CODE" src="https://www.staats.ai/s.js"></script>

The script is ~1.5 KB, sets no cookies, stores zero PII, and requires no GDPR cookie banner. Pageviews begin streaming immediately, including client-side route changes in single-page apps.

Two things worth knowing up front: leave the snippet off your 404 page, and exclude your own visits so your browsing does not skew your own numbers.

4. Ask your first question

That's the entire setup. In your agent's chat, try:

  • "How's my site doing this week?"
  • "Where did yesterday's traffic spike come from?"
  • "Track clicks on the new signup button" (the agent adds a data-track attribute; see Tracking)
  • "Annotate this deploy with the current commit and test back in 7 days" (see Agent Workflows)