Swetrix logo

Swetrix

Privacy-first, cookie-less web analytics you can self-host

Swetrix delivers privacy-focused, cookie-less website analytics, speed monitoring, and error tracking. Host it yourself or use the cloud service, with GDPR-compliant insights and no data leakage.

Swetrix banner

Overview

Overview

Swetrix is a privacy‑first analytics platform that lets you track traffic, performance, and client‑side errors without using cookies. Designed for developers and organizations that need GDPR‑compliant insights, it offers real‑time dashboards, session flows, and speed metrics.

Who It Serves

Ideal for teams that value full control over their data and are comfortable managing Docker‑based services. Whether you run a personal blog, a SaaS product, or an e‑commerce site, Swetrix provides the core metrics needed to understand user behavior while keeping personal data out of third‑party hands.

Deployment Options

You can self‑host using the provided Docker compose setup, which includes ClickHouse, Redis, and MySQL, or opt for the hosted cloud version with a free tier. Both options give you immediate access to the analytics UI and API endpoints for custom integrations.

Highlights

Cookie-less tracking respecting GDPR
Real-time traffic and performance dashboards
Session replay and user flow visualization
Self-hosting via Docker with ClickHouse, Redis, MySQL

Pros

  • Privacy‑first design eliminates cookies
  • Full control when self‑hosted
  • Comprehensive metrics (traffic, speed, errors)
  • Active community and transparent roadmap

Considerations

  • Self‑hosting requires infrastructure knowledge
  • Feature set may lag behind large commercial analytics
  • Limited integrations compared to SaaS giants
  • AGPL‑3.0 license may affect proprietary use

Managed products teams compare with

When teams consider Swetrix, these hosted platforms usually appear on the same shortlist.

Amplitude logo

Amplitude

Product analytics platform for tracking user behavior and generating data-driven insights

Contentsquare logo

Contentsquare

Digital experience analytics for UX insights and conversion

Fathom Analytics logo

Fathom Analytics

Privacy-focused web analytics alternative to Google Analytics

Looking for a hosted option? These are the services engineering teams benchmark against before choosing open source.

Fit guide

Great for

  • Websites needing GDPR‑compliant analytics without third‑party data collection
  • Teams that prefer full control over their data stack
  • Developers comfortable managing Docker‑based services
  • Organizations looking for an open‑source alternative to Google Analytics

Not ideal when

  • Businesses that require out‑of‑the‑box integrations with many marketing tools
  • Users without technical resources to maintain self‑hosted services
  • Projects needing advanced AI‑driven insights
  • Companies that cannot comply with AGPL licensing terms

How teams use it

Monitor site performance after a redesign

Identify page load regressions in real time and roll back changes before users are impacted.

Track user journeys to improve conversion

Visualize drop‑off points in funnels and optimize navigation paths.

Detect and alert on client‑side errors

Capture JavaScript exceptions, prioritize fixes, and reduce error rates.

Maintain privacy‑compliant analytics for a SaaS product

Collect usage statistics without cookies, staying within GDPR while gaining actionable insights.

Tech snapshot

TypeScript96%
JavaScript3%
HTML1%
CSS1%
Dockerfile1%
Shell1%

Tags

google-analyticsredismetricsself-hostedchartsweb-analyticsclickhouseprivacymonitoringstatisticsnestjsgdprtailwindcsswebanalyticswebsitedockerselfhostedmysql

Frequently asked questions

Can I use Swetrix without self‑hosting?

Yes, Swetrix offers a hosted cloud service with a free tier; you can also self‑host if you prefer full data control.

What databases does Swetrix require?

The default stack uses ClickHouse for event storage, Redis for caching, and MySQL for user data, all orchestrated via Docker.

Is there a limit on tracked events?

The hosted version enforces tier‑based limits; self‑hosted installations are only limited by your infrastructure capacity.

How does Swetrix ensure GDPR compliance?

It records no personal identifiers, does not set cookies, and provides data‑deletion APIs to meet regulatory requirements.

What programming languages can I integrate with?

Swetrix provides a lightweight JavaScript snippet for browsers and SDKs for Node, Go, Python, and other platforms via HTTP API.

Project at a glance

Active
Stars
820
Watchers
820
Forks
46
LicenseAGPL-3.0
Repo age4 years old
Last commit15 hours ago
Self-hostingSupported
Primary languageTypeScript

Last synced 10 hours ago