Swetrix

Swetrix

WHAT IS IT?

Swetrix is a cookieless, GDPR-compliant web analytics platform positioned as a Google Analytics alternative. It goes past plain pageview counting: client-side error tracking, real-user performance monitoring, conversion funnels, feature flags and A/B tests all live in the same product. Under the hood, the API runs on Nest.js with ClickHouse for analytics data, MySQL for accounts and projects, and Redis for caching.

WHY IS IT INTERESTING?

  • Cookieless, so no consent banner: data is anonymised, there is no cross-device tracking, and the tracking script weighs around 5 KB. One regulatory constraint less, and a page that loads faster.
  • Several tools folded into one: traffic, JavaScript errors, performance measured on real visitors (TTFB, DNS, TLS, render), sessions, user flows, funnels, custom events and properties. Enough to replace an analytics + error tracker + monitoring stack.
  • Feature flags and experiments: rare in a privacy-first analytics tool. A/B tests are driven from the same dashboard as the stats, without wiring in a third-party service.
  • ClickHouse under the hood: no data sampling even at high volume, and a dashboard that stays real-time.
  • Data you can take back: CSV export and a documented statistics API to pull the numbers elsewhere. Dashboards can be shared publicly or password-protected.
  • Self-hostable, but a trimmed Community Edition: the Docker deployment (API + UI, MySQL, ClickHouse, Redis) does ship the analytics core. Session replays, alerts, email reports, premium GeoIP and the revenue and AI features stay Cloud-only though.

USE CASES

  • Replacing Google Analytics on a European site without showing a consent banner
  • Folding analytics, error tracking and performance monitoring into a single dashboard
  • Measuring a signup or checkout funnel and spotting the step where visitors drop off
  • Driving feature flags and A/B tests on a web product
  • Sharing stats with a client through a public or password-protected dashboard