📊 Site Analytics Dashboard¶
Built: 2026-04-13, redesigned 2026-04-16
URL: aguidetocloud.com/site-analytics/
Status: ✅ Live — fully public, no password
Accent: Steel#64748B
CSS Namespace:.siteana-*
Body Class:page-site-analytics
What It Is¶
A public transparency dashboard showing real usage data for aguidetocloud.com. Visitors can see tool popularity, traffic trends, and content statistics. All data is anonymous — no cookies, no personal data.
⚠️ This is the PUBLIC page. The private decision-making dashboard is at
/cc/— see Command Centre.
Architecture¶
┌──────────────────────────────────────────┐
│ DATA SOURCES │
├──────────┬──────────┬────────────────────┤
│ GA4 │ GSC │ Custom Tracking │
│ Data API │ Queries │ /api/track │
└────┬─────┴────┬─────┴────────┬───────────┘
│ │ │
└──────────┴──────────────┘
│
┌────────▼────────┐
│ /api/stats │
│ ?range=30d │
└────────┬────────┘
│
┌────────▼────────┐
│ /site-analytics/│
│ JS inline in │
│ template │
└─────────────────┘
4 Public Tabs¶
| Tab | What visitors see |
|---|---|
| Overview | 30-day trend chart (views + users), top countries, traffic sources, devices, transparency note |
| Tools | Full leaderboard (all tools) with sparklines, activity doughnut, content stats (tools/blogs/prompts/certs) |
| Pages | Top 20 pages, top blog posts |
| FAQ | Standard Q&A from front matter |
What's Shown vs Hidden¶
| Shown (public) | Hidden (private → /cc/) |
|---|---|
| Views, users, sessions (30d) | YouTube analytics |
| WoW change badges | Morning Brief, Health Score |
| Tool leaderboard with sparklines | Auto-insights, Action Queue |
| Countries, sources, devices | Growth tab, Goals, Before/After |
| Top pages + blog posts | SEO opportunities, Content Gaps |
| Content stats | 2×2 Matrix, Movers |
Stats Bar¶
5 metrics always visible:
- Page Views (30d) — with WoW badge
- Unique Users — with WoW badge
- Sessions — with WoW badge
- Today — current day views
- Free Tools — dynamic count from toolkit_nav.toml
API¶
The page fetches /api/stats?range=30d which returns:
- ga4.totals — views, users, sessions
- ga4.today — today's views
- ga4.wow — week-over-week comparison
- ga4.trend — daily views/users for 30 days
- ga4.leaderboard — all tools ranked by views
- ga4.tool_trends — per-tool daily data (top 10, for sparklines)
- ga4.countries, ga4.devices, ga4.sources
- ga4.top_pages, ga4.blog_pages
Response cached for 5 minutes server-side. Auto-refreshes every 5 min client-side.
Files¶
| File | Purpose |
|---|---|
content/site-analytics/_index.md |
Front matter + FAQ |
layouts/site-analytics/list.html |
Template with inline JS (no separate JS file) |
static/css/site-analytics.css |
Styles (historical — includes old V1/V2 styles) |
History¶
- V1 (Apr 13): Basic 4-tab dashboard, password-gated, custom event tracking
- V2 (Apr 16): Intelligence overhaul — 8 tabs, date ranges, milestones, insights, YouTube, growth, SEO, matrix, sparklines, goals
- V3 (Apr 16): Split into public + private. All decision-making features moved to
/cc/. Public page stripped to 4 clean tabs, password removed.
⚠️ Critical: Two Analytics Pages¶
/site-analytics/ |
/cc/ |
|
|---|---|---|
| Purpose | Public transparency | Private decisions |
| Access | Open to all | Password-gated |
| Shows | Basic metrics + tools | Everything + YouTube + strategy |
NEVER add private features to the public page. NEVER link /cc/ from anywhere.