# Shadcn Analytics blocks

> Product usage, activation, cohort, event, experiment, and growth reporting pages.

- Type: Pro blocks (Solutions)
- Page: https://web.dev.reui.io/blocks/solutions/analytics
- Blocks: 9
- Installs with a ReUI Pro or Ultimate license; setup: https://web.dev.reui.io/docs/license-setup

## When to use

- Product usage reports: overall health, feature adoption, activation funnel, cohort retention or an A/B test
- Analyst workspaces for an event catalog, weekly segment rule coverage or the detail page of one metric
- Alert rule settings for product metrics: thresholds, delivery per rule and channel, and quiet hours

## When not to use

- A team home for operations work such as fulfillment, staffing, calls or payouts: use the [Dashboard blocks](https://web.dev.reui.io/blocks/application/dashboard.md)
- A single trend card placed inside a page you already built: use the [Line Chart blocks](https://web.dev.reui.io/blocks/chart/line-chart.md)
- A plain table of your own records with sorting and filters and no report around it: use [Data Grid](https://web.dev.reui.io/components/data-grid.md) (`get_component("data-grid")`)

## Agent notes

- Every block sets a `min-h-svh` wrapper plus its own max width and padding in page.tsx or its root; remove them inside your app shell
- Filters and edits live in `useState` and reset on reload; no block requests or persists data, so connect each to your analytics backend

## Third-party libraries

- TanStack Table v9: [API reference](https://tanstack.com/table/v9/docs/framework/react/reference/index), [docs](https://tanstack.com/table/v9/docs/framework/react/quick-start), used by 7 of 9 blocks
- Recharts v3: [API reference](https://recharts.github.io/en-US/api/), [docs](https://recharts.github.io/en-US/guide/getting-started/), used by 6 of 9 blocks
- Sonner v2: [API reference](https://sonner.emilkowal.ski/toast), [docs](https://sonner.emilkowal.ski/getting-started), used by 6 of 9 blocks
- date-fns v4: [docs](https://date-fns.org/v4.1.0/docs/Getting-Started), used by 2 of 9 blocks
- React DayPicker v9: [API reference](https://daypicker.dev/v9/api), [docs](https://daypicker.dev/v9/start), used by 2 of 9 blocks

## Blocks

- [Product Signals](https://web.dev.reui.io/blocks/solutions/analytics/solution-analytics-1.md): Product Analytics Dashboard with Scored Signal Backlog. Best for a signal backlog grid with health score bars, trend sparklines, tags and priority badges above a health panel and trend chart.
- [Feature Adoption Report](https://web.dev.reui.io/blocks/solutions/analytics/solution-analytics-2.md): Feature Adoption Analytics Report with Trend Chart and Scored Feature Grid. Best for features grouped by product area in expandable rows, with a status filter, a density and columns popover and a totals footer.
- [Activation Funnel](https://web.dev.reui.io/blocks/solutions/analytics/solution-analytics-3.md): Activation Funnel Report with Conversion Area Chart and Segment Mix. Best for a 4 stage stacked funnel area chart beside a segment mix pie, over a per stage breakdown grid with risk badges and a segment filter.
- [Cohort Retention](https://web.dev.reui.io/blocks/solutions/analytics/solution-analytics-4.md): Cohort Retention Analytics Report with Retention Curve Chart and Cohort Table. Best for a 4W to 16W retention curve, cohort notes under a target meter and a cohort table with retention rings and a CSV download.
- [Event Catalog](https://web.dev.reui.io/blocks/solutions/analytics/solution-analytics-5.md): Event Explorer - Analytics Dashboard with Chart Grid. Best for an event catalog with row selection, bulk owner and status updates, a detail sheet and archive confirm under 3 insight cards.
- [Segment Validation](https://web.dev.reui.io/blocks/solutions/analytics/solution-analytics-6.md): Segment validation workspace with health metrics, review calendar, and weekly rule coverage grid. Best for per day rule event counts on include, exclude, cohort or metric bars, a week stepper, and the reviews of a picked calendar day.
- [Experiment Report](https://web.dev.reui.io/blocks/solutions/analytics/solution-analytics-7.md): A/B Experiment Report with Ship Decision, Evidence Grid and Guardrails. Best for a ship or hold verdict card over an evidence grid of lift and confidence, with rollout plan and guardrail cards below.
- [Metric Deep Dive](https://web.dev.reui.io/blocks/solutions/analytics/solution-analytics-8.md): Single-Metric Analytics Detail Page with Target-Tracked Trend Chart. Best for one metric's page with a watch toggle, a 4 tile KPI rail, an alert rule footer, cohort progress bars and a timeline of edits.
- [Alert Rules](https://web.dev.reui.io/blocks/solutions/analytics/solution-analytics-9.md): Alert Rules Settings Form with Tabs and Validation. Best for a tabbed alert rule form whose empty threshold blocks save, with delivery switches, quiet hours and admin locked escalation.

Every ReUI item has a twin like this one; the index is https://web.dev.reui.io/llms.txt. Agents with the ReUI MCP (https://web.dev.reui.io/docs/mcp) get the same guidance from the getters named above.
