# 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!

Repository: https://github.com/Swetrix/swetrix
Canonical: https://ross.abutalabs.com/products/swetrix
Homepage: https://swetrix.com
Language: TypeScript
License: AGPL-3.0
License Family: copyleft
Topics: docker, webanalytics, self-hosted, selfhosted, privacy, redis, mysql, clickhouse, nestjs, charts, google-analytics, metrics, statistics, tailwindcss, web-analytics, website, gdpr, monitoring
Last push: 2026-08-29T18:30:14+00:00

## Health v2 (maintenance only)
Score: 100/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 100, release rhythm 99, longevity 100
- inputs: {"age_days": 1994, "days_push": 4, "days_rel": 4, "gap_med": 6, "n_releases_24m": 34}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1180, forks 72 (observed 2026-09-01T02:13:57.941580+00:00)

## What it is
Swetrix is an open-source, privacy-first, cookieless web analytics platform serving as a GDPR-compliant Google Analytics alternative. It combines traffic analytics with error tracking, performance monitoring, session replays, funnels, and custom events, and can be self-hosted via Docker or used as a hosted cloud service.

## Use cases
- self-host a privacy-friendly google analytics alternative
- track website visitors without cookies or consent banner
- monitor javascript errors and page load performance
- track custom events and conversion funnels on my site
- gdpr-compliant web analytics for my website
- see real-time traffic sources, referrers and utm campaigns
- replace multiple analytics tools with one dashboard

## When to choose
- you need cookieless, GDPR/CCPA-compliant analytics without consent banners
- you want analytics, error tracking, and performance monitoring in one tool
- you want to self-host your analytics stack with Docker (ClickHouse, Redis, MySQL)
- you need real-time, unsampled traffic data with custom events and funnels

## When to avoid
- you need cross-device user tracking or advertising attribution
- you require deep product analytics like cohort analysis or data warehouse export
- you want a fully free hosted service — the cloud is paid after a 14-day trial
- you cannot operate ClickHouse/MySQL/Redis infrastructure for self-hosting

## Facets
- artifact type: application
- maturity: active
- function: analytics, monitoring, charts, self-hosted, http-server
- domain: analytics, web-development, privacy, self-hosted, monitoring
- platform: self-hosted, cloud
- tags: web-analytics, google-analytics-alternative, cookieless, gdpr, error-tracking, session-replay, performance-monitoring, nestjs, clickhouse, privacy-first, docker, web-server, nodejs

## Member repositories
- Swetrix/swetrix (main) score 100

## Provenance
- Observed fields: from GitHub, fetched 2026-09-01T02:13:57.941580+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T06:28:25.732710+00:00, confidence not recorded.
  - readme: https://github.com/Swetrix/swetrix (fetched 2026-09-01T02:13:57.941580+00:00, sha b97eb551543c)
  - homepage: https://swetrix.com (fetched 2026-08-29T12:34:00.493628+00:00, sha a69ede0991b2)
  - site_page: https://swetrix.com/docs/django-integration (fetched 2026-08-29T12:34:00.514807+00:00, sha 80122825f43f)
  - site_page: https://swetrix.com/docs (fetched 2026-08-29T12:34:00.505671+00:00, sha dca293cd03dc)
  - site_page: https://swetrix.com/docs/angular-integration (fetched 2026-08-29T12:34:00.507417+00:00, sha 8b18dd59bccc)
  - site_page: https://swetrix.com/docs/astro-integration (fetched 2026-08-29T12:34:00.509288+00:00, sha 0079ab8770aa)
  - site_page: https://swetrix.com/docs/bigcommerce-integration (fetched 2026-08-29T12:34:00.511058+00:00, sha 19f0a21d089f)
  - site_page: https://swetrix.com/docs/carrd-integration (fetched 2026-08-29T12:34:00.513035+00:00, sha beb4892da510)
  - site_page: https://swetrix.com/docs/docusaurus-integration (fetched 2026-08-29T12:34:00.516728+00:00, sha 7ec291fc38d5)
  - registry_npm: https://registry.npmjs.org/swetrix (fetched 2026-08-29T12:34:00.519122+00:00, sha 7c7423791219)
- Data as of 2026-08-30T08:39:29.467469+00:00.
