Swetrix
Privacy-focused, cookieless, and open-source web and product analytics.
Why consider Swetrix?
Swetrix is a lightweight, privacy-focused open-source web analytics platform. It complies with GDPR and HIPAA without using tracking cookies, offering error monitoring and performance metrics.
Learn Swetrix by building
Practical setup notes, real use cases, and copy-ready examples in one focused guide.
In this guide3 sections
Overview of Swetrix
Swetrix provides cookieless website analytics, performance metric tracking, user session timelines, and live error alerting in a single self-hostable platform.
Running with Docker Compose
git clone https://github.com/Swetrix/swetrix.gitcd swetrixdocker compose up -dAccess the management dashboard on http://localhost:3000 to register projects and obtain tracking scripts.
Embedding the Script
<script src="https://swetrix.org/swetrix.js" defer></script><script> document.addEventListener("DOMContentLoaded", function () { swetrix.init("PROJECT_ID", { apiURL: "http://localhost:3000/api" }); swetrix.trackViews(); });</script>Swetrix is distributed under the GNU AGPL-3.0 license.
Related tools
More options with a similar category or technology profile.
diskus
Minimal, fast alternative to du -sh written in Rust using multi-threaded directory traversal.
peco
Simplistic interactive filtering tool for Unix pipelines, process lists, and file trees.
Dapr CLI
Command-line tool for managing Dapr distributed application runtime environments and sidecars.
Freeze
Generate beautiful image screenshots and SVGs of code snippets and terminal outputs.