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
# 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.
Read first: Foreword
Training days
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
Finale
against the clock- Day 10 Competition – the Numbers Are WrongIn eight rounds you find and fix planted mishaps from across the book – snippet, proxy, goals, shields, ClickHouse and keys – against the clock and with proof. 120 min
- Appendix B Final ExamYou solve 14 tasks from across the book in 120 minutes – measuring a new page, visitors, goals, API and SQL, shields, two planted mishaps, backup and mail – and grade yourself. 120 min
Extras
optionalReady? Day 0 takes 60 min.
Reading works without an account. A free account saves your progress.
Related courses
More on this topic: Docker and container courses