dwyl / hits

:chart_with_upwards_trend: General purpose hits (page views) counter
http://hits.dwyl.com
GNU General Public License v2.0
438 stars 62 forks source link

Add badge to GitHub Pages #60

Open arboriculteurs opened 5 years ago

arboriculteurs commented 5 years ago

Is it possible to have the badge displayed not in the Readme file but in the index page of a website hosted on GitHub Pages ? Thanks a lot

nelsonic commented 5 years ago

@arboriculteurs good question is that a feature you would find useful? 🤔

arboriculteurs commented 5 years ago

Thanks a lot for your prompt response... Yes, I find it very useful. Because I learn to associations how to create free websites with Jekyll. And because of EU regulations, we want a web counter that works on Github pages, do not rely on external services with advertisements et uses no cookies. So no Google stats... Your badge seems to be perfect if it could be put on another page than the readme.

nelsonic commented 5 years ago

@arboriculteurs have you tried it...? 😉 (it's a general web counter so it will work anywhere) (_also for GDPR compliance you need to be in control of the data that is being collected, so if a user of your service requests deletion of their personal data (of which IP address counts), you must be able to delete it. So using the Hits badge which pushes IP address and "page view" data to my database is probably not compliant from your perspective..._) Given that all the code is Open Source you consider adapting it to run on your own App e.g. on Heroku Free tier. and thus maintain control of all the data and be able to run your own analysis.

arboriculteurs commented 5 years ago

Yes, of course, I did. I putted the markdown snippet on the footer of a Jekyll generated page, but nothing happened. I have not noticed that you collect the IP to... But an IP without any other personnal information should be considered compliant with GDPR. Thanks for all the advices : I will try again.

nelsonic commented 5 years ago

@arboriculteurs unless you have a markdown parsing step in your Jekyll build it won't work like that. You need to use HTML. Please note that Hits was not intended to be a "analytics as a [free] service" so definitely consider running your own instance of Hits on Heroku or equivalent free hosting service.