Swetrix/swetrix

πŸ“ˆ Open source, privacy-first web analytics β€” a cookie-less Google Analytics alternative with built-in error tracking and performance monitoring. Self-host it or use our cloud. Get started for free!

TypeScript

1,205

7,828 commits

updated Oct 11, 2026

See the code

README

Swetrix

Swetrix

Privacy-first, open-source web analytics β€” with error tracking, session replays and performance monitoring built in.
See the live demo Β»

Website Β· Docs Β· Issues Β· Discord Β· Twitter

Try Swetrix Cloud Self-host with Docker GitHub stars License

Swetrix dashboard

ℹ️ What is Swetrix?

Swetrix is a cookieless, GDPR-compliant analytics platform β€” a privacy-respecting alternative to Google Analytics. No cookies, no consent banner, no cross-device tracking, all data anonymised. It's the only thing on the page and the dashboard is fast and real-time.

It goes beyond pageviews: alongside traffic stats you get error tracking, performance monitoring, session replays, funnels and custom events β€” so you can replace several tools with one.

Open source since 2021, bootstrapped, and funded entirely by our subscribers. Made in the πŸ‡¬πŸ‡§ UK, hosted on Hetzner in πŸ‡©πŸ‡ͺ Germany.

πŸ‘‰ Try it free on Swetrix Cloud or self-host with Docker.

✨ Features

  • Cookieless & privacy-first β€” GDPR-compliant by design, no cookies, anonymised data. (Data Policy)
  • Lightweight script β€” a small tracking snippet and a snappy real-time dashboard.
  • The metrics that matter β€” top pages, geolocation with map view, devices, traffic sources and UTM campaigns.
  • Network intelligence (Cloud) β€” break traffic down by ISP, organisation, usage type (residential / business / hosting / cellular) and connection type to spot bot and datacenter traffic.
  • Custom events & properties β€” track conversions, sales or any key action with your own semantics.
  • Sessions & user flows β€” understand journeys and behaviour across your site.
  • Funnels β€” visualise drop-offs and improve conversion rates.
  • Performance monitoring β€” real-user metrics (TTFB, DNS, TLS, render) to keep pages fast.
  • Error tracking β€” capture client-side errors with details and aggregated views.
  • Session replays (Cloud) β€” replay sessions to see exactly where visitors get stuck.
  • Sharing & teams β€” public or password-protected dashboards; invite teammates with roles, or manage access with organisations.
  • Data portability β€” export to CSV and access everything via the developer API.
  • More β€” alerts & notifications, feature flags, A/B experiments, revenue analytics and Ask AI (Cloud).

Swetrix vs Google Analytics vs Plausible

Swetrix and Plausible are both privacy-first and open source; the main difference is scope β€” Swetrix bundles error tracking, performance monitoring and session replays into the same product.

SwetrixGoogle Analytics 4Plausible
Cookieless, no consent bannerβœ…βŒ cookies + consentβœ…
GDPR-compliant, EU-hostedβœ…βš οΈ data sent to USβœ…
Open source (AGPLv3)βœ…βŒβœ…
Self-hostableβœ…βŒβœ…
No data samplingβœ…βŒ samples at scaleβœ…
Real-time dashboardβœ…βš οΈ limitedβœ…
Funnelsβœ…βœ…βœ… (paid plans)
Custom eventsβœ…βœ…βœ…
Performance monitoringβœ…βŒβŒ
Error trackingβœ…βŒβŒ
User profiles / identified usersβœ…βŒβŒ
Feature flags & A/B experimentsβœ…βŒβŒ
Session replaysβœ…βŒβŒ
Revenue / MRR analyticsβœ… Cloud⚠️ ecommerce setup❌
Ask AI / chat with your dataβœ… Cloud❌❌

πŸš€ Get started

We handle hosting, maintenance, backups and a worldwide CDN β€” you keep full ownership of your data and can export or delete it anytime. GDPR-compliant and hosted in the EU.

Your subscription directly funds maintenance and development of the open-source project.

Self-hosting

Prefer to run it yourself? Swetrix Community Edition (CE) ships the same core analytics: privacy-friendly traffic stats, custom events, sessions, session replays, funnels, performance and error tracking. Deploy the API and UI with Docker, connect ClickHouse / Redis, and configure a private S3-compatible bucket for replay recordings.

Cloud vs Community Edition

Swetrix CloudSwetrix Community Edition
Infrastructure managementβœ… Set up tracking in minutes. We manage server maintenance, upgrades and security for you.⚠️ You manage servers, installs, upgrades, scaling and backups.
Core analytics (traffic, events, sessions, funnels, performance, errors)βœ… Includedβœ… Included
Session replaysβœ… Includedβœ… Included; requires S3-compatible storage
Advanced features (Revenue, Experiments, AI)βœ… Included⚠️ Cloud only
Teams & sharingβœ… Organisations, role-based access, direct invites, public and password-protected links.⚠️ Direct project invites, password-protected links and public projects only.
Alerts & notificationsβœ… Email, Slack, Telegram, Discord, webhook, web push⚠️ Not included
Email reportsβœ… Weekly / monthly / quarterly⚠️ Not included
Geo & network analyticsβœ… Premium GeoIP for accurate country / region / city, plus ISP, organisation, usage type and connection type.⚠️ DB-IP City Lite (country / region / city only); a paid MaxMind or DB-IP database is needed for network breakdowns.
Release scheduleβœ… Continuous updates, deployed as soon as readyℹ️ Periodic open-source releases; newest features arrive later.
Supportβœ… Premium support from the team building Swetrix⚠️ Community support on Discord and forums.
Costsβœ… Bootstrapped business β€” your money directly funds Swetrix development.⚠️ You pay for servers, maintenance, backups and domains.

πŸ› οΈ Tech stack

  • Backend / API β€” Nest.js, MySQL + TypeORM (accounts, projects), ClickHouse (analytics), Redis (caching).
  • Frontend β€” React Router, Tailwind CSS, billboard.js for charts.
  • Tracking script β€” packages/tracker-js, the swetrix npm client, TypeScript bundled with rollup.

🀝 Contributing

We welcome contributions! See the contributing guide and browse open issues to pick something up.

⭐️ Star History

If Swetrix is useful to you, star the repo β€” it genuinely helps a bootstrapped team and motivates us a lot 😊

Star History Chart

πŸ’¬ Contact

πŸ“ƒ License

Swetrix Community Edition is open source under the GNU Affero General Public License v3 (AGPLv3). See the LICENSE file. Source code contributions are subject to the Contributor License Agreement.

Β© 2021 - present, Swetrix Ltd.

Back to top

charts
clickhouse
docker
gdpr
google-analytics
metrics
monitoring
mysql
nestjs
privacy
redis
self-hosted
selfhosted
statistics
tailwindcss
web-analytics
webanalytics
website

Swetrix/swetrix

πŸ“ˆ Open source, privacy-first web analytics β€” a cookie-less Google Analytics alternative with built-in error tracking and performance monitoring. Self-host it or use our cloud. Get started for free!

TypeScript

1,205

7,828 commits

updated Oct 11, 2026

See the code

README

Swetrix

Swetrix

Privacy-first, open-source web analytics β€” with error tracking, session replays and performance monitoring built in.
See the live demo Β»

Website Β· Docs Β· Issues Β· Discord Β· Twitter

Try Swetrix Cloud Self-host with Docker GitHub stars License

Swetrix dashboard

ℹ️ What is Swetrix?

Swetrix is a cookieless, GDPR-compliant analytics platform β€” a privacy-respecting alternative to Google Analytics. No cookies, no consent banner, no cross-device tracking, all data anonymised. It's the only thing on the page and the dashboard is fast and real-time.

It goes beyond pageviews: alongside traffic stats you get error tracking, performance monitoring, session replays, funnels and custom events β€” so you can replace several tools with one.

Open source since 2021, bootstrapped, and funded entirely by our subscribers. Made in the πŸ‡¬πŸ‡§ UK, hosted on Hetzner in πŸ‡©πŸ‡ͺ Germany.

πŸ‘‰ Try it free on Swetrix Cloud or self-host with Docker.

✨ Features

  • Cookieless & privacy-first β€” GDPR-compliant by design, no cookies, anonymised data. (Data Policy)
  • Lightweight script β€” a small tracking snippet and a snappy real-time dashboard.
  • The metrics that matter β€” top pages, geolocation with map view, devices, traffic sources and UTM campaigns.
  • Network intelligence (Cloud) β€” break traffic down by ISP, organisation, usage type (residential / business / hosting / cellular) and connection type to spot bot and datacenter traffic.
  • Custom events & properties β€” track conversions, sales or any key action with your own semantics.
  • Sessions & user flows β€” understand journeys and behaviour across your site.
  • Funnels β€” visualise drop-offs and improve conversion rates.
  • Performance monitoring β€” real-user metrics (TTFB, DNS, TLS, render) to keep pages fast.
  • Error tracking β€” capture client-side errors with details and aggregated views.
  • Session replays (Cloud) β€” replay sessions to see exactly where visitors get stuck.
  • Sharing & teams β€” public or password-protected dashboards; invite teammates with roles, or manage access with organisations.
  • Data portability β€” export to CSV and access everything via the developer API.
  • More β€” alerts & notifications, feature flags, A/B experiments, revenue analytics and Ask AI (Cloud).

Swetrix vs Google Analytics vs Plausible

Swetrix and Plausible are both privacy-first and open source; the main difference is scope β€” Swetrix bundles error tracking, performance monitoring and session replays into the same product.

SwetrixGoogle Analytics 4Plausible
Cookieless, no consent bannerβœ…βŒ cookies + consentβœ…
GDPR-compliant, EU-hostedβœ…βš οΈ data sent to USβœ…
Open source (AGPLv3)βœ…βŒβœ…
Self-hostableβœ…βŒβœ…
No data samplingβœ…βŒ samples at scaleβœ…
Real-time dashboardβœ…βš οΈ limitedβœ…
Funnelsβœ…βœ…βœ… (paid plans)
Custom eventsβœ…βœ…βœ…
Performance monitoringβœ…βŒβŒ
Error trackingβœ…βŒβŒ
User profiles / identified usersβœ…βŒβŒ
Feature flags & A/B experimentsβœ…βŒβŒ
Session replaysβœ…βŒβŒ
Revenue / MRR analyticsβœ… Cloud⚠️ ecommerce setup❌
Ask AI / chat with your dataβœ… Cloud❌❌

πŸš€ Get started

We handle hosting, maintenance, backups and a worldwide CDN β€” you keep full ownership of your data and can export or delete it anytime. GDPR-compliant and hosted in the EU.

Your subscription directly funds maintenance and development of the open-source project.

Self-hosting

Prefer to run it yourself? Swetrix Community Edition (CE) ships the same core analytics: privacy-friendly traffic stats, custom events, sessions, session replays, funnels, performance and error tracking. Deploy the API and UI with Docker, connect ClickHouse / Redis, and configure a private S3-compatible bucket for replay recordings.

Cloud vs Community Edition

Swetrix CloudSwetrix Community Edition
Infrastructure managementβœ… Set up tracking in minutes. We manage server maintenance, upgrades and security for you.⚠️ You manage servers, installs, upgrades, scaling and backups.
Core analytics (traffic, events, sessions, funnels, performance, errors)βœ… Includedβœ… Included
Session replaysβœ… Includedβœ… Included; requires S3-compatible storage
Advanced features (Revenue, Experiments, AI)βœ… Included⚠️ Cloud only
Teams & sharingβœ… Organisations, role-based access, direct invites, public and password-protected links.⚠️ Direct project invites, password-protected links and public projects only.
Alerts & notificationsβœ… Email, Slack, Telegram, Discord, webhook, web push⚠️ Not included
Email reportsβœ… Weekly / monthly / quarterly⚠️ Not included
Geo & network analyticsβœ… Premium GeoIP for accurate country / region / city, plus ISP, organisation, usage type and connection type.⚠️ DB-IP City Lite (country / region / city only); a paid MaxMind or DB-IP database is needed for network breakdowns.
Release scheduleβœ… Continuous updates, deployed as soon as readyℹ️ Periodic open-source releases; newest features arrive later.
Supportβœ… Premium support from the team building Swetrix⚠️ Community support on Discord and forums.
Costsβœ… Bootstrapped business β€” your money directly funds Swetrix development.⚠️ You pay for servers, maintenance, backups and domains.

πŸ› οΈ Tech stack

  • Backend / API β€” Nest.js, MySQL + TypeORM (accounts, projects), ClickHouse (analytics), Redis (caching).
  • Frontend β€” React Router, Tailwind CSS, billboard.js for charts.
  • Tracking script β€” packages/tracker-js, the swetrix npm client, TypeScript bundled with rollup.

🀝 Contributing

We welcome contributions! See the contributing guide and browse open issues to pick something up.

⭐️ Star History

If Swetrix is useful to you, star the repo β€” it genuinely helps a bootstrapped team and motivates us a lot 😊

Star History Chart

πŸ’¬ Contact

πŸ“ƒ License

Swetrix Community Edition is open source under the GNU Affero General Public License v3 (AGPLv3). See the LICENSE file. Source code contributions are subject to the Contributor License Agreement.

Β© 2021 - present, Swetrix Ltd.

Back to top

charts
clickhouse
docker
gdpr
google-analytics
metrics
monitoring
mysql
nestjs
privacy
redis
self-hosted
selfhosted
statistics
tailwindcss
web-analytics
webanalytics
website

Project health

Latest release

4.7.0 Β· Sep 26, 2026

Releases this year

10

Significant stargazers

Seth Falco

336 followers Β· starred Feb 2026

Zero King

133 followers Β· starred May 2025

Gabriel Volpe

888 followers Β· starred Dec 2025

Jan Christoph Ebersbach

168 followers Β· starred Oct 2026