Skip to content

Swetrix

Cookieless web analytics with error tracking and performance monitoring, self-hostable

Copyleft (OSI) · AGPL-3.0 EU-based

Listed by , founder & editor

73

Health

Active

Overview

Stars

1,227

Last commit

9 days ago

Nov 2026

Repository age

5 years

since Mar 2021

Latest version

v5.5.4

Nov 2026

Contributors

–

2 active in 90 days

Releases

25

last 12 months

Language

TypeScript

Swetrix is a web analytics platform that uses no cookies and anonymizes its data, so it needs no consent banner. It shows top pages, geolocation on a map, devices, traffic sources and UTM campaigns in a real-time dashboard, with no data sampling.

It also covers areas that analytics tools usually leave to others: error tracking for client-side errors, real-user performance metrics such as TTFB, DNS, TLS and render time, funnels, custom events, sessions and user flows. Dashboards can be public or password-protected, teams get roles, and you can export to CSV or use the developer API. Session replays, network intelligence and Ask AI are cloud-only.

The project is written in TypeScript and licensed AGPL-3.0. It has been open source since 2021. You can self-host it with Docker, using ClickHouse, MySQL and Redis, or use the hosted cloud. It is a direct alternative to Google Analytics, and a comparable one to Plausible.

Who it's for

Site owners avoiding cookie consent banners

Cookieless, anonymized tracking removes the need for a banner.

Skip if: You need cross-device user tracking.

Small dev teams

Error tracking and performance monitoring sit next to traffic stats in one tool.

Skip if: You need mobile app SDKs or cohort retention analysis.

Self-hosters with Docker experience

The AGPL code runs on your own servers, so the data stays with you.

Skip if: You want session replays, which are cloud only.

The problem it solves

Google Analytics relies on cookies and consent banners, and it samples data at scale. Swetrix gives you traffic, error and performance data without cookies, and you can host it yourself.

Strengths

  • No cookies and anonymized data, so no consent banner
  • No data sampling and a real-time dashboard
  • Error tracking, performance metrics and funnels in one product
  • CSV export and a developer API
  • Frequent releases: 25 in the last year

Trade-offs

  • Session replays and network intelligence are cloud only
  • No mobile app SDKs or cohort retention analysis
  • AGPL-3.0 carries network copyleft obligations
  • Only 2 contributors in the last 90 days

Swetrix replaces

Self-host Swetrix

Self-hostable
Yes
Hosted plan
From $17/month · pricing

In the community

Frequently asked questions

Is Swetrix free?

You can self-host it for free under AGPL-3.0. The hosted cloud has paid plans starting at $17 per month.

Does it need a cookie banner?

No. It uses no cookies and anonymizes all data.

Can I self-host it?

Yes, with Docker. Some features, such as session replays, are available only in the cloud.

How is it licensed?

AGPL-3.0, so modified versions you offer as a network service must share their source.

Other Google Analytics alternatives

Compare all 12 Google Analytics alternatives →

Similar tools in Analytics platforms

Trench

Analytics platforms

Self-hosted event tracking on Kafka and ClickHouse for teams building their own analytics

1.7k 66 8 months ago Dormant MIT

Your Spotify

Analytics platforms

Self-hosted dashboard that tracks and charts your Spotify listening history

4.6k 220 5 months ago Slowing GPL-3.0

Litlyx

Analytics platforms

Cookieless web analytics you can self-host with Docker or use as a hosted service

1.7k 115 12 months ago Dormant Apache-2.0

Tianji

Analytics platforms

3.1k 200 today Active Apache-2.0

Aptabase

Analytics platforms

Privacy-focused analytics for mobile, desktop and web apps, self-hosted or hosted

1.9k 142 yesterday Active AGPL-3.0

counterscale

Analytics platforms

2.2k 145 2 months ago Slowing MIT