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. In addition, our own form protection formconfirmed checks it, without passing data to third parties.

World maps

See recorded traffic on a world or regional map. Choose a map below, adjust its appearance if needed and copy the code into the website.

110 maps, all vector graphics: the world with one point per country, the world and the continents with coloured countries and cities, plus 91 countries with their regions and a map that picks the country with most visitors by itself. Twelve palettes or your own colours, background selectable or transparent, period, colour scale, light/dark by device, and a live version where countries with visitors glow.

Pick one and embed itFlag counters →Globe counter →

Advertisement

1 Choosing a design

Custom design

Shape and colours are free; the preview updates instantly.

World map

Shows where visitors come from, as dots on a world map.

Europe

Asia

Africa

North America

South America

Oceania

Classics since 2006 (110)
Advertisement

2 Options optional

The counter works with the default settings. These options adjust its appearance, access or additional measurements; none is required to get started.

Adding the code
Which settings are useful?
Choosing a design
Colours, size and display options change how the counter looks. The default design works too.
Keep a way back to the counter
Save an accessible email address with the button, then confirm it using the email link. This provides a way back to the counter. Without it, keep the private management link; website verification is another recovery route.
Start count
For a fresh start, leave this empty or use 0. When switching from another counter, enter its total as the starting value. This carries over a number, not old daily reports.
Custom name for the address (optional):
A short name such as myshop makes the statistics address easier to remember. Use 2–20 characters: a-z, 0-9, - or _. A name made only of digits or already taken is unavailable. Leaving this empty keeps the numbered address.
Private statistics (no link to public panel)
Keeps the statistics from being publicly readable. Save the private management link: it opens both reports and settings. To share reports without settings access, create a separate reading link in the counter tools.
Optionally protect the statistics with a password:
A viewing password lets other readers open the statistics after entering it. Save it with the button beside the field. It is separate from the owner key in the private management link.
Also count link clicks
Adds automatic events for supported link clicks. No value needs to be entered here. Leave this off if page-view counting is enough; clicks alone do not prove a successful enquiry or purchase.
Count transitions between pages
Counts transitions between pairs of pages. This is on by default and can be switched off. The result shows common transitions, not a recording of an individual visit.
Also measure screen and browser-window size
Adds screen size, browser-window size and pixel ratio to the script’s measurements. This is off by default. Use it only when needed and after checking the website’s requirements.
Join the ring
The webring links participating websites. Joining is optional: enter the page containing the counter and a short title, then complete the installation check. The counter works without membership.
Address or range not to count
Exclusion settings keep own visits out of future measurements. Choose a suitable method in the exclusion section. They do not make the statistics private or remove earlier visits.

Where available, automatic refresh updates the displayed counter image without reloading the page. These refreshes do not add visits and do not make visitor measurement more accurate.

Starting value and short name save when their fields lose focus. Other settings show a Save button or a status message. After changing the design or code options, copy the updated code and replace the old code on the website.

Starting value and short name save when their fields lose focus. Other settings show a Save button or a status message. After changing the design or code options, copy the updated code and replace the old code on the website.

Keep a way back to the counter

An email address can help recover access later. Send the confirmation email and open its link to finish saving the address. Alternatively, keep the private management link in a safe place.

The saved address is used to send the access link again on request. It is not used for advertising or newsletters and can be removed here.

Google reCAPTCHA checks this submission against abuse; data is sent to Google. The script loads only when this form is opened. In addition, our own form protection formconfirmed checks it, without passing data to third parties.

Supported links within the website and to other websites are counted as events. Names come from the target address, not the link text. Up to 70 automatic event names are available. A click does not confirm a successful form submission or purchase.

Shows how often one page follows another within half an hour. This is on by default and can be switched off. The report shows a pair only after at least 5 transitions; it does not show complete individual journeys.

Adds data-screen="1" to the script code. The browser then reports screen size, window size and pixel ratio. Leave this off unless those details are needed, and check the requirements for their use on the website.

Access and other settings

Keeps the statistics from being publicly readable. Save the private management link: it opens both reports and settings. To share reports without settings access, create a separate reading link in the counter tools.

For a fresh start, leave this empty or use 0. When switching from another counter, enter its total as the starting value. This carries over a number, not old daily reports.

2 to 20 characters, letters, digits, "-" and "_" only. /live/<number> keeps working alongside it. Empty field = no alias.

Webring

At least 6 characters. Save the password with the button beside the field. Saving an empty field removes it. Keep a copy: the viewing password cannot be recovered, but authorised owner access can change it.

A single address or a whole range (83.10.1.0/24). A range is usually the better choice: most connections get a new address every day, but the network around it stays the same. What goes in here is stored in the clear and can be removed at any time. This request is coming from right now.

3 Adding the code

Already have a Stats4U counter? Keep its number

A new look does not need a new number. With the old one, the new code keeps counting in the same statistics, including the total so far.

What the counter weighs

Where does it go?

chomikuj.pl

The counter goes into the chomik description ("opis"). Descriptions do not accept scripts, so the "HTML <img>" tab replaces the first line, and the page address goes into the field below, so the statistics know where the counting happens.

Step by step →

WordPress

Appearance → Widgets, or anywhere in the block editor: a „Custom HTML" block takes the code. It has to be the „Custom HTML" block, not „Paragraph" – a paragraph shows the code as text instead of running it.

Download the plugin (zip) – shortcode [stats4u] or automatically in the footer

Step by step →

WordPress.com

Careful, this is not the same as a self-hosted WordPress: on the free plan WordPress.com strips script, iframe and embed out of the „Custom HTML" block. The counter then simply does not appear, with no error. Scripts need a paid plan with hosting features switched on. The Markdown tab is the one to use here – the plain image gets through on any plan.

Step by step →

Blogger

Layout → Add a Gadget → HTML/JavaScript. The code goes in there and gets saved – done.

Step by step →

Ghost

Settings → Code injection → Site footer. If the counter should sit somewhere specific rather than at the very bottom, it belongs in the theme instead.

Wix

Add → Embed → Embed HTML → Enter code, paste, update. Two things to know: Wix puts the code into a sandboxed frame, so the counter sees the address of that frame and not of the page it sits on – the page list stays empty here. And the address has to be https, Wix will not accept http.

Step by step →

Weebly

Build → drag “Embed Code” onto the page → “Edit Custom HTML” → paste the code. Weebly puts the code straight into the page, so the list of pages fills normally. For every page at once: Settings → SEO → “Footer Code”.

Step by step →

Squarespace

Edit page → Add block → Code. JavaScript and iframes need the Core plan or higher there; on Personal and Basic the block stays empty. HTML and Markdown work on every plan though – the block switches to Markdown, and the Markdown tab supplies the code.

Neocities

index.html opens in the editor and the code goes in before </body>. That is all there is to it – custom HTML is allowed there without restrictions.

Step by step →

Hugo, Jekyll, Astro

Into the template, not into the post: layouts/partials/footer.html (Hugo), _includes/footer.html (Jekyll) or src/components/Footer.astro (Astro). If the counter should appear in one single post only, the Markdown tab does it, written straight into the text.

Step by step →

Count clicks and downloads too

An event is something someone does – a click on "Contact", a submitted form, a download. The attribute goes on the element, or the function gets called:

<a href="/contact" data-s4u-event="contact">…</a>

<script>s4u.event('form-sent');</script>

At most 100 different names per counter and 300 events per hour and address. The name is lowercased, spaces become hyphens. Names that look like personal data, such as an @, a long run of digits or a long code, are rejected. The automatic click counting may use at most 70 of the names; the rest is kept for names that are set by hand.

Full guide to events

Moving from another counter

Checking that it works

Address of the page the counter should be on. It is fetched once, and whatever turns up is reported here.

Privacy text to embed

Is something missing from Stats4U? One sentence is enough: Write to us

More about Stats4U →

Advertisement

Frequently asked questions

Is it really free?

Yes. There is no paid tier and no limit at which counting stops. The service is carried by advertising on stats4u.net itself – none of it appears on the page carrying the counter, where only the counter sits.

Do I need an account?

No account is required. Save the private management link displayed during setup: it is needed for owner actions and for My counters. The public statistics address alone does not prove ownership.

Can I keep my statistics private?

Statistics can be restricted with the available access settings. Keep the private management link for the owner and create a separate, revocable read-only link for anyone who only needs to view the reports.

Do I have to embed JavaScript?

A supported image, Markdown or BBCode installation counts without JavaScript. Page information can arrive through the HTTP referrer or a manually supplied address, but may contain only the origin. JavaScript explicitly sends the current page and referring page and is required for its automatic events.

Are bots counted too?

Recognised bots are shown separately. Whether they contribute to the counter depends on its bot setting. Detection has limits, so the remaining traffic is not a verified count of people.

How long is the data kept?

The daily hash 2 days, the evaluated figures 400 days. The IP address is in none of those figures – the web server access log holds it for 14 days. The nightly cleanup works to exactly these values.

Does it work on WordPress, Wix or a static site?

Yes. The home page names for each platform where the code belongs, and the setup guides go through it step by step – including the places where a script is not let through: WordPress.com on the free plan and Squarespace below Core. There the Markdown version steps in.

Example live statistics