Swetrix is a free, open source web & product analytics project written in TypeScript and released under AGPL-3.0. It has 1,200 GitHub stars, 74 forks and 14 open issues, and was last pushed 5 hours ago. On this registry it ranks #16 of 25 tracked projects in Web & Product Analytics, with 5 head-to-head comparisons available. It gained 4 stars over the last 6 tracked days.

What is Swetrix?

Swetrix is a cookieless, GDPR-compliant, open-source web analytics platform for teams that want privacy-first traffic metrics plus error tracking, performance monitoring, session replays, funnels and custom events in one hosted or self-hosted product.

What it is

Swetrix is an analytics platform written in TypeScript and released under the AGPL-3.0 licence. It has been open source since 2021, is bootstrapped and funded entirely by subscribers, and is made in the United Kingdom and hosted on Hetzner in Germany. The core promise is privacy by design: no cookies, no consent banner, no cross-device tracking, and anonymised data throughout, so a site can measure traffic without carrying the compliance overhead that cookie-based tools impose.

The concrete problem it solves is tool sprawl in web measurement. Swetrix replaces Google Analytics as the traffic analytics layer, and then absorbs several adjacent tools: client-side error tracking, real-user performance monitoring, session replays, funnels and custom events all live in the same dashboard rather than in separate services. It is positioned explicitly as a privacy-respecting alternative to Google Analytics, with the same metrics that matter — top pages, geolocation with map view, devices, traffic sources and UTM campaigns — delivered in a real-time dashboard.

Key capabilities

  • Cookieless, GDPR-compliant tracking through a lightweight script snippet, with no consent banner required.
  • Custom events and properties for tracking conversions, sales or other key actions with user-defined semantics.
  • Funnels that visualise drop-offs and conversion rates across a defined sequence of steps.
  • Performance monitoring built on real-user metrics including TTFB, DNS, TLS and render timings.
  • Error tracking that captures client-side errors with details and aggregated views.
  • Data portability through CSV export and a documented developer API at the statistics API docs.
  • Sharing and teams: public or password-protected dashboards, teammate invitations with roles, and organisation-level access management.
  • Additional features include alerts and notifications, feature flags, A/B experiments, revenue analytics, user profiles, and Ask AI.

Who uses it and how

  • Self-hosters run the Swetrix Community Edition on Docker, deploying the API and UI themselves and connecting a MySQL, ClickHouse and Redis stack.
  • Teams migrating off Google Analytics use it to keep the traffic metrics they rely on while dropping cookies, consent banners and data sampling.
  • Agencies and product teams publish public or password-protected dashboards to share campaign and traffic results with clients or stakeholders without granting account access.
  • Growth and conversion teams combine funnels, custom events and feature flags or A/B experiments to measure why visitors drop off rather than only how many arrived.
  • Cloud customers on Swetrix Cloud get network intelligence, session replays, revenue analytics and Ask AI on top of the community feature set.

Getting started

Two paths are documented: start free on Swetrix Cloud, a free trial followed by plans from $19 per month with EU hosting, or self-host the Swetrix Community Edition by deploying the API and UI with Docker.

How it compares

Swetrix and Plausible are both privacy-first and open source, and the stated difference is scope: Swetrix bundles error tracking, performance monitoring and session replays into the same product, where Plausible does not carry those. Against Google Analytics 4, Swetrix is cookieless and needs no consent banner, is EU-hosted and GDPR-compliant rather than sending data to the United States, is open source under AGPL-3.0, and does not sample data at scale.

When to use it — and when not to

Choose Swetrix when cookieless measurement, EU data residency and a single dashboard for traffic, errors and performance outweigh the cost of running infrastructure. A self-hoster must operate the API and UI plus MySQL, ClickHouse and Redis, which is a real operational burden for a small team. Session replays, network intelligence, revenue analytics and Ask AI are Cloud-only, so anyone who needs those features should not expect the Community Edition to provide them, and anyone unwilling to run a multi-service database stack should take the hosted option instead.

project readme (upstream, from github) — read inline

Swetrix

Swetrix

Privacy-first, open-source web analytics — with error tracking, session replays and performance monitoring built in.
See the live demo »

Website · Docs · Issues · Discord · Twitter

Try Swetrix Cloud Self-host with Docker GitHub stars License

Swetrix dashboard

ℹ️ What is Swetrix?

Swetrix is a cookieless, GDPR-compliant analytics platform — a privacy-respecting alternative to Google Analytics. No cookies, no consent banner, no cross-device tracking, all data anonymised. It's the only thing on the page and the dashboard is fast and real-time.

It goes beyond pageviews: alongside traffic stats you get error tracking, performance monitoring, session replays, funnels and custom events — so you can replace several tools with one.

Open source since 2021, bootstrapped, and funded entirely by our subscribers. Made in the 🇬🇧 UK, hosted on Hetzner in 🇩🇪 Germany.

👉 Try it free on Swetrix Cloud or self-host with Docker.

✨ Features

  • Cookieless & privacy-first — GDPR-compliant by design, no cookies, anonymised data. (Data Policy)
  • Lightweight script — a small tracking snippet and a snappy real-time dashboard.
  • The metrics that matter — top pages, geolocation with map view, devices, traffic sources and UTM campaigns.
  • Network intelligence (Cloud) — break traffic down by ISP, organisation, usage type (residential / business / hosting / cellular) and connection type to spot bot and datacenter traffic.
  • Custom events & properties — track conversions, sales or any key action with your own semantics.
  • Sessions & user flows — understand journeys and behaviour across your site.
  • Funnels — visualise drop-offs and improve conversion rates.
  • Performance monitoring — real-user metrics (TTFB, DNS, TLS, render) to keep pages fast.
  • Error tracking — capture client-side errors with details and aggregated views.
  • Session replays (Cloud) — replay sessions to see exactly where visitors get stuck.
  • Sharing & teams — public or password-protected dashboards; invite teammates with roles, or manage access with organisations.
  • Data portability — export to CSV and access everything via the developer API.
  • More — alerts & notifications, feature flags, A/B experiments, revenue analytics and Ask AI (Cloud).

Swetrix vs Google Analytics vs Plausible

Swetrix and Plausible are both privacy-first and open source; the main difference is scope — Swetrix bundles error tracking, performance monitoring and session replays into the same product.

Swetrix Google Analytics 4 Plausible
Cookieless, no consent banner ❌ cookies + consent
GDPR-compliant, EU-hosted ⚠️ data sent to US
Open source (AGPLv3)
Self-hostable
No data sampling ❌ samples at scale
Real-time dashboard ⚠️ limited
Funnels ✅ (paid plans)
Custom events
Performance monitoring
Error tracking
User profiles / identified users
Feature flags & A/B experiments
Session replays ✅ Cloud
Revenue / MRR analytics ✅ Cloud ⚠️ ecommerce setup
Ask AI / chat with your data ✅ Cloud

🚀 Get started

Swetrix Cloud (recommended)

We handle hosting, maintenance, backups and a worldwide CDN — you keep full ownership of your data and can export or delete it anytime. GDPR-compliant and hosted in the EU.

Your subscription directly funds maintenance and development of the open-source project.

Self-hosting

Prefer to run it yourself? Swetrix Community Edition (CE) ships the same core analytics: privacy-friendly traffic stats, custom events, sessions, funnels, performance and error tracking. Deploy the API and UI with Docker, connect MySQL / ClickHouse / Redis, and you're live.

Cloud vs Community Edition
Swetrix Cloud Swetrix Community Edition
Infrastructure management ✅ Set up tracking in minutes. We manage server maintenance, upgrades and security for you. ⚠️ You manage servers, installs, upgrades, scaling and backups.
Core analytics (traffic, events, sessions, funnels, performance, errors) ✅ Included ✅ Included
Session replays ✅ Included ⚠️ Cloud only
Advanced features (Revenue, Experiments, AI) ✅ Included

readme truncated — read the full docs on github

Frequently asked questions

Is Swetrix free to use?

Swetrix is open source under the AGPL-3.0 licence. There is no licence fee and no seat count — you can self-host it or, where the project offers one, pay a vendor for a managed version instead.

What does Swetrix do?

Cookieless, privacy-first web analytics without the complexity

What is Swetrix written in?

Swetrix is primarily written in TypeScript. Its source is publicly available at https://github.com/swetrix/swetrix-api, and it has 1,200 GitHub stars.