Skip to content

Real-time (Live) mode

See who's on your site right now

  • Toggle: In the header, the Live switch turns real-time analytics on or off.

  • When on:

    • The Active Now KPI card appears and shows how many visitors are currently on the site.

    • Data is refetched at an interval (e.g. every 10 seconds) via the real-time API (/wp-json/fleekdash/v1/analytics/real-time).

    • The main Visitors Over Time chart can show a visual "live" indicator (e.g. glow effect) so you know data is updating.

    • The status bar shows "Real-time updates enabled" and a green pulse badge.

  • When off: The Active Now card is hidden; charts and KPIs still show historical data for the selected period only. No automatic refresh.

  • Performance: Polling stops when Live is off or when you leave the page (React Query refetch interval is conditional).

Benefit: See who's on your site right now without opening a separate analytics tool.