Skip to content
Plaintrace
Start free

For developers

Analytics you can read, proxy and script

An MIT-licensed tracker and server SDK, a typed REST API with an OpenAPI schema, a CLI that installs itself, and an MCP server for your editor.

~/acme-web

$ npx @plaintrace/cli init --site 01a1bf01 --endpoint https://collect.plaintrace.dev --yes

Next.js (App Router) → app/layout.tsx

+import Script from 'next/script'

+ <Script src="https://collect.plaintrace.dev/v/0.2.1/t.js" integrity="sha384-…" crossOrigin="anonymous" data-site="01a1bf01" strategy="afterInteractive" />

✓ Updated app/layout.tsx. Deploy, open your site, and the dashboard shows the first visit within seconds.

Pieces that fit your stack

npm
import { init, track } from '@plaintrace/browser'

init({ site: '<site id>', endpoint: 'https://collect.plaintrace.dev' })
track('signup', { plan: 'pro' })
server
import { createClient } from '@plaintrace/server'

const analytics = createClient({ key: process.env.ANALYTICS_KEY!, endpoint: 'https://collect.plaintrace.dev' })
const res = await analytics.handle(request, { waitUntil })
if (res) return res

Know what your numbers are worth.

Free for two sites and 100,000 events a month. Every feature included, no card needed.