Privacy-first web analytics. No cookies. Your agent queries the data.
Updated March 2026
Track page views, unique visitors, bounce rates, and custom events without cookies, without PII, and without third-party scripts on Sutrena-hosted pages. External sites get a ~1.2 KB tracking script. Your agent queries metrics, builds funnels, and analyzes retention through three composable primitives. No fixed dashboards — the agent asks whatever questions the data can answer.
# Query page views for the last 30 days, broken down by country
curl "https://sutrena.com/api/analytics/query?metric=page_views&period=30d&breakdownBy=country" \
-H "Authorization: Bearer YOUR_KEY"
# Track a custom event
curl -X POST https://sutrena.com/api/collect \
-H "Content-Type: application/json" \
-d '{
"siteId": "sa_xxx",
"name": "signup",
"url": "https://mysite.com/pricing",
"properties": { "plan": "pro" }
}'
# Analyze a conversion funnel
curl -X POST https://sutrena.com/api/analytics/funnel \
-H "Authorization: Bearer YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{
"steps": [
{ "event": "pageview", "filters": { "url": "/pricing" } },
{ "event": "signup" },
{ "event": "purchase" }
],
"period": "30d"
}'Three composable query primitives: metrics with breakdowns, multi-step funnels, and cohort retention. Your agent asks the questions, Sutrena returns the numbers.
This is not Google Analytics or Mixpanel. No session replay, no heatmaps, no user-level tracking. No real-time dashboard — data has a few seconds of delay. If you need deep product analytics with user journeys and A/B testing, use PostHog or Amplitude. If you need privacy-respecting traffic metrics that your AI agent can query, this is it.
No. Sutrena-hosted pages track page views automatically on the server side. No client JavaScript, no script tag. Just create an analytics site linked to your subdomain and it starts collecting data.
Create an analytics site, then add one script tag: <script defer data-site="sa_xxx" src="https://sutrena.com/a.js"></script>. That is it. ~1.2 KB, no cookies, supports SPAs.
Free: 5,000 events/month. Pro: 500,000. Scale: unlimited. Events reset monthly. A page view counts as one event. Custom events also count.
Free: 90 days. Pro: 365 days. Scale: 730 days (2 years). Older events are pruned automatically.
Yes. Three MCP tools: sutrena_analytics_query for metrics and breakdowns, sutrena_analytics_funnel for conversion analysis, sutrena_analytics_retention for cohort retention. The agent can ask any question the data supports.
Sutrena is the web runtime for AI agents. Forms, Pages, Dashboards, Analytics, Webhooks, Automations, Emails — all through 75 MCP tools and one REST API. Your agent creates web artifacts, humans interact with them, and your agent gets the data back. Use any one feature or all of them together.
Pages
Deploy HTML instantly
Forms
Collect structured data
Dashboards
Visualize with 7 widget types
Analytics
Privacy-first, no cookies
Webhooks
Slack, Discord, Telegram
1. Get a trial key (no auth, no signup)
curl -X POST https://sutrena.com/api/trial2. Create anything — a page, form, dashboard, or analytics site
# Create a form with a dashboard
curl -X POST https://sutrena.com/api/forms \
-H "Authorization: Bearer st_trial_xxx" \
-H "Content-Type: application/json" \
-d '{"workflowId": "waitlist", "createDashboard": true}'
# Or deploy a page
curl -X POST https://sutrena.com/api/pages \
-H "Authorization: Bearer st_trial_xxx" \
-H "Content-Type: application/json" \
-d '{"slug": "index", "title": "My Site", "html": "<h1>Live</h1>"}'Get a trial API key instantly with no signup, or create an account for the full experience.