# Swetrix

> Open-source, cookieless web analytics platform with built-in error tracking, session replays and performance monitoring.

Swetrix is a privacy-first, open-source web analytics platform from Swetrix Ltd, positioned as a cookieless alternative to Google Analytics. It combines traffic analytics with error tracking, performance monitoring, session replays, funnels and custom events. It is available as a hosted cloud service or as a self-hosted Community Edition deployed with Docker.

## What It Is

Swetrix is a web analytics product that collects anonymised visitor data through a small tracking script, without cookies or a consent banner, according to the project README. The dashboard shows real-time metrics such as top pages, geolocation with a map view, devices, traffic sources and UTM campaigns. Beyond pageviews, it tracks custom events and properties, sessions and user flows, funnels, real-user performance metrics (TTFB, DNS, TLS, render) and client-side errors.

## Cloud and Self-Hosted Editions

Swetrix Cloud is hosted by the team and adds features the README lists as Cloud-only: network intelligence (ISP, organisation, usage type, connection type), alerts, email reports, revenue analytics, experiments and Ask AI. The Community Edition is licensed under AGPLv3 and includes core analytics, session replays, funnels, performance and error tracking. Self-hosting uses Docker with ClickHouse and Redis, and session replays require an S3-compatible bucket for recordings.

## Sharing, Data Access and Stack

Dashboards can be shared publicly or with password protection, and teammates can be invited with roles; organisations are a Cloud feature. Data can be exported to CSV and accessed through a developer API. The backend uses Nest.js with MySQL, ClickHouse and Redis, the frontend uses React Router and Tailwind CSS, and the tracking script is published as the swetrix npm client.

## Comparison Claims

The README includes a vendor-authored comparison against Google Analytics 4 and Plausible, stating that Swetrix differs mainly in scope by bundling error tracking, performance monitoring and session replays.

## Features
- Cookieless, GDPR-compliant analytics without consent banners
- Real-time dashboard with top pages, geolocation, devices, traffic sources and UTM campaigns
- Custom events and properties
- Sessions and user flows
- Funnels
- Performance monitoring with real-user metrics
- Error tracking
- Session replays
- Network intelligence (Cloud)
- Public and password-protected dashboard sharing with team roles
- CSV export and developer API
- Alerts, feature flags, A/B experiments, revenue analytics and Ask AI (Cloud)
- Self-hosting with Docker

## Integrations
ClickHouse, Redis, MySQL, Docker, S3-compatible storage, Slack, Telegram, Discord, Webhooks

## Platforms
LINUX, WEB, API, DEVELOPER_SDK

## Pricing
Open Source, Free tier available

## Version
tracker-js@4.8.0

## Links
- Website: https://swetrix.com
- Documentation: https://swetrix.com/docs
- Repository: https://github.com/Swetrix/swetrix
- EveryDev.ai: https://www.everydev.ai/tools/swetrix
