From 9573a2eea972157f69a6595cce53941f0a21e238 Mon Sep 17 00:00:00 2001 From: Timo Date: Wed, 7 Jan 2026 13:04:23 +0100 Subject: [PATCH] feat: add analytics dashboard page displaying QR performance metrics, scan trends, device usage, and geographical data. --- src/app/(app)/analytics/page.tsx | 21 +++++++++++++++++---- 1 file changed, 17 insertions(+), 4 deletions(-) diff --git a/src/app/(app)/analytics/page.tsx b/src/app/(app)/analytics/page.tsx index ba9ff58..61f5710 100644 --- a/src/app/(app)/analytics/page.tsx +++ b/src/app/(app)/analytics/page.tsx @@ -31,6 +31,7 @@ import { Download, TrendingUp, QrCode, + HelpCircle, } from 'lucide-react'; // Dynamically import GeoMap to avoid SSR issues with d3 @@ -337,7 +338,7 @@ export default function AnalyticsPage() { Scan Trends Over Time
- Daily · Weekly · Monthly + {timeRange} Days
@@ -483,7 +484,7 @@ export default function AnalyticsPage() { {/* Top Performing QR Codes with Sparklines */} - + @@ -492,7 +493,7 @@ export default function AnalyticsPage() { {(analyticsData?.qrPerformance?.length || 0) > 0 ? ( -
+
@@ -509,7 +510,19 @@ export default function AnalyticsPage() { Unique Scans
- Conversions +
+ Conversions +
+ +
+
Conversion Rate
+
+ Percentage of unique scans vs total scans. Formula: (Unique Scans / Total Scans) × 100% +
+
+
+
+
Trend