Skip to content

Free tool · runs in your browser

Free visitor counter for your website

Show how many people are on your site right now, or how many have visited, with a counter that updates by itself. Pick a style and see it below.

Style
Theme
Colour

In the dashboard you can also change the size, corners, font, wording and period.

Preview, with sample numbers

HTML, wherever it should appear

<script async src="https://traffic.cx/widget.js" data-widget="wgt_…"></script>

Your own code, with your widget’s ID, is in the dashboard’s Embed dialog.

Sign up free and your counter shows your own visitors, from the traffic.cx tracker. No cookies.

Start free

Free on one site, 3,000 events a month. No card.

How to use the Visitor counter

  1. 01

    Choose a style: live visitors for a header, a visit counter for a footer, or a badge for a README.

  2. 02

    Pick a light or dark theme and a colour, and choose compact or exact numbers.

  3. 03

    Sign up free, add the traffic.cx tracker to your site, and copy your counter’s code from the dashboard.

How it’s calculated

Live visitors

Live = people who loaded a page in the last 5 minutes

The same number as the dashboard’s live count. On your site it updates about every 15 seconds while the counter is on screen.

Visits and visitors

Visits = sessions in the period Visitors = unique people in the period

A visit ends after 30 minutes without activity, so one person can make several visits. Known bots are filtered out, as in your dashboard.

Frequently asked questions

Is the visitor counter really free?

Yes. Widgets are on every plan, including the Free plan, which has no card and no end date. On Free, a small traffic.cx link sits on each widget; paid plans can remove it. See widgets on Free and paid plans.

Does a visitor counter need cookies?

No. The counter sets no cookies, stores nothing in the browser and sends nothing about the person viewing it, so it needs no cookie banner. The traffic.cx tracker that counts the visits is cookieless by default too.

How do I add a visitor counter to a GitHub README?

Choose the README badge. It’s an image, so it works in Markdown where scripts can’t run: paste the line from the dashboard into your README. GitHub refreshes images every few minutes, so the badge shows recent numbers rather than live ones.

Will it work on WordPress, Webflow, Shopify or Notion?

Yes. Paste the script into a Custom HTML block, an Embed element or a Custom Liquid section. For Notion and other builders that only allow iframes, the dashboard gives you an iframe instead. Step-by-step for each platform.

Can I show visitors by country or which pages are popular?

Yes, with other widgets: a top-pages list, a chart, or an activity ticker that names the country of people arriving. The ticker never shows cities and stays empty while fewer than 3 people are on the site. Browse every widget.

  • Free tool

    UTM builder

    Tag campaign links with source, medium and campaign, with presets for X, Reddit, newsletters and Product Hunt.

  • Free tool

    Conversion rate calculator

    Turn visitors and conversions into a conversion rate, and see how many more conversions a target rate needs.