Back to directory

Data & Analytics · Web & Product Analytics

Swetrix

Privacy-first analytics with error and performance monitoring

Swetrix is an AGPL-3.0 web analytics platform for teams seeking cookieless traffic measurement, error tracking, performance monitoring, funnels and session analysis. Swetrix Ltd maintains the project, which supports Docker-based self-hosting and an EU-hosted cloud service starting at $19 per month. The Community Edition is open source, while some cloud features are commercial.

Key facts

License
AGPL-3.0
Main language
TypeScript, JavaScript
Maintainer
Swetrix Ltd
First released
2021
Latest release
v5.4.1, August 4, 2026
GitHub stars
1,205, October 2026
Hosted option
Cloud from $19/month

What Swetrix is

Swetrix is a cookieless web analytics platform founded in 2021 and maintained by Swetrix Ltd, a United Kingdom company that describes the project as bootstrapped and funded by subscribers. The GitHub repository was created on March 18, 2021. It had 1,205 stars and 78 forks in October 2026, with Blaumaus listed as the leading contributor at 6,661 contributions. The README does not publish a named customer list. Swetrix targets teams replacing Google Analytics while retaining control over analytics data. The project is open source under AGPL-3.0, and the company offers a hosted service alongside the Community Edition. The maintainers also describe the service as hosted in Germany through Hetzner.

How it works

A typical Swetrix deployment begins with a browser tracking snippet or a server-side SDK. The tracker records pageviews, custom events, performance measurements and client-side errors, then sends them to a real-time dashboard. Users can review pages, devices, countries, referrers, UTM campaigns, sessions and user journeys. Goals and funnels show ordered steps and conversion drop-off, while session and profile views connect activity across visits when identification is enabled. Teams can export CSV data, use the developer API, and share public or password-protected dashboards. Cloud plans add session replays, alerts, reports, feature flags, A/B testing, revenue analytics, network analytics and Ask AI. The Community Edition includes core traffic, event, session, funnel, performance and error features.

Architecture and recent releases

The backend uses Nest.js with MySQL and TypeORM for accounts and projects, ClickHouse for analytics data, and Redis for caching. The frontend uses React Router, Tailwind CSS and billboard.js, while tracker-js is written in TypeScript and bundled with Rollup. Docker Compose is the documented Community Edition deployment model, with S3-compatible storage required for replay recordings. Releases in 2026 included core v5.4.1 on August 4, tracker-js 4.7.0 and tracker-node 3.5.0 on September 26. Core v5.4 introduced visitor identification, profile traits, Stats API v2, revised journeys, live-visitor charts and IP whitelisting. The release notes also describe required database migrations for existing self-hosted installations and a one-click Railway deployment option.

License and pricing

The Community Edition uses GNU Affero General Public License version 3, identified as AGPL-3.0. The license permits running, modifying and distributing covered software, including charging for copies, while modified network services must offer corresponding source under its conditions. Contributions are subject to a Contributor License Agreement. Swetrix Cloud offers a 14-day trial with a payment method required. Standard costs $19 per month and Plus costs $39 per month. Standard includes core analytics, performance monitoring, profiles and advanced bot detection, while Plus adds session replays, feature flags and A/B testing. Enterprise pricing is custom and includes on-premise installation, a dedicated isolated instance, SAML SSO, custom features, onboarding, manual invoicing and an SLA.

Limitations and how it compares

Self-hosting gives teams control over infrastructure, but it requires Docker operations, MySQL, ClickHouse, Redis, migrations, backups and replay storage management. The repository identifies x86_64 and arm64 support and a minimum of 2GB RAM. Cloud and Community Edition differ in alerts, email reports, network analytics, support, experimentation and AI features. Plausible is a narrower open-source analytics alternative, Umami provides another open-source analytics option, and Google Analytics 4 is a larger proprietary service with different privacy and hosting assumptions. Matomo offers broader open-source analytics and reporting. Swetrix suits teams that want one AGPL-licensed service covering privacy-focused analytics, errors and performance rather than a pageview-only dashboard.

Main features

  • Cookieless analytics. Measures traffic without cookies and presents anonymised analytics for privacy-focused websites.
  • Custom events. Records custom events and properties for conversions, sales, goals and application-specific actions.
  • Error tracking. Captures client-side errors with details, stack traces and aggregated views alongside website analytics.
  • Performance monitoring. Reports real-user timing measurements including TTFB, DNS, TLS and rendering performance.
  • Funnels and journeys. Visualises ordered steps, conversion drop-off, sessions and visitor movement through a website.
  • Session replays. Records browser sessions for replay-based investigation of user journeys, errors and interface friction.
  • Developer API. Provides API access for aggregated statistics and sending pageviews or events from applications.

Self-hosting Swetrix

Swetrix Community Edition uses Docker Compose to run the API and frontend with ClickHouse, MySQL and Redis. Session replay recordings require a private S3-compatible bucket. The repository identifies x86_64 and arm64 support and a minimum of 2GB RAM. No Helm charts, native packages or standalone binaries are documented. Administrators must pull updated images, run required database migrations, restart services and maintain backups before upgrades. The v5.4 release notes list migration commands for existing installations. A one-click Railway deployment option was added in 2026, but Docker Compose remains the documented primary deployment method.

Strengths

  • It combines analytics, error tracking and performance monitoring in one AGPL-licensed application.
  • The Community Edition supports Docker deployment and S3-compatible storage for session replays.
  • The hosted service offers EU hosting, a 14-day trial and CSV and API data export.
  • 2026 releases added profile identification, Stats API v2 and improved journey reporting.

Drawbacks

  • Self-hosting requires MySQL, ClickHouse, Redis, Docker operations and backup management.
  • Community Edition replay storage requires a separate S3-compatible object-storage bucket.
  • Cloud and Community Edition differ in alerts, reports, network analytics and experimentation features.

What teams replace with it

Teams usually evaluate Swetrix when they want to move off Google Analytics 4, Hotjar, Sentry.

For side-by-side commercial comparisons, browse our alternatives hub.

Open-source alternatives to Swetrix

Frequently asked questions

Is Swetrix free?

The Community Edition is open source under AGPL-3.0 and can be self-hosted without a Swetrix subscription. Operators still pay for servers, maintenance, backups and storage. Swetrix Cloud has no permanent free plan in its pricing information. It offers a 14-day trial, requires a payment method, and Standard pricing starts at $19 per month.

Can businesses use Swetrix commercially?

AGPL-3.0 permits commercial use, including charging for copies and support, subject to its license conditions. If a modified version provides network access, AGPL-3.0 requires the operator to offer corresponding source for that modified version to remote users. Teams should review the license, contributor terms and intended distribution model with legal counsel.

How do you self-host Swetrix?

The Community Edition uses Docker Compose and requires the application services plus MySQL, ClickHouse and Redis. Session replays require an S3-compatible bucket. The documented hardware baseline is 2GB RAM, with x86_64 and arm64 support. Upgrades can require database migrations, and administrators should back up data before applying release updates.

How does Swetrix compare with Plausible?

Both projects provide open-source, privacy-focused, cookieless analytics and support self-hosting. Swetrix covers error tracking, performance monitoring, session analysis, funnels and session replays, while Plausible has a narrower analytics focus. Choose Swetrix when combined monitoring matters more than a smaller deployment scope. Choose Plausible when analytics simplicity is the main requirement.

Is Swetrix privacy-friendly?

Swetrix describes its analytics as cookieless, GDPR-compliant and based on anonymised data, with no cross-device tracking by default. The hosted service is described as EU-hosted, while self-hosting lets operators control infrastructure and storage. Privacy outcomes depend on configuration, identifiers, integrations, retention practices and the operator’s legal obligations.

Similar projects to compare

Sources

Last updated 2026-10-22.