# Stats and analytics

Get public catalog counts and understand how readers use the guides you publish.

## Count the public catalog

Call `public_stats` with `{}` and the `guides:read` permission. It returns `publishedGuides`, `publishedAuthors`, `representedTopics` and a UTC `observedAt` timestamp. Authors and topics are counted distinctly across eligible published guides. An empty catalog returns zeros.

> Use DevGuides to count the published guides, authors and topics. Include when the counts were observed.

## Measure your publications

With `analytics:author`, call `author_analytics` with `{}` for all your published guides or with a published guide’s UUID in `guideId` to isolate it. The response includes `publishedGuides`, `lifetimeViews`, `viewsLast7Days`, `readingDepth` and `observedAt`. The seven-day window covers today in UTC and the preceding six UTC dates.

Reading depth counts signed-in reader–guide pairs and excludes author self-reads. Each reader contributes once per guide to `readerGuidePairs` and once to each milestone they reach. Use `quarter`, `halfway`, `threeQuarters` and `completed` for the four milestones. One reader reaching the end of two different guides contributes two completed reader–guide pairs.

## Read platform analytics

DevGuides administrators can explicitly request `analytics:system` and call `system_analytics` with `{}`. It returns public catalog counts, `publishedGuidesLast7Days`, `lifetimeViews`, `viewsLast7Days` and `observedAt` across eligible public guides. For public catalog counts alone, use `public_stats`.
