less than 1 minute read

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:

  1. Create your own HITS badge
    https://hits.seeyoufarm.com/#badge
    You can customize your badge (Color, title, and icon)


  1. Copy the link (HTML link for _layouts/single.html)


  1. 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).

Categories:

Updated: