Skip to content

API Reference

Catalog metadata for this block. Install copies the source into your project.

npx cronus-ui add analytics
Skip Analytics fields table
FieldTypeDefaultDescription
slug*
string"analytics"Registry item id. Passed to cronus-ui add.
name*
string"Analytics"Display name shown in the gallery.
description*
string"Admin analytics surfaces — KPI metrics with sparklines, a 30-day traffic trend and top pages/referrers breakdowns with progress bars, plus a cohort-retention engagement variant built from token-colored heat cells."Short summary of what the block covers.
variants
{ id: string; name: string; description: string }[]["overview", "period", "empty", "engagement"]Alternate layouts. Install a look with npx cronus-ui add <slug>--<id>. Omitted when the block has a single default.

Variants

Every published look for this block.

Skip Analytics variants table
IdNameDescription
overviewTraffic overviewKPI metrics with sparklines, a 30-day traffic trend and top pages and referrers breakdowns.
periodPeriod toggleLast 7, 30, or 90 days, with a segmented period control that updates traffic.
emptyEmptyThe same analytics layout with no traffic recorded yet.
engagementEngagement cohortsRetention stat cards plus a weekly cohort heat grid built from token-colored cells.