Simple visitor counter for github blog page

4.1k Views Asked by At

Back in the day, much before there was google analytics, there used to be simple visitor counter for webpages. It was just an updating counter which you could link on any page & the page count would be updated each time the page had a hit.

Is there anything simple available for a Blog Page created through Github pages? Not interested in where the traffic comes from or at what time etc. Just the number of hits. Also don't want something like Google Analytics which blocked by a lot of people.

2

There are 2 best solutions below

4
buondevid On

You can add this in your GitHub Profile Readme (or wherever Markdown or HTML are supported):

<p align="center"> <img src="https://komarev.com/ghpvc/?username=GITHUB-USERNAME&label=Profile%20views&color=ce9927&style=flat" alt="GITHUB-USERNAME" /> </p>

Credits: https://github.com/antonkomarev/github-profile-views-counter

0
Gayan Kuruppu On

There is a GitHub Action that uses GitHub API. It updates daily and does not require any servers or databases. It automatically saves changes into the repository. Go to the template GitHub Insights Template