Visit Counter

Analytics Free

Privacy-first hit counter for your static site. Live number, SVG badge, or both. No cookies, no tracking.

visits: 4,096 visits4,096 Badge preview
Screenshot 1
Screenshot 2
Screenshot 3

Get started with Visit Counter

terminal
$ fyra addons:create counter --app=your-app
  1. Create the addon with fyra addons:create counter --app=your-app
  2. Add the embed snippet to your HTML — JS embed for a live counter, or an <img> tag for a simple badge
  3. Deploy with fyra push — your counter starts counting from the first visitor

Details

About Visit Counter

A simple, privacy-first hit counter for static sites. It counts page visits — nothing more. No cookies, no fingerprinting, no personal data. GDPR-friendly by design. Choose between a live JavaScript counter that updates on every page load, a clean Shields.io-style SVG badge, or use both.

How it works with Fyra

The counter is provisioned through the Fyra CLI and tied to your app. No separate account or API key needed — it inherits your app's authentication. Origin protection ensures only your registered domain can increment the count, so nobody can inflate your numbers from elsewhere.

Features

  • JS Embed Live counter that updates on page load. Targets any element with data-counter.
  • SVG Badge Shields.io-style badge for READMEs and simple pages.
  • Origin Protection Only your registered domain can increment the count.
  • No Cookies Counts page visits, nothing else. GDPR-friendly by design.
  • Zero Config Install, embed, done. Handles caching and errors silently.
  • Lightweight Under 400 bytes gzipped. Fail-silent — never breaks your site.

Embed snippets

JavaScript embed
<!-- Add before </body> --> <span data-counter="ctr_abc123"></span> <script src="https://counter.addons.fyra.sh/c/ctr_abc123.js" async></script>

The script finds any element on your page with a matching data-counter attribute and replaces its content with the current visit count. Place the <span> wherever you want the number to appear — the dash is shown while the script loads.

SVG badge
<!-- HTML --> <img src="https://counter.addons.fyra.sh/c/ctr_abc123/badge.svg" alt="visits" /> <!-- Markdown --> ![visits](https://counter.addons.fyra.sh/c/ctr_abc123/badge.svg)

The badge displays a static Shields.io-style image with your visit count. If you use the badge alone (without the JS embed), make sure the JS script is also loaded on your page — it handles sending the increment request. Without it, the badge will display the count but won't increment on new visits.