SwetrixPrivacy-first open-source web analytics with monitoring built in
TianjiCombined web analytics, uptime, and server status
Swetrix vs Tianji
How Swetrix and Tianji compare on popularity, activity, license and platforms: two open-source Web & Product Analytics projects, both alternatives to Google Analytics and Google Analytics 4.
At a glance
- Tianji has more GitHub stars (3.1k vs 1.2k, about 3× as many).
- Both are actively maintained (last commits yesterday and today).
- Swetrix uses AGPL-3.0 (copyleft); Tianji uses Apache-2.0 (permissive).
- Both can be self-hosted.
- Swetrix is the older project (repository started 2021; Tianji in 2023).
Side by side
| Swetrix | Tianji | |
|---|---|---|
| GitHub stars | ★ 1,229 | ★ 3,126 |
| Forks | 80 | 202 |
| Last commit | yesterday | today |
| Latest version | v5.5.4 | v1.34.7 |
| Repository started | March 2021 | August 2023 |
| License | AGPL-3.0 · copyleft | Apache-2.0 · permissive |
| Self-hosted | Yes | Yes |
| Platforms | Web, Docker | Docker |
| Main language | TypeScript | TypeScript |
| Alternative to | Google Analytics, Google Analytics 4 | Google Analytics, Google Analytics 4, Pirsch |
Highlighted: more stars or forks, or a last commit at least two weeks more recent. Data from GitHub, updated 27 November 2026.
Swetrix
Swetrix offers cookieless, GDPR-oriented website analytics with traffic stats, funnels, and custom events. You can use hosted Swetrix Cloud or deploy the Community Edition yourself with Docker.
Key features
- Cookieless GDPR-oriented tracking
- Real-time analytics dashboard
- Custom events and funnels
- Client-side error tracking
- Real-user performance monitoring
- Session replays with storage setup
Tianji
Tianji bundles website analytics, uptime monitoring, and server status reporting in one open-source application for lightweight operations insight.
Key features
- Website analytics
- Uptime monitoring
- Server status reporting
- Status pages
- Telemetry collection
- OpenAPI interface