Skip to main content
The live visitors widget shows how many people are on your site right now, and keeps the number current while the page is open. It counts the same visitors as the Realtime view: anyone seen on the site in the last 5 minutes, once however many tabs they have open.
A pill with an orange dot reading 99 people online now, and the CrispStats markThe same pill on a dark page

Live visitors pill

A card headed Live now showing 99, with 30 bars for the last 30 minutes and the footer Visitors in the last 5 minutesThe same card on a dark page

Live visitors card

A line with an orange dot reading 100 people online now, with no box around itThe same line on a dark page

Footer pill: size Small, plain style

Layouts

Label replaces the words after the number: with the label people reading now, the pill reads 14 people reading now, and the card’s heading changes too. Put your site’s name in the label if you want it on the pill, such as readers on Quillbook. A label has at most 40 characters and no digits: numbers come from your data. If a label is too long for the pill’s size, the widget screen says “This label is cut off at this size. Pick a larger size or a shorter label.” and the pill would end it with an ellipsis.

Small numbers

A count of one or two people tells a visitor more than it should, and it looks empty. Hide below sets the floor (default 3, from 1 to 20). Under it, Below the floor decides what shows: A hidden widget takes no space on your page. The number never leaves CrispStats while it is under the floor, not even in the JSON. Countries follow a floor of their own: a country appears only with at least 3 visitors on the site right now, and the card shows at most 3. Country names only: no cities, regions or flags.

How it stays current

The script asks for a new count about every 30 seconds, give or take a fifth so that many pages do not ask at the same moment, while the widget is on screen and the tab is visible. It stops after 40 updates on a page left open and starts again when the reader comes back to the tab. Screen readers hear the new count at most once a minute. The collector answers from the live presence it already keeps for the Realtime view and caches the answer for 10 seconds, so asking more often does not make the number more current.

Add it

  1. Open Settings, Sharing and widgets and pick Live visitors pill, Live visitors card or, for a footer, Footer pill (small, in the plain style, hidden below the floor).
  2. Set the label, the floor and the style, then select Create widget.
  3. Copy the code from the HTML tab and paste it where the count should show:
Your own code carries your widget’s token instead of cs_wd_7Hq2Lx9PzK4mVt8RbN3cW1yD. Other forms are on Embed a widget.

The live visitor badge

The older live visitor badge, a snippet that fetches one number from /live/<site id>/count, keeps working for pages that already use it. Widgets replace it for anything new: they need no code of your own, hide small numbers and come in every format.

Next steps

Traffic figures

Visitors, pageviews and sessions over a range.

Embed a widget

The iframe, README, Notion and React forms.

Watch visitors live

The Realtime view behind the count.
Last modified on November 24, 2026