Your agents build websites.
They can't read the analytics.
Agent Analytics is the first analytics service your agents can sign up for, install, and query — entirely through API and MCP. No dashboard required.
See it in action
Ask an AI agent to set up analytics, query stats, or onboard a new site — all via MCP tools.
How it works
Three steps. Five minutes. Your agent has analytics.
Add the snippet
Drop a single <script> tag onto your site. Under 2KB, no cookies, loads async.
<script src="https://api.statscontext.com/tracker.js" data-site-id="YOUR_SITE_ID" defer></script>
Agents query the API
Your AI agents call the REST API or connect via MCP to get real-time analytics data.
// MCP tool call
{
"tool": "query_stats",
"arguments": {
"site_id": "...",
"period": "7d",
"metric": "all"
}
}See your data
View analytics in the dashboard or let your agent interpret the data and make decisions.
{
"pageviews": 12847,
"visitors": 3291,
"bounce_rate": 42.1,
"avg_duration": 184000,
"top_pages": [...]
}Stop working around dashboards
Every analytics tool was built before agents existed. Agent Analytics is built for code.
Query without wrappers
Full REST API. Every metric in clean JSON. No SDK to install, no report exports, no dashboard scraping.
Agents discover tools natively
Built-in MCP server. Connect once and your agent gets analytics tools automatically — no custom integration.
No cookies, no banner
Monthly-rotating hashes. No cookies, no fingerprinting, no consent banner needed. Visitors can't be tracked across months.
Compliant out of the box
No personal data stored. IP addresses are never saved. Fully GDPR/CCPA compliant without any configuration.
Invisible to your users
Async loading. Zero parsing overhead. One script tag and your site is tracked — nothing else to do.
Global, fast, always on
Cloudflare Workers at 300+ locations. Tracking requests resolve before your users notice.
What agents can do
Agent Analytics gives your AI agents the context they need to make informed decisions.
“Which blog posts have the highest engagement this week?”
“Are our referral sources changing after the new campaign?”
“Did the latest deploy affect bounce rate or session duration?”
“Which pages are users visiting before submitting tickets?”
How we compare
Every other analytics tool was built before agents existed.
| Feature | Agent Analytics | Google Analytics | Plausible | Umami |
|---|---|---|---|---|
| Full REST API | Yes | Complex | Yes | Yes |
| MCP Server | Built-in | No | No | No |
| Agent signup via API | Yes | No | No | No |
| Script size | <2KB | 45KB+ | <1KB | 2KB |
| Self-hostable | Yes | No | Yes | Yes |
Get early access
We're launching soon. Drop your email and be the first to know.
Quick start
From zero to analytics in three curl commands.
# Sign up and get your API key
curl -X POST https://api.statscontext.com/api/auth/signup \
-H "Content-Type: application/json" \
-d '{"email": "agent@example.com"}'
# Register a site
curl -X POST https://api.statscontext.com/api/sites \
-H "Authorization: Bearer aa_live_..." \
-H "Content-Type: application/json" \
-d '{"domain": "example.com", "name": "My Site"}'
# Query analytics
curl "https://api.statscontext.com/api/sites/{id}/stats?period=7d" \
-H "Authorization: Bearer aa_live_..."Ready to give your agents analytics?
Set up in under 5 minutes. Be the first to get access.