# Analytics That Help You Make Decisions

> Track user behavior, system performance, and business metrics in real-time with automatic instrumentation. Build custom dashboards and get AI-powered insights without data engineering teams.

Canonical: https://analytics.do/

## In code

```ts
import { Analytics } from 'analytics.do'

// Track events and react to anomalies
Analytics.track.PageView({ path: '/pricing', userId: user.id })
Analytics.every.minute($ => $.Dashboard.update.Metrics())

on.Metric.Anomaly.detected($ => {
  const analysis = $.AI.analyze.Anomaly({ metric: $.data.metric })
  $.Slack.send.Alert({ text: analysis.summary })
})

Analytics`analyze conversion funnel and identify drop-off points`
```

## Frequently asked questions

### What metrics does analytics.do track automatically?

Automatic tracking for web, mobile, and backend with built-in metrics including user retention, conversion funnels, revenue, LTV, and churn—just drop in the SDK.

### How fast can I query billions of events?

Sub-100ms p95 query latency using ClickHouse with automatic partitioning, smart indexes, edge caching, and 1M+ events/second ingestion with <5s query availability.

### How does AI-powered anomaly detection work?

ML models learn metric patterns and detect statistical anomalies, then perform root cause analysis with natural language explanations and <5% false positive rate after training.

### What about data privacy and compliance?

GDPR, CCPA, SOC 2 Type II, and HIPAA compliant by default with automatic PII detection, consent management, one-click data deletion, and data residency controls.

### Can I use SQL for custom analysis?

Yes, full PostgreSQL-compatible SQL with extensions, custom dashboards, scheduled reports, CSV/Parquet exports, and BI tool integration via JDBC/ODBC.

## Part of Platform.do

analytics.do is one of the primitives of Platform.do, in the Insight layer (measure, test and trace). Every .do shares one grammar, Business-as-Code, and one SDK.

- What is Business-as-Code? https://platform.do/business-as-code
- Platform.do: https://platform.do/
- Docs: https://docs.platform.do
