Hit Counter

Easily count hits on a website by requesting a svg that displays a hit count.

Hits

Get the Image for the Page It's On

If you want to get the hit count image for a page you can edit and you want to count, add this line:

<img src="/count/tag.svg" alt="Hits">

Generate SVG Code For A Different Website

Selected Hit Counter

Image Tag

Markdown


Top 10 Domains Using This By Views

Domain Total Hits Counted
nitratine.net 92067
github.com 89653
http%3A%2F%2Finter.fee.lianjia.com%2Ftech%2Fmonitor%2F%25E7%2581%25AF%25E5%25A1%2594%25E7%25B3%25BB%25E7%25BB%259F%25E4%25BD%25BF%25E7%2594%25A8%25E8%25AF%25B4%25E6%2598%258E.html 937
http%3A%2F%2Finter.fee.lianjia.com%2F 835
www.jamesleighton.com 660
http%3A%2F%2Finter.fee.lianjia.com%2Ftech%2Fmonitor%2F%25E8%25AE%25A4%25E8%25AF%2586%25E7%2581%25AF%25E5%25A1%2594.html 657
http%3A%2F%2Flocalhost%3A4000%2F 586
hitcounter.pythonanywhere.com 567
http%3A%2F%2Finter.fee.lianjia.com%2Fservice%2FjsBridge.html 324
http%3A%2F%2Flocalhost%3A4000%2Fwrite%2Band%2Brun%2Ba%2Bbackend%2Btest%2Bcase.html 296

About

This site allows you to request for a svg file that displays views for a url. This url can either be passed as a query parameter or the referrer (or referer) value in the header will be used.

These is also a small method to prevent the refresh count increase issue (if you want to call it an issue, I see it as annoying) which uses cookies.

This makes is very easy too keep track of views on static sites like Github Pages. (can also be uses on non-static sites as a general counter)

The source code of this server can be found at github.com/brentvollebregt/hit-counter.