Website Analytics & AI Insights
A menu item in the sidebar: Analytics & Insights → Website & Insights
Path: /dashboard/analytics
The previous second link “Website Analytics” (/dashboard/analytics/dashboard) automatically redirects here.
Select Center
At the top: Center Filter (as in other cockpit lists) – all KPIs and insights relate to this center.
Time Period
In the header: 24h, 7 days, or 30 days – applies to the website tab and AI insights.
Tabs
| Tab | Content |
|---|---|
| Website | KPIs, visitor trend, top pages, referrers, devices (Umami) |
| AI Insights | Recommendations + Message formulation for client conversation (clientMessage, copyable) |
Conversation with the Client (Website Tab)
At the top of the Website tab, the box “Conversation with the Client” appears: 2 AI key points in client language (focus stakeholder). The button “All AI Insights” opens the full tab including quick filter “Summarize for Client”.
AI Insights – Prerequisites
- Center: Analytics active, Umami Website ID (Analytics tab)
- Server:
UMAMI_PASSWORDandOPENAI_API_KEY - Sufficient traffic/events in the selected time period
API: GET /api/analytics/insights?centerId=…&timeframe=day|week|month
Without configuration: “Not available” or message with CTA Set up Umami – no demo charts, no chatbot, no export button.
Quality Checklist (Website Tab)
| Priority | Topic | Status |
|---|---|---|
| P0 | Pages/Devices only real Umami data or “Not available” + Setup CTA | ✅ |
| P0 | Comparison % without division-by-zero (formatPercentChange) | ✅ |
| P1 | Umami Metrics: URL, Referrer, Device (getUmamiMetrics) | ✅ |
| P2 | No more Center List; one trend chart; comparison text by time period | ✅ |
| P3 | /api/analytics: centerId required, day = 24h, trends not random | ✅ |
| P4 | CSV export; AI quick questions instead of demo chatbot | ✅ |
Additionally Implemented
- Cockpit Additional Metrics: Peak time, strongest day, returning %, feedback (from
/api/analytics) - Auto-Refresh: optional every 60 seconds (only visible tab)
- Tab Channels: Website / Signage / Companion without fake numbers
- Footfall: Live adapter prepared (
integration.ts, zone types, Env, documentation)
Other Analytics Menu Items
- SEO & AI Visibility – GEO/SEO Overview
- Visitor Flows – Footfall (prepared)
- Reviews – Feedback Analytics
Developer
- Website Data:
/api/analytics/website-stats - AI:
apps/dashboard/src/lib/analytics-insights.ts - UI:
website-analytics-view.tsx,analytics-insights-panel.tsx
Nutzungsstatistik: Seitenaufrufe werden anonymisiert erfasst. Im Umami-Dashboard nach diesem Pfad filtern: /en/dashboard/analytics-dashboard