Repolode
Swetrix

Swetrix/swetrix

Privacy-first, cookieless web analytics that bundles error tracking, performance monitoring and session replays, self-hostable with Docker.

Open-source alternative to:Google AnalyticsPlausible

Stars
1,217
Forks
79
Open issues
23
Last commit
2 days ago

What is it?

Swetrix is a web analytics platform that tracks pageviews, visitors, traffic sources, geolocation and devices without cookies, so it does not need a consent banner. It positions itself as a privacy-respecting alternative to Google Analytics and is designed to be GDPR-compliant.

Beyond traffic stats, Swetrix adds custom events, sessions and user flows, funnels, real-user performance metrics, client-side error tracking, and session replays. Some capabilities such as revenue analytics, network intelligence, alerts and AI-based querying are available only on the hosted Cloud service.

The project is built with NestJS for the API, MySQL for accounts and projects, ClickHouse for analytics data and Redis for caching, with a React Router and Tailwind CSS frontend. The Community Edition can be self-hosted with Docker and requires a private S3-compatible bucket for session replay storage.

Key features

  • 01Cookieless tracking with GDPR-oriented, anonymised data
  • 02Traffic stats including top pages, geolocation, devices, referrers and UTM campaigns
  • 03Custom events, sessions, user flows and funnels
  • 04Real-user performance metrics and client-side error tracking
  • 05Session replays and public or password-protected dashboards
  • 06Data export to CSV and a statistics API

Use cases

  • Replacing Google Analytics on a website where cookie consent banners are undesirable
  • Monitoring a web app's errors and page performance alongside traffic in one tool
  • Self-hosting analytics on your own infrastructure to keep visitor data in-house
  • Sharing traffic dashboards with a team or clients behind a password

Quick start

  1. 1

    Try Swetrix Cloud with a free trial (no install)

  2. 2

    Read the self-hosting guide and deploy the API and UI with Docker

Things to know

  • Self-hosting requires you to run ClickHouse, Redis and MySQL yourself, plus S3-compatible storage for session replays.
  • Some features such as network analytics, alerts, email reports and AI are only available on Swetrix Cloud.
  • Licensed under AGPL-3.0, which requires sharing modified source code when the software is offered as a network service.

In collections

Topics

FAQ

What is swetrix?
Privacy-first, cookieless web analytics that bundles error tracking, performance monitoring and session replays, self-hostable with Docker. Swetrix is a web analytics platform that tracks pageviews, visitors, traffic sources, geolocation and devices without cookies, so it does not need a consent banner. It positions itself as a privacy-respecting alternative to Google Analytics and is designed to be GDPR-compliant.
Is swetrix free to use? What license does it have?
swetrix is open source under the AGPL-3.0 license. Check the license terms before using it in commercial products.
Is swetrix still maintained?
Actively maintained. The last commit to swetrix was on Nov 6, 2026.
What can I use swetrix for?
Replacing Google Analytics on a website where cookie consent banners are undesirable Monitoring a web app's errors and page performance alongside traffic in one tool Self-hosting analytics on your own infrastructure to keep visitor data in-house Sharing traffic dashboards with a team or clients behind a password
How do I install swetrix?
Try Swetrix Cloud with a free trial (no install) Read the self-hosting guide and deploy the API and UI with Docker
Where can I get swetrix?
The source code and installation instructions are on GitHub: https://github.com/Swetrix/swetrix

Summary generated by AI from the project's README. GitHub stats refresh daily.

Related projects