tnonate / thenewoil

A project dedicated to teaching beginners and non-tech-savvy people about digital privacy and cybersecurity.
https://thenewoil.org
Other
15 stars 8 forks source link

#https://github.com/tnonate/thenewoil/issues/10 #11

Closed Rikthepixel closed 7 months ago

Rikthepixel commented 7 months ago

Adblockers like uBlock that make use of EasyList block the self-hosted Plausible analytics. The (publicily available) analytics are helpful to know how much effort should be spent into the website as a whole.

For now a workaround has been used by naming the analytics domain plausible.thenewoil.org, but this will likely be blocked later on. A reliable way to do analytics that can't be blocked (and in our case must respect privacy) is server-side analytics. A few options are on the table:

[Caddy metrics](https://caddyserver.com/docs/metrics), these are server-side and can be made public. I don't know how much Caddy metrics respects privacy or if it conforms to GDPR, so that will have to be looked into.
[Manually calling the Plausible API](https://plausible.io/docs/events-api), Somehow the server (Caddy) could call the Plausible API to register a page-view. Idk if this is possible.
(Last resort 💀) Automate a way to change the analytics domain. If all else fails, this is a (janky) last resort. Add a hash in front of the domain so like aejklg.thenewoil.org. It could be automated, but that would be hard and janky. I advice against it, but it is technically possible.