[Github Blog] Count views number using HITS
How to add a views count on Github Blogs
I wanted to figure out how many people are visiting my devlog.
HITS counts the views when the link is viewed.
Steps are as below:
- Create your own HITS badge
https://hits.seeyoufarm.com/#badge
You can customize your badge (Color, title, and icon)
- Copy the link (HTML link for _layouts/single.html)
- Put this code into the [_layouts/single.html] file
~~~ html
~~~
My badge:
The numbers stand for
[Daily views count / Total views count (accumulated)]
But It doesn’t count the unique visitors (UV).