Traffic Analytics

A web-analytics console: sidebar + search topbar, a live realtime strip, an hourly sessions area chart, a daily-goal radial gauge, a channel-audience radar chart, a new-vs-returning line chart, and a sortable top-pages table.

PRO

Dashboard7: Traffic Analytics

A full-height web analytics dashboard: a collapsible sidebar and search topbar over a live realtime strip, an hourly sessions area chart, a daily-goal radial gauge, a channel-audience radar chart, a new-vs-returning line chart, and a sortable top-pages table. It is a drop-in traffic dashboard template for a Next.js / React analytics dashboard, built on shadcn/ui + Recharts and the Beste UI chart components.

Upgrade to Pro

Pro blocks install through the shadcn CLI with your license key and ship their full source. Docs and live previews stay open to everyone, so you can read every block's details first.

Installation

Swap YOUR_EMAIL and YOUR_KEY for the email and license key on your account. Find your license key on your account page.

Radix flavor

bash
npx shadcn add "https://ui.beste.co/r/dashboard7?email=YOUR_EMAIL&license_key=YOUR_KEY"

Base UI flavor

bash
npx shadcn add "https://ui.beste.co/r-base/dashboard7?email=YOUR_EMAIL&license_key=YOUR_KEY"

This installs the block to components/beste/block/dashboard7.tsx, the Beste chart and layout components it composes (area-chart, line-chart, radar-chart, radial-chart, data-table, sidebar-nav, user-menu, notifications-menu) to components/beste/component/, and the shadcn/ui dependencies they need (button, badge, sheet, command, dialog).

Quick start

The installed file exports dashboard7Demo alongside the block: the exact props behind the preview above. Spread it to get the full dashboard in one line. It fills its container, so give it a full-height wrapper (the component itself is h-screen).

tsx
import { Dashboard7, dashboard7Demo } from "@/components/beste/block/dashboard7";

export default function Page() {
  return <Dashboard7 {...dashboard7Demo} />;
}

Props

Every prop is optional. Omit any and the block falls back to its built-in demo data, so <Dashboard7 /> renders a complete, populated analytics dashboard out of the box. Pass just the props you want to override.

PropTypeDefaultDescription
brandNamestring"Pulsar"Brand label next to the Gauge icon in the sidebar
headingstring"Traffic intelligence"Page heading; a "Live" pill renders beside it
descriptionstring"Realtime and last-24-hour visitor activity."Muted line under the heading
userDashboardUserdemo userIdentity shown in the topbar account menu
navGroupsSidebarNavGroup[]demo groupsSidebar navigation, rendered in order as labeled groups
commandGroupsCommandPaletteGroup[]demo groupsGrouped entries in the ⌘K command palette
userItemsUserMenuItem[]demo itemsRows in the account dropdown menu
notificationsNotificationItem[]demo itemsEntries in the notifications popover
realtimeRealtimeStat[]demo statsThe three realtime strip cards
sessionsDataSessionPoint[]demo seriesHourly Sessions today area chart
audienceDataAudiencePoint[]demo seriesChannels by audience radar chart
visitorDataVisitorPoint[]demo seriesNew vs. returning line chart
pagesPage[]demo rowsRows of the Top pages table
goalValuenumber73Percent shown by the Daily goal radial gauge
goalCaptionstring"Newsletter signups"Muted caption under the daily-goal gauge

The block-local data types:

ts
type RealtimeStat = {
  label: string;
  value: string; // pre-formatted, e.g. "1,204"
  accent?: boolean; // pulsing dot next to the value
};

type SessionPoint = { hour: string; sessions: number; users: number };
type AudiencePoint = { channel: string; organic: number; social: number };
type VisitorPoint = { day: string; returning: number; new: number };

type Page = {
  id: string;
  path: string;
  views: number;
  avgTime: string;
  bounce: number; // percent; > 40 renders a red badge, else emerald
};

type DashboardUser = {
  name: string;
  email: string;
  avatar: string; // image URL, rendered with a plain <img>
};

The remaining props reuse the interfaces exported by the composed Beste components:

ts
// from sidebar-nav
type SidebarNavGroup = {
  label?: string; // muted uppercase group heading (hidden when collapsed)
  items: {
    id: string;
    label: string;
    icon?: LucideIcon;
    badge?: string | number; // small trailing count/tag, e.g. "live"
    href?: string;           // renders an <a> instead of a <button>
  }[];
};

// from user-menu
type UserMenuItem = {
  id: string;
  label: string;
  icon?: LucideIcon;
  destructive?: boolean; // red row with a separator above it
};

// from notifications-menu
type NotificationItem = {
  id: string;
  title: string;
  description?: string;
  time: string;
  icon?: LucideIcon;
  unread?: boolean;
};

// block-local
type CommandPaletteGroup = {
  heading: string;
  items: { id: string; label: string; icon?: LucideIcon }[];
};

Still internal

A few cosmetic bits stay as constants in the installed file — edit them in place:

Components

Every panel is a composed Beste UI component installed alongside the block:

It also uses the shadcn/ui Button, Badge, Sheet, Command, and Dialog primitives for the topbar, mobile sidebar, and command palette.

Behavior notes

Requirements

More Dashboard blocks

View all Dashboard
PRO

dashboard3

Commerce Analytics

An e-commerce analytics dashboard: sidebar + search topbar, a four-up KPI row with period deltas, a net-profit area chart, a repeat-rate radial gauge, a busiest-weekday bar chart, and a best-selling products data table.

PRO

dashboard12

Service Monitoring

An observability console with an icon rail and a live status ribbon: a service-health grid with status dots and latency/uptime, a latency line chart, a request-volume area chart, a 30-day uptime bar strip, and a recent-events feed. A 1h/24h/7d tab control live-swaps the chart data.

PRO

dashboard4

Project Workspace

A project-management dashboard: sidebar + search topbar, a four-up project stats row with one highlighted card, a weekly project-analytics bar chart, a reminder card with a start-meeting action, a team-collaboration list, a project-progress radial gauge, and a focus time-tracker card.

PRO

dashboard11

Fitness Overview

A health dashboard with a top navigation bar (no sidebar): three activity-ring radial gauges, a steps area chart and a heart-rate line chart, and a recent-workouts list. A Today/Week/Month segmented control live-swaps the chart data and totals.

PRO

dashboard8

Finance Overview

A personal-finance dashboard: sidebar + search topbar, a dark total-balance hero with account tiles, a budget radial gauge, income/expense/savings KPIs, a cashflow bar chart, a spending-mix donut, and a colored transactions table.

PRO

dashboard9

Sales Pipeline

A sales-CRM dashboard: sidebar + search topbar, pipeline KPIs, a four-stage kanban board of deal cards with owners and hot-lead flags, a revenue-vs-forecast area chart, a team-quota radial gauge, and a rep leaderboard with progress bars.