diff --git a/src/components/dashboard/GA4Panel.tsx b/src/components/dashboard/GA4Panel.tsx new file mode 100644 index 000000000..4c345c97a --- /dev/null +++ b/src/components/dashboard/GA4Panel.tsx @@ -0,0 +1,49 @@ +import { Component } from 'solid-js'; + +const ACQUISITION_KPIS = [ + { key: 'cac', label: 'Customer Acquisition Cost', target: '<$15', unit: 'USD' }, + { key: 'traffic_sources', label: 'Traffic by Source', target: 'Diversified', unit: '%' }, + { key: 'signup_rate', label: 'Signup Conversion Rate', target: '>5%', unit: '%' }, + { key: 'channel_breakdown', label: 'Channel Performance', target: 'All channels', unit: '' }, +]; + +export const GA4Panel: Component = () => { + return ( +
GA4-powered web analytics
+Acquisition KPIs are powered by Google Analytics 4. Once GA4 is configured with enhanced e-commerce tracking, these metrics will populate automatically.
+Real-time metrics across product, acquisition, and revenue
+Mixpanel-powered product analytics
+Product KPIs are powered by Mixpanel analytics. Once the Mixpanel SDK is integrated and events are flowing, these metrics will populate automatically.
+Stripe-powered revenue analytics
+Revenue KPIs are powered by Stripe. Once Stripe webhooks are configured and subscription events are flowing, these metrics will populate automatically.
+Cross-tool KPI summary template
+All tracked KPIs with their target thresholds and alert levels. This template is designed for weekly/monthly reporting across all analytics tools.
+| KPI | +Category | +Warning Threshold | +Critical Threshold | +Direction | +
|---|---|---|---|---|
| {key.replace(/_/g, ' ').replace(/\b\w/g, (c) => c.toUpperCase())} | ++ {getCategory(key)} + | +{thresholds.warning}{getUnit(key)} | +{thresholds.critical}{getUnit(key)} | ++ + {thresholds.direction === 'higher' ? '↑ Higher is better' : '↓ Lower is better'} + + | +