Self-host Traks
v0.1.45Privacy-friendly web analytics on Cloudflare
- Stars
- 331
- Requires
- Cloudflare D1, Cloudflare Durable Objects, Cloudflare KV, Cloudflare Pipelines, Cloudflare R2, Cloudflare R2 Data Catalog (Apache Iceberg), Cloudflare R2 SQL, Cloudflare Workers Paid plan
What is Traks?
Traks is a self-hosted web analytics platform deployed into your own Cloudflare account. A cookieless 1.5KB tracker feeds a real-time dashboard showing live visitor counts, pageviews, sources, locations, devices, custom events, goals, funnels, and segments. An MCP server lets AI agents query analytics, while bot and crawler detection runs separately. Multi-site workspaces support team invitations. Data remains in your Cloudflare account — events go to R2 with Apache Iceberg and are queried via R2 SQL. Authentication uses Better Auth on D1 (email/password only). A wizard at traks.dev/deploy provisions Workers, D1, KV, R2 bucket with Data Catalog, Pipelines stream and Iceberg sink in about 2 minutes. Updates and removal are one-click. Costs are your Cloudflare bill only (~$5/mo base for most sites). Open source under MIT license.
Should you self-host Traks?
Traks scores 49/100 on selfhost.directory (how scoring works) and ranks #12 of 27 in Analytics. It has 331 GitHub stars.
It shipped 11 stable releases in the past year. The latest, v0.1.45, came out on 28 October 2026.
Setup is moderate: expect some configuration beyond a single command. It is MIT-licensed and written mostly in Typescript.
Its closest alternative on selfhost.directory is Litlyx (57/100, 1 748 stars). It scores higher overall, so compare the two before you pick. See Traks vs Litlyx side by side.
Features
- 404 capture
- Automatic outbound click and download tracking
- Bot and crawler analytics
- Cookieless tracking
- Custom Events
- Filters and segments
- Goals and funnels
- MCP server for AI agents
- Multi-site from day one
- Plausible migration
- Privacy-first (GDPR/ePrivacy/PECR compliant)
- Real-Time Analytics
- Self-hosted on Cloudflare
- WebMCP agent tool metering
- Workspaces and teams
Traks README
More in Analytics
TrenchTrench is a self-hosted, open-source analytics infrastructure built on ClickHouse and Kafka for tracking events at scale, compliant with Segment API and GDPR/PECR.
UmamiOpen-source, self-hosted web and product analytics: traffic, events, funnels, replays and heatmaps without cookies, backed by PostgreSQL and shipped as a Docker image.
VouxA self-hosted, open-source hit counter for blogs and sites with a dashboard, two counting modes, script and SVG embeds, user roles, and JSON data export.
wrapperrSelf-hosted, open-source web app that turns Plex viewing history into an interactive Wrapped-style recap via the Tautulli API, with Plex login and admin config.
wundergraphOpen-source, self-hosted lifecycle manager for federated GraphQL APIs: schema registry, breaking-change checks, router, usage analytics and tracing.
your_letterboxdSelf-hosted, open-source dashboard that syncs your Letterboxd profile and enriches it with TMDB metadata for movie watching insights and visualizations.
Your SpotifyOpen-source, self-hosted Spotify tracking dashboard: a server polls the Spotify API for your plays while a web app lets you explore your listening statistics.
εxodusεxodus is a self-hosted, open-source platform that analyzes Android apps to detect embedded trackers, analytics, and advertising libraries.
am-i-exposedam-i-exposed is a self-hosted, open-source Bitcoin privacy scanner running 34 client-side heuristics with Boltzmann entropy via WebAssembly.
Apache DevLakeSelf-hosted, open-source dev data platform that unifies fragmented DevOps tool data into one schema and serves DORA and productivity dashboards through Grafana.
Apache DruidApache Druid: a high performance real-time analytics database.
Apache PinotOpen-source distributed OLAP database for user-facing apps and AI agents. Provides sub-second queries on fresh streaming data with high concurrency.
0 comments