How to Install Plausible Analytics on Debian 12
Introduction
Plausible Analytics is an open-source and privacy-friendly alternative to Google Analytics. This tutorial will guide you through the process of installing Plausible Analytics on Debian 12.
Prerequisites
Before you begin, ensure you have:
- A Debian 12 server or desktop system
- Docker installed on your system. If not installed, you can follow this guide: Docker Installation Guide.
Step 1: Install Docker
Install Docker on Debian 12:
sudo apt update
sudo apt install -y docker.io
Step 2: Pull Plausible Docker Image
Pull the Plausible Analytics Docker image:
sudo docker pull plausible/analytics:latest
Step 3: Create Persistent Data Volume
Create a persistent data volume for Plausible Analytics:
sudo docker volume create plausible_data
Step 4: Run Plausible Docker Container
Run the Plausible Analytics Docker container:
sudo docker run -d \
--name plausible \
-p 80:80 \
-v plausible_data:/var/lib/postgresql/data \
plausible/analytics:latest
Step 5: Access Plausible Analytics
Open a web browser and navigate to http://your_server_ip
to access Plausible Analytics. Follow the on-screen instructions to complete the setup.
Conclusion
Congratulations! You have successfully installed Plausible Analytics on Debian 12 using Docker. You can now use Plausible Analytics to track and analyze website traffic.