Adlens

Help · Traffic

View counter

A public badge with a site's pageview count, for a footer or a README.

A public count of pageviews #

Turn on View counter in the site's Settings, on the Sharing tab, and the site gets a badge that reads "views" and every pageview up to yesterday. Put it in a footer, a README or a forum signature. It works while the dashboard itself stays private, and shows the count and nothing else.

Add it to a page #

Settings shows the code to copy: one <img> tag. To build your own, the same count is at /api/public/<slug>/counter as JSON: {"pageviews":123456,"through":"2026-11-03"}, where through is the last full day it counts, in UTC.

How fresh it is #

The count moves on once a day, at about 03:20 UTC, when the day before has been added up. A site's first count, and through, appear after the first of those runs following its first pageview; until then through is null. Browsers keep the badge for an hour, so after you turn the counter off, pages that show it can keep it for up to an hour; after that it answers "not found".