Skip to content

Release history

swetrix releases

Swetrix is a cookie-less, open source, privacy-first web analytics, website speed monitoring and error tracking service that you can host yourself or use in the cloud. Get started for free!

All releases

12 shown

v5.2.2 Bugfix

Fixed frontend crash during 2FA QR‑code generation.

Full changelog

🔧 Fixes

  • fix: Frontend crashes on 2FA QR-code generation (thanks to @Sturdzza for contributing)
  • fix: Sessions view is empty when there are custom events applied as filters
v5.2.1 Bug fix

Fixes failing frontend build.

Full changelog

[!IMPORTANT]
If you're updating to this version from v5.1.x, please read the release notes for the v5.2.0 release as it contains important migrations you'll need to do.

🔧 Fixes

  • Fix failing frontend build
v5.2.0 Breaking risk
⚠ Upgrade required
  • Before upgrading, back up the database. Update `compose.yaml` to use frontend image `swetrix/swetrix-fe:v5.2.1` and backend image `swetrix/swetrix-api:v5.2.1`.
  • Add a strong random value for `CLICKHOUSE_PASSWORD` in `.env`; keep it consistent across services.
  • Run the listed migration scripts sequentially to migrate ClickHouse schema, then restart containers.
Breaking changes
  • Requires a non‑empty `CLICKHOUSE_PASSWORD` in `.env` for ClickHouse authentication.
  • Database schema migrated to a unified `events` table; legacy per‑type tables are dropped after upgrade.
Notable features
  • Import historical analytics data from GA4, Fathom, Plausible, Simple Analytics, and Umami.
  • SEO dashboard with Google Search Console integration showing search queries, top pages, branded traffic, and optimisation opportunities.
  • Experiments (A/B testing) for optimizing conversion rates and user engagement.
Full changelog

[!WARNING]
This release includes breaking changes for self-hosted installations.

If you are upgrading from Swetrix CE v5.1.x, you must update your configuration and run the database migration below. Please read the upgrade instructions carefully before starting, otherwise your installation will not work correctly.

🔥 Major updates

Import historical data from 3rd party analytics services

Swetrix allows you to import historical analytics data from other platforms so you can switch without losing your history. Imported data appears alongside your live-tracked data in dashboards, charts, and reports. It's tagged internally so it can be identified and, if needed, removed later without affecting your live-tracked data.

In this release, the following providers are supported for import:

  • Google Analytics 4
  • Fathom Analytics
  • Plausible Analytics
  • Simple Analytics
  • Umami

👉 Learn more about this feature on our Data Import documentation page.

Shout out to @prohtex for the suggestion.

SEO insights & Google Search Console integration

The SEO dashboard gives you a complete view of your website's search engine performance, powered by your the Google Search Console integration. It combines GSC data with your referral analytics to show search queries, top pages, branded traffic, and optimisation opportunities - all in one place.

👉 Learn more about the SEO dashboard, and the set-up instructions for Swetrix CE.

Experiments (A/B testing)

Experiments (A/B Testing) allow you to test different variations of your application to see which one performs better. You can use experiments to optimize conversion rates, user engagement, and other key metrics.

👉 Learn more about Experiments.

Bot blocking controls

Swetrix automatically filters out automated traffic so the numbers in your dashboard reflect real visitors. In previous versions we've offered basic bot protection that worked by utilising user-agent matching against common crawlers & bots.

This release introduces Strict level bot protection, that does additional checks against the following attack vectors:

  • User-Agent checks: We match the User-Agent header against a comprehensive list of known bots (Googlebot, Bingbot, AhrefsBot, curl, headless tools, etc.) maintained by the isbot project.
  • Headless browser fingerprint: Headless and automation frameworks like HeadlessChrome, Puppeteer, Playwright, etc.
  • Suspicious headers checks: Real browsers always send Accept, Accept-Language, and Accept-Encoding headers. If two or more of these are missing on a pageview, custom event, error, or heartbeat request, the request is treated as a bot.
  • Vulnerability-scan paths (probe paths): Ignore crawlers that search for hidden dotfiles (/.env, /.git/config, etc.), server internals, build / config leaks or common scanner probes.
  • Referrer spam checks: We maintain a snapshot of the matomo-org/referrer-spam-list (~2,300 known spam hosts). If the request's Referer (or Origin) matches any of those hosts, or is a subdomain of one, the request is dropped.
  • Datacenter IP checks: Ignores traffic that comes from cloud / hosting providers (AWS, GCP, OVH, Hetzner, etc.) - since usually most of this traffic are bots or scrapers. This feature requires a paid IP Geolocation database to work on Swetrix CE. This feature is available to all Cloud customers.

Additionally to these checks, we've also added a per-project report of exactly how many requests were blocked and why.

👉 Learn more about the bot protection feature.

Improved funnels

Funnels now display Top sources and Top countries for every step, as well clearer conversion rates and drop off.

You can also click on any funnel step to see the sessions that got into this step, allowing you to investigate them further and understand why they dropped off.

Click on chart to see sessions of this period

Similarly to funnels, you can click on any data point on the main chart to pull up a detailed list of all sessions that occurred during that specific timeframe. This is an excellent way to drill down into the behavior of individual visitors on a given day or hour.

You can go further and click on any of those sessions to see how long it lasted, what pages were visited, error occured and why they dropped off.

sessions inspector" src="https://github.com/user-attachments/assets/949306b7-a3b4-4558-bfbb-77124bf9218e" />

🙂 Minor changes

  • Stored 2FA recovery codes are now hashed
  • New Swetrix logo
  • User password is not required to delete the account
  • [Swetrix CAPTCHA] Add Hungarian language support (thanks to @AndrisBorbas)
  • In line with recent surge of NPM supply chain attacks, we've reduced the amount of non-essential dependencies
  • Add password strength meter to the signup and user settings pages
  • Migrate i18n from ?lng= query to /{lang}/ path-based URLs
  • Reduce 'Direct / None' referrers by inferring it from UTMs as a backup
  • Added 'Network intelligence' feature, which detects ISP, Usage type and similar metrics. Only available if you pass a custom paid IP geolocation model. Right now it's hidden in the UI.
  • App-wide UI improvements - better colours, typography, accessibility. Made some components like sessions or error tracking UI more clean and minimal.

🔧 Fixes

  • fix: HTTP exception when user applied custom event related filters on an All time period
  • fix: Use cancellable billboard resize timer to avoid post-destroy errors
  • fix: Analytics dashboard -> Details modal is hard to read on mobile
  • fix: Shared project admins are not able to manage project members
  • Feature flags evaluation fixes & improvements
  • Stylistic fixes to the dashboard when it's rendered in embedded mode

Upgrading to Swetrix CE v5.2 from v5.1.x

[!IMPORTANT]
This upgrade requires a database migration.

Before running the migration, make sure you have a recent backup of your data. This helps prevent data loss if something goes wrong during the upgrade.

[!IMPORTANT]
Swetrix CE v5.2 also updates the self-hosting Docker configuration.

If you installed Swetrix by cloning the selfhosting repository, run git pull in your selfhosting directory to get the latest compose.yaml. If you maintain your own copy of the file, update the image versions manually.

Existing installations must also add a non-empty ClickHouse password to .env:

CLICKHOUSE_PASSWORD=your-random-password-here

The value can be any strong random password. Keep the same value in .env; Docker Compose passes it to both ClickHouse and the Swetrix API.

1. Update your Swetrix services

Before running the migration, update your compose.yaml file to use the latest Swetrix CE v5.2 images:

  • frontend: swetrix/swetrix-fe:v5.2.1
  • backend: swetrix/swetrix-api:v5.2.1

Also make sure your compose.yaml includes the latest self-hosting dependency versions from this release, including the updated ClickHouse image.

Then pull and start the updated services from your selfhosting directory:

docker compose pull
docker compose up -d

2. Run the database migration

Once the updated containers are running, execute the migration script from your selfhosting directory:

docker compose exec swetrix-api node migrations/clickhouse/selfhosted_2026_03_31_data_import.js
docker compose exec swetrix-api node migrations/clickhouse/selfhosted_2026_04_28_gsc.js
docker compose exec swetrix-api node migrations/clickhouse/2026_03_19_isp_network.js
docker compose exec swetrix-api node migrations/clickhouse/2026_04_26_bot_blocks.js
docker compose exec swetrix-api node migrations/clickhouse/2026_05_01_captcha_remove_manually_passed.js
docker compose exec swetrix-api node migrations/clickhouse/2026_05_01_unify_events.js

If the command finishes without any Query ERROR messages, the migration completed successfully. Please don't worry if the migration takes long to execute - it depends on how much data you have accumulated.

3. Restart Swetrix

After the migration has completed, restart your services:
docker compose restart

Then go to your Swetrix dashboard and make sure that your data is intact and that it's working properly.

If everything is looking good, please run the following migration:

docker compose exec swetrix-api node migrations/clickhouse/2026_05_04_drop_legacy_tables.js

It will remove legacy data tables (in v5.2 we migrated into a unified events table instead of different tables for different event types).

Swetrix CE v5.2 should now be ready to use.

That's it, enjoy self-hosting Swetrix! Join our Discord community for updates and discussions.

[email protected] New feature
Notable features
  • Add qs parameter to trackViews and track methods for referrer identification
Full changelog

Changelog:

  • Add a new query string (qs) parameter to trackViews and track methods, that's being used to properly identify referrers if they're not set (to reduce the amount of Direct / None you can see in the traffic sources of the dashboard). Learn more.
[email protected] New feature
Notable features
  • Add qs parameter to trackViews and track methods for referrer identification
Full changelog

Changelog:

  • Add a new query string (qs) parameter to trackViews and track methods, that's being used to properly identify referrers if they're not set (to reduce the amount of Direct / None you can see in the traffic sources of the dashboard). Learn more.
v5.1.1 Bug fix

Fixed profile custom event filtering, user flow panel display, dashboard reload on project changes, custom metrics responsiveness, funnel tooltip layout, and reporting accuracy.

v5.1.0 Breaking risk
Breaking changes
  • Database migration required for 2FA support
Notable features
  • Two-factor authentication
  • Relaxed custom event character limits
  • Offline connectivity handling
v5.0.3 New feature
Notable features
  • Improved onboarding flow
  • Enhanced dark theme
  • Map zoom controls
v5.0.1 Bugfix

## 🔧 Fixes - Fix a faulty migration that prevents v5 from booting up properly

v5.0.0 Breaking risk
Breaking changes
  • UI redesign requires configuration changes
  • Database schema changes require migrations
  • Navigation structure changed
Notable features
  • User profiles for behavior tracking
  • Conversion goals tracking
  • Feature flags support

Beta — feedback welcome: [email protected]