Deploy Plausible Analytics on Ubuntu with Docker — a lightweight, open-source alternative to Google Analytics that respects your visitors' privacy. No cookies, no personal data collection, GDPR-compliant by design.
Grab the automated bash script from GitHub to follow along with the video.
wget https://raw.githubusercontent.com/mhmdali94/Docker/main/analytics/plausible/plausible-ubuntu.sh
chmod +x plausible-ubuntu.sh
sudo bash plausible-ubuntu.sh
The script installs Docker, starts the full Plausible stack (app + PostgreSQL + ClickHouse + email service), and generates a secure secret key automatically.
wget https://raw.githubusercontent.com/mhmdali94/Docker/main/analytics/plausible/plausible-ubuntu.sh
chmod +x plausible-ubuntu.sh
sudo bash plausible-ubuntu.sh
Open your browser and navigate to Plausible. On first visit, register your admin account:
http://<your-server-ip>:8100
After login, click "Add a website" and enter your domain name (e.g. example.com). Plausible will generate a lightweight tracking snippet for you to embed on your site.
Copy the generated <script> tag and paste it into the <head> section of your website. Within minutes, live visitor data will appear in your Plausible dashboard — no cookies, no consent banners needed.
| Port | Purpose |
|---|---|
| 8100 | Plausible Web UI |