Changelog
All notable changes to sanity-plugin-ga-dashboard. Follows Keep a Changelog · Semantic Versioning
+Added~Changed×Fixed−Removed⚑Security!Deprecated
v1.0.2Mar 12, 2026latest+1·1
+ ✨ Added
+disabled configuration option to control plugin visibility based on environment (e.g., production-only)
· 🔧 Changed
·Moved recharts from peerDependencies to dependencies for automatic installation
v1.0.1Mar 12, 2026·1
· 🔧 Fixed
·Improved code formatting and consistency: standardized quote usage, spacing, and line breaks
v1.0.0Mar 11, 2025+19
+ ✨ Added
+Google Analytics 4 dashboard tool for Sanity Studio
+Seven dashboard tabs: Overview, Traffic, Content, Audience, Geography, Events, and Acquisition
+Real-time active users counter updated every 30 seconds
+Date range picker supporting 7, 14, 30, and 90-day windows
+16 parallel GA4 Data API queries for fast, simultaneous data loading
+Built-in API route handler (googleAnalyticsHandler) for Next.js and other frameworks
+JWT-based Google service account authentication using the jose library
+In-memory token caching with a 1-hour lifetime to reduce auth overhead
+HTTP response caching (5-minute public cache + 60-second stale-while-revalidate)
+Error-resilient data fetching with Promise.allSettled() — partial failures never crash the dashboard
+Recharts-powered responsive visualisations: area charts, bar charts, pie charts, and line charts
+Full dark/light mode support that respects Sanity Studio's colour scheme
+Geography tab with country-level breakdown and flag emoji support
+Content performance tab with page-level pageview, session, and bounce-rate metrics
+Audience tab with new vs returning visitors, session duration, and browser breakdown
+Events tab with top event tracking and conversion rate display
+TypeScript support with exported types for GoogleAnalyticsConfig and GoogleAnalyticsPluginOptions
+Zero-config setup — sensible defaults for all optional fields
+sanity-plugin-ga-dashboard/api sub-path export for server-side handler import