Live visitors card

How many people are on the site or app right now, with the last half hour, the top pages and the top sources.

Live card

This card is drawn in your browser by the same code the Players run, with sample data.

Category: Operations. Tags: Numbers and metrics, Charts and gauges, Offices and workplaces, Stores.

Data and privacy

Feed: screenrig.visitors/v1.

Feed documents carry source attribution. The Player supplies the feed to the card.

Properties

For theme, background, accent, colour overrides and position, see Common properties.

Static properties

NameTypeDefaultValues and limitsDescription
titlestring"Live visitors"maxLength: 40
rowsinteger5minimum: 1; maximum: 8Rows in each list.
staleMinutesinteger10minimum: 1; maximum: 1440A feed older than this shows how long ago it updated.

Dynamic properties

NameTypeDefaultValues and limitsDescription
sitestring""maxLength: 60The site or app the numbers describe; the feed's wins.
activeinteger, nullnullminimum: 0; maximum: 100000000Visitors online now. Empty falls back to the larger total of the lists.
seriesarray[]maxItems: 60Visitors online each minute, oldest first; the last 30 are drawn.
recordinteger, nullnullminimum: 0; maximum: 100000000The previous best count; a count above it is a record. The feed's record wins when present.
updatedAtstring""maxLength: 40When the numbers last changed (ISO 8601); anchors the update's moment when the feed has no fetchedAt.
pagesarray[]maxItems: 20Top pages, the same document as the screenrig.visitors/v1 feed's pages. The feed wins when present.
pages[].pathstring""maxLength: 80The page's path (/pricing).
pages[].titlestring""maxLength: 80Shown instead of the path when present.
pages[].visitorsintegerminimum: 0; maximum: 10000000; RequiredVisitors on the page now.
sourcesarray[]maxItems: 20Top sources, the same document as the feed's sources.
sources[].namestringminLength: 1; maxLength: 80; RequiredWhere visitors came from (Google, Direct, Newsletter).
sources[].visitorsintegerminimum: 0; maximum: 10000000; RequiredVisitors from this source now.

Example params

{
  "theme": "neomustard"
}
screenrig card create --type live-visitors --major 1 --file params.json --context-file context.md

Example data

{
  "site": "",
  "active": null,
  "series": [],
  "record": null,
  "updatedAt": "",
  "pages": [],
  "sources": []
}

Layouts

This fullscreen card fills the whole screen in landscape or portrait and is not placed as a corner, chip, or strip.

Layouts: full. Forms: landscape, portrait.

Use this card

Add this card to a playlist as in Publish a card canvas, place it with the layouts and anchors and update its data as in Write live values.