feat(admin): richer analytics, key reports and promotion tracking with lower request costs
The analytics, ads, key reports and comments pages in the admin are rebuilt to show more at a glance and to update in place. Promotions now show which campaign is running and how well it converts. The public site also makes far fewer requests per visit, which lowers hosting costs, and pages no longer hang if a database connection dies.
Highlights
- Admin analytics now splits visitors, page views and actions into colored stacked charts with a table view.
- Key reports show key versions, suggest status changes and support bulk edits without reloading.
- Promotion tracking shows the running campaign and its conversion rate.
- Public pages make about half as many requests on a first visit.
- Admin comments have a cleaner, more compact layout.
- Pages now fail cleanly instead of hanging if a database connection dies.
Analytics
- Activity is now a full-width section with stacked columns for visitors by tier, page views by page type, and actions by type.
- A totals panel doubles as the legend, and clicking a row hides that series.
- A Table view shows every value per period.
- A new Promotions section shows clicks by placement, top pages, the running campaign and its conversion rate.
- Promotion clicks now have their own row in actions and no longer appear under social engagement.
- Promotion clicks are saved with their campaign, so overlapping campaigns can be told apart.
Ads
- The ad trend chart shows its values and axis without hovering, and hovering adds each day's details.
- The page tabs no longer show a vertical scrollbar.
- Side ads sit lower while a promotion banner is showing, so they no longer overlap it.
Key reports
- The page has summary tiles, search, filters for keys needing review or on older versions, and more ways to sort.
- Key status can be changed directly on each row, or for many keys at once from a bulk bar.
- A suggestion appears when reports disagree with a key's status, and it can be applied in one click.
- The details view shows the key's version, the latest official version, versions visitors tried, and top countries.
- Reports can be filtered, selected and changed in bulk there, and only the changed rows update, so the view stays where it is.
- Correcting a report keeps its original date.
Comments and details views
- Comments are a compact list with author, tier, program and time on one line.
- Comment threads mark the opened comment and indent replies.
- Admin details views have a slimmer header and footer, and their subtitle color is fixed.
- Deleting a comment or flagging a visitor no longer reloads the page.
Site
- Links now prefetch on hover or focus instead of as soon as they appear on screen.
- Speed Insights has been removed.
- Colors with transparency, hover states, focus rings and gradients that were not rendering now work across the site.
- The 404 page has proper spacing below the promotion banner.
