📊 Setup Plausible Analytics — Privacy-First Web Analytics

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.

⚠️ 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 — Plausible with Postgres & ClickHouse backend.
View on GitHub

Quick Install:

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

Tutorial Steps

1 Download & Run the Script

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

2 Create Your Admin Account

Open your browser and navigate to Plausible. On first visit, register your admin account:

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

3 Add Your Website

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.

4 Embed the Tracking Script

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.

Ports Used

PortPurpose
8100Plausible Web UI