Video coming soon…

📈 Setup Swetrix — Privacy-Focused, Cookie-Free Web Analytics

Deploy Swetrix on Ubuntu with Docker — an open-source, privacy-first web analytics platform with a polished dashboard, powered by ClickHouse for fast queries, with the frontend on port 8234.

⚠️ This script is provided for demo and testing purposes only. Not intended for production use.

📦 Resources & Setup Scripts

Grab the automated bash script from GitHub to follow along with the video.

Automated install script — deploys the full Swetrix stack (frontend, API, ClickHouse, Redis). The frontend is on port 8234 and the API on 8235, with a generated admin login printed after install.
View on GitHub

Quick Install:

wget https://raw.githubusercontent.com/mhmdali94/Docker/main/analytics/swetrix/swetrix-ubuntu.sh
chmod +x swetrix-ubuntu.sh
sudo bash swetrix-ubuntu.sh

Tutorial Steps

1 Download the Script

wget https://raw.githubusercontent.com/mhmdali94/Docker/main/analytics/swetrix/swetrix-ubuntu.sh

2 Make it Executable

chmod +x swetrix-ubuntu.sh

3 Run the Installer

The script installs Docker if needed and starts the full Swetrix stack — the frontend on port 8234, the API on 8235, plus ClickHouse for analytics data and Redis. It generates JWT secrets and an admin account (admin@example.com) with a random password.

sudo bash swetrix-ubuntu.sh

4 Open the Dashboard and Log In

Open the Swetrix frontend, log in with the generated admin@example.com account, then add your website and copy the tracking snippet:

http://<your-server-ip>:8234

Ports Used

PortPurpose
8234Frontend / dashboard (host → container 3000)
8235API (host → container 5005) — where tracking events are sent
admin@example.comGenerated password, printed after install — change it
ClickHouse + RedisInternal — ClickHouse stores your analytics data

Overview

Why Use It

When You Need It

    Who Should Use It

      Real Use Cases

        Main Features

          How to Use After Installation

            Security Best Practices

              Ports and Firewall Notes

              Backup and Maintenance

                Common Mistakes

                  Troubleshooting

                    Alternatives

                    When Not to Use It

                    PrismaTechWork Professional Help

                      Contact Us

                      Frequently Asked Questions