measuremy.site

How to add a visitor counter to your website or GitHub README

Visitor counters were everywhere on the early web, and they're back: on personal sites, project READMEs, small blogs and portfolios. A counter shows visitors (and you) that people are reading, and a country breakdown is a nice reminder of how far a small page can travel.

How a visitor counter works

Most counters today are images. Your page includes an image from the counter service, and every time the page loads, the browser requests that image. The service counts the request and draws the current total into the image it sends back. Because it's just an image, it works almost anywhere: plain HTML, a blog platform, a GitHub README, a forum signature or a Notion page.

The details decide how honest the number is:

Adding one in a minute

The free visitor counter on this site makes a counter of visitors by country. Give it a label, pick a light or dark style and how many countries to show, and copy the snippet:

Each visitor is counted once a day using a one-way hash of their IP address and browser that changes daily; no cookies are set and no IP addresses are stored, so there's nothing to add to a cookie banner. Bots and link previews aren't counted. Anyone who clicks the counter sees a stats page with the list of countries.

A note on GitHub

GitHub loads README images through its own image proxy. The counter is served uncached so every view still reaches it, but the visitor's location is seen less precisely through the proxy, so country figures from a README are rougher than from a website.

When a counter isn't enough

A counter answers "how many, and from where". It can't tell you which pages people read, which link brought them, or whether they signed up. When you need those answers, use analytics. measuremy.site uses the same no-cookie approach for a full dashboard of pages, sources and conversions, and your coding agent can read it. A counter is a good start for a personal page; for anything you're trying to grow, you'll want both.

To see roughly how much traffic another site gets, try the website traffic checker.

See it on your own site

measuremy.site is cookieless analytics your coding agent can read. 30-day free trial, no card. Plans from $9/month.

Start free trial See the live demo

Add measuremy.site analytics to this project: connect the measuremy.site MCP server at https://a.measuremy.site/mcp (it signs in with OAuth, no key), then tell me how to sign in. Details: measuremy.site/llms.txt

Free tools

All free tools

More from the blog