fastify / website

https://fastify.dev/
MIT License
60 stars 59 forks source link

Site stats #165

Open alexfernandez opened 10 months ago

alexfernandez commented 10 months ago

Prerequisites

🚀 Feature Proposal

Do you have stats for the site fastify.dev? I was in the same spot for my GitHub pages site so I built LibreCounter, a free, open site stats project that collects stats without cookies or tracking of any kind.

Only aggregates are stored for each site, page and day combination, so GDPR compliant (no personal data stored like IP addresses or user agents). Also no cookie warning necessary. Stats are public and available for everyone.

If you are interested I can implement a pull request, it's quite simple to integrate. No need to display the LibreCounter logo on the web pages, just a silent "pixel" of old. Since I have the site running anyway it's no additional cost for me, and also you can inspect the code (or even self-host) if needed.

You can also display an old fashioned counter or we can work out a custom solution if you want.

Let me know!

Motivation

I am guessing you don't have stats for the site fastify.dev, at least I don't know how to get them from GitHub pages. It can be useful to know how many visits you get every day, what pages are the most visited, where the visitors come from and so on. But having a cookie warning is a bummer, and also having to deal with the GDPR and the multiple legislations around the world. LibreCounter should provide an acceptable compromise with no tracking and no cookies.

LibreCounter uses Fastify by the way, so thanks for that! :pray:

Example

Stats would be visible at librecounter.org/fastify.dev/show:

image

alexfernandez commented 10 months ago

I went ahead and implemented the linked pull request: https://github.com/fastify/website/pull/167. Please let me know if it's appropriate. Thanks!

Eomm commented 10 months ago

That's correct: we don't have stats, but we are migrating our infra under the OpenJS Foundation - so we may consider to add this feature after this move

alexfernandez commented 10 months ago

OK, understood! If you want stats right here and now then let me know :smiley:

alexfernandez commented 10 months ago

Help was not appreciated, closing. Let me know if it's needed at any point.