site  contact  subhomenews

ShellCMS now supports hit counter

February 02, 2020 — BarryK

This has been a long time coming. I have sometimes wondered how many people visit my blog, and today finally decided to do something about it.

My website is created with ShellCMS, a static site generator:

https://bkhome.org/shellcms/index.html

There are lots of free visitor counters available for a static site, many of them require running code such as Javascript at their site!!!

However, there are a few that are just <img> tag links, just return an image file. Tried four of them, three didn't work. The fourth one is good. It requires visiting their site and generate the code:

https://www.hitwebcounter.com/

...the HTML code has a "page" number that is unique, and you must use that.

Look at the bottom of my blog main page, and you will see the counter:

https://bkhome.org/news/

...it only appears on the main 'index.html' page, not on any sub-pages.

Support for www.hitwebcounter.com visitor counter has been incorporated into ShellCMS, look at files 'shellcms' (comment #200202), 'cms_config/cms_footer.txt' and 'cms_config/hit-counter'. Here is the latest tarball:

https://bkhome.org/files/shellcms.tar.gz 

Tags: shellcms