Hit counter
A hit counter is the oldest thing on the web and still one of the nicest. This one shows your site’s lifetime hit count, and it is available on every plan.
Add ?hits to the embed, then put an element wherever the number belongs:
<script defer src="https://tinylytics.app/embed/YOUR_EMBED_CODE.js?hits"></script>
<span class="tinylytics_hits"></span>
The tag itself does not matter — a span, a strong, a div all work. The class is what the script looks for. Put several on one page and they all show the same lifetime total, since it is a site figure rather than a page one.
Unique hits instead
On a paid plan, ?hits=unique fills the element with unique hits rather than total hits, which is the more modest and arguably more interesting number. Legacy free accounts fall back to the total.
<script defer src="https://tinylytics.app/embed/YOUR_EMBED_CODE.js?hits=unique"></script>
Styling
The number inherits whatever type surrounds it. Tabular figures stop it jittering as the count grows, which is worth two lines of CSS:
.tinylytics_hits {
font-variant-numeric: tabular-nums;
letter-spacing: 0.06em;
}