Features/Analytics

Analytics

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.

What it does

  • Privacy-first — no cookies, no fingerprinting, IP used only for geolocation then discarded
  • Sutrena-hosted pages auto-track server-side — zero client JavaScript needed
  • External sites: one script tag (~1.2 KB), smallest in the industry
  • Metrics: page views, unique visitors, visits, bounce rate
  • Breakdowns by URL, referrer, country, device, browser, OS
  • Time series by day, week, or month
  • Funnel analysis — define 2-5 steps and see drop-off at each stage
  • Retention analysis — cohort-based, configurable acquisition and return events
  • Custom event tracking — track signups, purchases, or any action
  • Bot filtering — known crawlers filtered out to prevent quota waste
  • Period comparison — compare current vs previous period for any metric

How it works

# 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.

What it does not do

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.

FAQ

Do I need to add a script to my Sutrena-hosted pages?

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.

How do I track an external site?

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.

What are the event limits?

Free: 5,000 events/month. Pro: 500,000. Scale: unlimited. Events reset monthly. A page view counts as one event. Custom events also count.

How long is data retained?

Free: 90 days. Pro: 365 days. Scale: 730 days (2 years). Older events are pruned automatically.

Can my AI agent query analytics?

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.

What is Sutrena?

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

Get started in two API calls

1. Get a trial key (no auth, no signup)

curl -X POST https://sutrena.com/api/trial

2. 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>"}'

Ready to build?

Get a trial API key instantly with no signup, or create an account for the full experience.

. That is it. ~1.2 KB, no cookies, supports SPAs."}},{"@type":"Question","name":"What are the event limits?","acceptedAnswer":{"@type":"Answer","text":"Free: 5,000 events/month. Pro: 500,000. Scale: unlimited. Events reset monthly. A page view counts as one event. Custom events also count."}},{"@type":"Question","name":"How long is data retained?","acceptedAnswer":{"@type":"Answer","text":"Free: 90 days. Pro: 365 days. Scale: 730 days (2 years). Older events are pruned automatically."}},{"@type":"Question","name":"Can my AI agent query analytics?","acceptedAnswer":{"@type":"Answer","text":"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."}}]},{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://sutrena.com"},{"@type":"ListItem","position":2,"name":"Features","item":"https://sutrena.com/features"},{"@type":"ListItem","position":3,"name":"Analytics","item":"https://sutrena.com/features/analytics"}]}]
Analytics — Privacy-First Web Analytics via API | Sutrena | Sutrena