cruftlab / tilfeldigeord.no

A new (again) minimal, static website for tilfeldigeord.no, built with Eleventy
https://tilfeldigeord.no
MIT License
1 stars 1 forks source link

Add usage analytics #70

Open loket opened 1 year ago

loket commented 1 year ago

It would be very useful to add some sort of analytics to the site, to know how much it's used. There's currently nothing.

Ideally, usage should be reported without JavaScript (i.e. using server logs), but I've yet to find a hosting provider that does that (at least for free/cheap). I could of course host it myself, but I'd rather not.

CloudFlare offers Free Website Analytics, and they also have free Pages, which would solve #67.

loket commented 1 year ago

Also, it's important that analytics are disabled when running locally. Should consider including this as part of the production build.

loket commented 1 year ago

Eleventy also supports environment variables, which could probably be used here.

loket commented 1 year ago

Mixpanel offers a very generous free tier, with a promising privacy policy. Probably the best choice?