# Swetrix

Swetrix is an open-source, privacy-focused web analytics platform and a cookieless alternative to Google Analytics.

Canonical page: https://ourlocalhost.com/app/7944/swetrix

## Description

Swetrix is an open-source, privacy-focused web analytics platform and a cookieless alternative to Google Analytics. It tracks pageviews, custom events, funnels, error tracking, performance monitoring and session replays without cookies, consent banners or cross-device tracking, keeping all data anonymised and GDPR-compliant. It suits website owners and self-hosters who want actionable traffic insights while respecting visitor privacy, replacing several monitoring tools with one lightweight, real-time dashboard.

## Platform availability

Available on 1 of 10 platforms: Any server.

## Health score

71/100 (Good), based on 4 of 5 factors.
- Maintained: 100 (last commit 18 days ago)
- Popular: 62 (1,229 GitHub stars)
- Easy to install: 25 (1 install platform, install notes)
- Security check: 70 (no serious findings, 5 minor, CI, tests)

## Links

- Official website: https://swetrix.com
- GitHub: https://github.com/Swetrix/swetrix

## Common questions

### How do I enable session replays on a self-hosted setup?

Recording is opt-in: after calling swetrix.init with your self-hosted apiURL, you must explicitly call startSessionReplay(). Also use a current tracker version, or the function won't exist.

### What does the self-hosted Docker Compose stack include?

The project-maintained compose file runs the frontend, API, Redis and ClickHouse behind an nginx proxy. For storage it uses ClickHouse for events, Redis for caching, and MySQL.

### Can I use Swetrix without self-hosting?

Yes, Swetrix offers a hosted cloud service with a free tier, and you can also self-host if you prefer full control over your data.

## Alternatives

- GoAccess: GoAccess is an open-source, real-time web log analyzer and interactive viewer that runs in a *nix terminal or generates live, browser-frien…
- GoatCounter: GoatCounter is an open-source, privacy-friendly web analytics platform that tracks visits and page views without personal identifiers, givi…
- Google Analytics: Gain insights into website traffic with Advanced Segmentation, Custom Reporting, and data visualization.
- Matomo: Matomo is a free and open source web analytics platform that runs on your own PHP/MySQL web server, tracking your websites' traffic and del…
- Plausible Analytics: Plausible is a simple tool for tracking how many people visit your website.
- Rybbit: Open source, cookieless web & product analytics with an 11 KB script and one readable dashboard.
- Tianji: Tianji is a self-hosted website analytics and uptime monitoring platform that combines visitor traffic insights, service availability check…
- umami: Umami is a simple, fast, privacy-focused, open-source web and product analytics platform.

---
Source: Our Local Host (https://ourlocalhost.com/app/7944/swetrix), the self-hosted and open-source app directory.
