Contact support

We reply by e-mail, usually within two days.

Google reCAPTCHA checks this submission against abuse; data is sent to Google. The script loads only when this form is opened.

All guides

Visitor counter for GitHub Pages

GitHub Pages serves your files as they are, so the code goes straight into the page. Markdown pages built with Jekyll work as well: its Markdown converter passes raw HTML through, including the script tag.

Step by step

  1. Pick a design on Stats4U and copy the code from the HTML tab.
  2. For a counter on every page, put it into the layout – for example _layouts/default.html or _includes/footer.html – just before </body>.
  3. For a single page, paste it into the .html or .md file where the counter should appear.
  4. Commit and push. The site is rebuilt after a short while.

The code

Tab for this platform: HTML

<script src="https://www.stats4u.net/s4u.js"
        data-id="12345" data-style="3903" async></script>

In this example the counter number is 12345 and the design is a sample. The wizard gives you your own number and the design you pick.

Free counter

Good to know

Guides for other platforms