Analytics
The Analytics dashboard provides real-time insights into the Keshless ecosystem with key metrics, trends, and operational indicators.
Dashboard Overview
Key Metrics Cards
| Metric | Description | Trend |
|---|---|---|
| Total Users | Registered user count | vs last month |
| Active Vendors | Operating vendors | vs last month |
| Transaction Volume | Total processed today | vs yesterday |
| Revenue | Fees collected today | vs yesterday |
Charts
Transaction Volume Chart
Line chart showing transaction volume over time.
| Data Series | Color | Description |
|---|---|---|
| Volume | Blue | Transaction amount total |
| Count | Green | Number of transactions |
Revenue Breakdown
Pie chart showing revenue by transaction type.
| Segment | Description |
|---|---|
| Payments | POS payment fees |
| Top-ups | Cash-in fees |
| Withdrawals | Cash-out fees |
| Transfers | P2P transfer fees |
User Growth Chart
Area chart showing user registration trends over time.
Time Period Filters
| Period | Description |
|---|---|
| Today | Current day data |
| Yesterday | Previous day |
| Last 7 days | Weekly view |
| Last 30 days | Monthly view |
| Custom | Date range picker |
Real-Time Indicators
System Health
| Service | Description |
|---|---|
| API | Main API server status |
| Database | PostgreSQL connection |
| Payment Gateway | External payment processor |
| Notification Service | SMS/Push notification system |
Health States
| State | Description |
|---|---|
| Healthy | Service operating normally (green) |
| Degraded | Partial issues, reduced performance (yellow) |
| Down | Service unavailable (red) |
Recent Activity Feed
Shows real-time activity including:
- New user registrations
- Large transactions
- KYC verifications
- System alerts
Data Refresh
| Setting | Value |
|---|---|
| Auto-refresh interval | 30 seconds |
| Refetch on window focus | Yes |
API Endpoints
| Endpoint | Method | Description |
|---|---|---|
/admin/analytics/summary | GET | Dashboard metrics |
/admin/analytics/transactions | GET | Transaction stats |
/admin/analytics/revenue | GET | Revenue breakdown |
/admin/analytics/users | GET | User growth stats |
/admin/analytics/health | GET | System health |
/admin/analytics/activity | GET | Recent activity |
Related Files
| File | Purpose |
|---|---|
src/pages/dashboard/DashboardPage.tsx | Main dashboard page |
src/components/charts/ | Chart components |
src/services/analyticsService.ts | Analytics API service |
src/hooks/useAnalytics.ts | Analytics hooks |