Swetrix

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

  • Development
  • Web & Publishing
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

  • Unraid (not listed)
  • TrueNAS (not listed)
  • Umbrel (not listed)
  • ZimaOS (not listed)
  • Proxmox (not listed)
  • Helm (not listed)
  • Mac (not listed)
  • Windows (not listed)
  • Linux (not listed)
  • Any server

Health score?A 0-100 score computed nightly from four factors: maintained (40%: recent commits and steady activity), popular (25%: GitHub stars, log scale), easy to install (20%: platforms, install notes, setup guides, Docker image) and light to run (15%: minimum RAM, ARM support). When the source code has been checked, a fifth factor, security check (20%: automated scan for committed secrets, unsafe desktop-app settings, known-vulnerable dependencies and project hygiene; any serious finding caps it at 20), is added. Factors without data are left out and the rest are rescaled.

71/100 Good

Maintained
100last commit 18 days ago
Popular
621,229 GitHub stars
Easy to install
251 install platform, install notes
Light to run
No data
Security check
70no serious findings, 5 minor, CI, tests

Based on 4 of 5 factors.

Availability: platform listings confirmed today

GitHub stars
1,229
Open issues
28
Last commit
2026-11-15
Latest release
v5.5.4
License
AGPL-3.0
Activity
declining

Checked 7 days ago - source: GitHub (Swetrix/swetrix)

Resources & Compatibility

Requirements not published yet.

Checked 7 days ago - source: Docker Hub image tags and published docs

First-install notes

  • Set your real Project ID in the tracking script When you add the Swetrix script to your site, replace YOUR_PROJECT_ID with the actual Project ID from your Swetrix dashboard — if you leave the placeholder in, tracking won't work and you'll see no data at all. source
  • Session replay must be started manually Recording visitor sessions is opt-in: after calling swetrix.init (pointing apiURL at your self-hosted backend), you must explicitly call startSessionReplay(). Use a current tracker version or the function won't exist. source
  • Self-hosted? Point the tracker at your own API If you're running Swetrix on your own server, set apiURL in swetrix.init to your instance's backend address (e.g. https://analytics.example.com/backend) so data goes to your server instead of the cloud. source
  • First install After self-hosting Swetrix, set your real Project ID in the tracking script before adding it to your pages. Point the tracker at your own API endpoint if you're self-hosting the backend, and start session replay manually if you want that feature. source

Fetched 7 days ago - each note links to its source

Alternatives (8)

  • 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.

Checked 7 days ago - source: AlternativeTo

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.

Answers sourced from github.com, selfhostatlas.com, www.pickyourtech.com

Community

Collected 7 days ago - public community threads