Realtime analyticsPro
Live visitors counter, per-second bars, event feed, top pages and devices.
What's inside
- Live counter
- Per-second bars
- Event feed
- Top pages race
When to use
- Launch days, live events and ops dashboards.
When not to use
- Historical reporting: use the metrics dashboard.
Installation
Usage
Import it from @/components/blocks/realtime-analytics after installing. It ships with sample data, so it renders straight away; swap in your own data when you're ready.
import { RealtimeAnalytics } from "@/components/blocks/realtime-analytics";
export default function Page() {
return (
<main className="mx-auto max-w-6xl p-6">
<RealtimeAnalytics />
</main>
);
}API reference
RealtimeAnalytics
Live visitors with a pulsing counter, a per-second bar stream, an event feed, a top-pages race and device split. Pausable. Also the default export. No props: sample data sits at the top of the file, ready to swap for your own.
No props.
Keyboard interactions
| Keys | Action |
|---|---|
| Tab | Reach Pause / Resume |
Accessibility
- The bar stream is an image with a description; the feed isn't announced (too chatty) but can be paused.
Motion
- Bars shift left each second; the newest is highlighted; feed items spring in; pages reorder as counts change.
Responsive behavior
- The feed moves under the counter below 1024px.
Performance
- One interval drives everything and stops when paused or unmounted.
Notes for AI
- Feed it from a WebSocket and batch updates to about once a second.
This page as Markdown, for assistants and coding agents:
/blocks/realtime-analytics/markdownThe full library index for assistants is at /llms.txt.
Lode222 doc pagesllms.txt