MirrorNest
← Tutte le guide

Plausible Analytics

A lightweight, open-source, privacy-focused web analytics tool with a simple dashboard, positioned as a GDPR-friendly alternative to Google Analytics.

Sistema: Any Docker hostAnalyticsSito ufficiale ↗Documentazione ufficiale ↗
Questa guida è redatta a partire dalla documentazione ufficiale di Plausible Analytics, linkata sopra — verifica sempre lì i nomi esatti di pacchetti/versioni prima di eseguire questi comandi su un server di produzione, poiché le versioni della distribuzione e del progetto cambiano nel tempo.
  1. 1Clone the Community Edition repo

    git clone https://github.com/plausible/community-edition.git plausible-ce
    cd plausible-ce

    Check the repo's Releases page for the latest tag and consider cloning that specific tag instead of the default branch.

  2. 2Create the .env configuration

    touch .env
    echo "BASE_URL=https://plausible.example.com" >> .env
    echo "SECRET_KEY_BASE=$(openssl rand -base64 48)" >> .env
  3. 3Start the stack

    Plausible runs as three containers: the web app (Elixir), PostgreSQL for accounts, and ClickHouse for analytics events. ClickHouse needs at least 2 GB RAM at idle.

    docker compose up -d
  4. 4Create the first user

    Visit your BASE_URL and register the first account through the web UI.