Hit counter
A small lifetime count on your own site. Available on every plan.
Add ?hits to the embed, then put an element wherever the number should show:
<script defer src="https://tinylytics.app/embed/YOUR_EMBED_CODE.js?hits"></script>
<span class="tinylytics_hits"></span>
Any tag works. The class is what matters. Several counters on one page all get the same lifetime total.
Unique hits
?hits=unique is on paid plans and fills the element with unique hits instead of total hits. Legacy free accounts ignore that parameter.
<script defer src="https://tinylytics.app/embed/YOUR_EMBED_CODE.js?hits=unique"></script>
Styling
The number inherits your type. This is a starting point:
.tinylytics_hits {
font-variant-numeric: tabular-nums;
letter-spacing: 0.06em;
}