Skip to content
Hands-on course · 11 days

Plausible Analytics hands-on

Plausible Community Edition day by day on your own VM – the Compose stack and .env, PostgreSQL and ClickHouse under the hood, events by hand, the script in a demo website, Caddy with HTTPS and real visitor IPs, ad blockers and your own domain, goals, custom events and properties, the Stats API and SQL on the raw data, privacy and shields, backup and restore including the keys, operations, upgrades and mail, a competition about wrong numbers and a final exam.

  • Free · no subscription
  • 11 days · 60–75 min each
  • 90 drills · with expected output
Day 1 · Drill 4: The first user
# on argo
$ cd ~/plausible/ce
$ docker compose exec -T plausible_db psql -U postgres -d plausible_db \
$   -tAc "select id, email, name from users"

Expected

1|[email protected]|Lab Admin

What you'll be able to do

  • Set up Plausible CE as a Compose stack, close registration and follow an event into ClickHouse
  • Serve Plausible over HTTPS behind Caddy and pass real visitor IPs through the proxy
  • Set up goals, custom events, properties and scroll depth and prove every conversion in ClickHouse
  • Back up all three parts of Plausible, restore them into a fresh stack and rehearse an upgrade

What you need

LabOne VM with Ubuntu 24.04 for Docker, Plausible CE and a browser in a container – 4 GiB RAM is enough, from 6 GiB things get relaxed

InternetInternet access for the VM for images and the Docker package repository

BrowserA browser on your machine for the steps in the UI (user, goals, Shields)

Prior knowledgeYou should know containers, volumes and Compose, find your way around the Linux shell and be able to read a little HTML. SQL knowledge helps but is not required.

Set up your labKubernetes locally · Lab VMs

Training plan

One day = one sitting. Every day ends with a checkpoint and a challenge. About 15 hours in total.

Training days

  1. Day 0 The Training GroundOne VM runs Docker, a replica of itdrills.com and a browser in a container that can generate visits – everything Plausible is supposed to measure from Day 1 on. 60 min
  2. Day 1 Starting Plausible CEPlausible Community Edition runs as a Compose stack, you have created the first user and the site itdrills.com, closed registration and know why docker compose restart ignores a changed .env. 60 min
  3. Day 2 Under the HoodYou send pageviews to Plausible by hand, follow them all the way into ClickHouse, recognize dropped events by a header and understand how requests turn into visitors and sessions. 60 min
  4. Day 3 The ScriptThe tracking snippet sits in every page, a browser in a container generates visits with source, campaign, download, form and outbound link – and you know why Plausible filters out automated browsers twice. 75 min
  5. Day 4 HTTPS and Reverse ProxyCaddy serves Plausible and itdrills.com over HTTPS, script and events run through your own domain past ad blockers, and you recognize and fix the classic behind every proxy: all visitors are one. 75 min
  6. Day 5 Goals, Events, PropertiesYou create the three kinds of goals – pageview with wildcard, custom event with a property, scroll depth –, trigger them on purpose and prove every conversion in ClickHouse. 75 min
  7. Day 6 API and Raw DataYou query Plausible through the Stats API – metrics, breakdowns, filters –, analyse sequences directly in ClickHouse, where CE has no funnels, and fetch an export from the container. 60 min
  8. Day 7 Privacy and ShieldsYou prove what Plausible stores and what it does not, block visitors with a shield, fix a hostname allowlist that is too narrow and share the dashboard via a secret link. 60 min
  9. Day 8 Backup and RestoreYou back up all three parts of Plausible, restore them into a fresh stack, prove that the numbers match and see what happens without the old keys. 75 min
  10. Day 9 Operations and UpgradeYou know how much CPU, memory and disk Plausible needs, recognize a ClickHouse outage, send e-mails through a test mail server and rehearse an upgrade including the way back on a trial stack. 60 min

More