import { Component } from 'solid-js'; import { KPI_THRESHOLDS } from '../../lib/analytics/kpi-service'; export const UnifiedReport: Component = () => { const kpiEntries = Object.entries(KPI_THRESHOLDS) as [string, typeof KPI_THRESHOLDS[keyof typeof KPI_THRESHOLDS]][]; return (

Unified KPI Report

Cross-tool KPI summary template

KPI Thresholds Reference

All tracked KPIs with their target thresholds and alert levels. This template is designed for weekly/monthly reporting across all analytics tools.

{kpiEntries.map(([key, thresholds]) => ( ))}
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'}

Reporting Schedule

  • Weekly Report: Auto-generated every Monday at 9:00 AM
  • Monthly Report: Auto-generated on the 1st of each month
  • Alert Thresholds: Real-time notifications via Slack when KPIs breach warning/critical levels

External Dashboards

  • Mixpanel — Product analytics (MAU, retention, funnels, viral coefficient)
  • Google Analytics 4 — Web analytics (traffic sources, CAC tracking)
  • Stripe — Revenue tracking (MRR, churn, LTV)
); }; function getCategory(key: string): string { const productKeys = ['mau', 'paying_users', 'conversion_rate', 'nps', 'viral_coefficient']; const acquisitionKeys = ['cac']; const revenueKeys = ['mrr', 'churn_rate', 'ltv']; if (productKeys.includes(key)) return 'Product'; if (acquisitionKeys.includes(key)) return 'Acquisition'; if (revenueKeys.includes(key)) return 'Revenue'; return 'Other'; } function getUnit(key: string): string { const units: Record = { cac: ' USD', mrr: ' USD', ltv: ' USD', churn_rate: '%', conversion_rate: '%', mau: '', paying_users: '', nps: ' pts', viral_coefficient: '', }; return units[key] || ''; }