Swetrix

Swetrix

Cookie-less open-source web analytics and performance monitoring

889stars
48forks
Last commit: 4d ago
Repo age: 5y old
Swetrix screenshot

Swetrix is an open-source, privacy-focused web analytics platform that collects anonymised, cookie-less metrics about website traffic, sessions, performance and client-side errors. It provides both a self-hostable Community Edition and a managed cloud offering with additional features.

Key Features

  • Cookie-less, privacy-first tracking that collects anonymised pageviews, events and session data without cross-device identifiers
  • Core analytics: top pages, traffic sources, UTM campaigns, geolocation and device/browser breakdowns
  • Session analytics and user flows to visualise journeys and pageview sequences
  • Funnels, goals and custom events for conversion tracking and behaviour analysis
  • Real-user performance monitoring (TTFB, DNS, TLS, render and other frontend timing metrics)
  • Client-side error tracking with aggregation by page, browser, device and geolocation
  • Feature flags and rollout controls to target segments and measure feature impact
  • Experiments / A/B testing (managed cloud) with exposure tracking and statistical comparisons
  • Revenue analytics integrations (Stripe, Paddle) and CSV/API data export for portability
  • Lightweight TypeScript tracking script and real-time React dashboard built for low overhead
  • Deployable via Docker with a backend API, MySQL for core data, ClickHouse for analytics storage and Redis for caching

Use Cases

  • Privacy-compliant website analytics for small businesses, blogs and SaaS sites that want to avoid cookie banners
  • Monitoring frontend performance and client-side errors to detect regressions and improve page speed
  • Running feature flags and A/B experiments (cloud) to optimize conversions and measure feature impact

Limitations and Considerations

  • The Community Edition (self-hosted) provides core analytics, sessions, funnels, performance and error tracking but lacks some managed-cloud features (experiments, revenue analytics, AI insights, and built-in alert/email reports)
  • GeoIP accuracy in self-hosted deployments depends on the chosen GeoIP database and may be less precise than the managed cloud's premium DB
  • Scaling analytics requires appropriate ClickHouse and infrastructure configuration; self-hosters must manage upgrades, backups and operational costs

Swetrix bundles core web analytics, performance monitoring and error tracking in a privacy-first package suitable for self-hosting or using a managed cloud. It focuses on essential, low-footprint analytics while offering expanded features in its cloud offering.

Categories:

Tags:

Tech Stack:

Share:

Similar Services

Umami

Umami

Privacy-focused web analytics and product analytics platform

35.4k
6.5k
Last commit: 8d ago

Umami is an open-source, privacy-friendly web and product analytics platform—an alternative to Google Analytics—with fast dashboards, events, and insights.

Alternative to:
Google Analytics
Google Analytics
+19
PostHog

PostHog

Open-source product analytics and product engineering platform

31.8k
2.3k
Last commit: 7h ago

Self-hostable product analytics platform with web analytics, session replay, feature flags, experiments, and data warehouse/CDP capabilities.

Alternative to:
Mixpanel
Mixpanel
+19
Plausible Analytics

Plausible Analytics

Privacy-friendly, cookie-free web analytics

24.3k
1.3k
Last commit: 7h ago

Open-source, lightweight web analytics with a simple dashboard, privacy-first metrics, and goal/conversion tracking as an alternative to Google Analytics.

Alternative to:
Google Analytics
Google Analytics
+13
Dub

Dub

Open-source link attribution platform for short links and conversions

23.1k
2.9k
Last commit: 20h ago

Dub is an open-source link attribution platform for branded short links, real-time analytics, conversion tracking, webhooks, and affiliate/referral programs.

Alternative to:
Bitly
Bitly
+9
Matomo

Matomo

Privacy-focused web and app analytics platform

21.3k
2.8k
Last commit: 7h ago

Matomo is an open-source web and app analytics platform that provides real-time insights, customizable dashboards, and privacy controls with full data ownership.

Alternative to:
Google Analytics
Google Analytics
+14
GoAccess

GoAccess

Real-time web log analyzer with terminal and web dashboards

20.3k
1.2k
Last commit: 4d ago

GoAccess is a real-time web log analyzer that turns server access logs into interactive terminal (TUI) or browser-based dashboards, plus HTML/JSON/CSV reports.

Alternative to:
Google Analytics
Google Analytics
+6