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 WordPress

On a self-hosted WordPress the counter goes into a Custom HTML block – in a post, on a page or in the footer widget area. The script works there as long as your user role may post unfiltered HTML, which administrators can.

Step by step

  1. Pick a design on Stats4U and copy the code from the HTML tab.
  2. In WordPress open the post, the page or Appearance → Widgets, click + and add a “Custom HTML” block.
  3. Paste the code into that block – not into a Paragraph block, which shows code as text instead of running it.
  4. Save or update, then open the published page.

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