Analytics Overview
Hiro offers three levels of analytics:Operational Analytics
Daily metrics for restaurant managers:
- Today’s reservations
- Revenue and pax
- Table occupancy
- NPS scores
Marketing Analytics
Customer engagement metrics:
- RFM segmentation
- Campaign performance
- Customer lifetime value
- Retention rates
Executive Analytics
Strategic insights for leadership:
- Cross-location comparison
- Revenue trends
- Demand predictions
- AI-powered insights
Main Analytics Dashboard
Access: Analytics in main navigationDashboard Layout
The analytics page displays comprehensive restaurant metrics:frontend/app/analytics/page.tsx
Key Metrics
- Revenue Metrics
- Customer Satisfaction
- Operational Metrics
Total Revenue: Sum of all transactions in selected periodAverage Ticket: Revenue ÷ number of coversRevenue Trend: Week-over-week and month-over-month comparisonFrom
frontend/app/analytics/page.tsx:200-201Visualizations
Revenue Trajectory Chart
Interactive bar chart showing revenue trends:frontend/app/analytics/page.tsx:287-320
Top Dishes Chart
Horizontal bars showing best-selling items:frontend/app/analytics/page.tsx:324-353
Occupancy Heatmap
Visual representation of busy times:frontend/app/analytics/page.tsx:406-439
Executive Dashboard (CEO View)
Access: Ejecutivos > CEO Dashboard (requiresceo or super_admin role)
Features
- Overview
- Location Comparison
- Revenue Trends
- AI Insights
High-level KPIs across all locations:From
frontend/app/executive/ceo/page.tsx:43-64Demand Predictor
Access: Ejecutivos > Analytics > PredictorAI-Powered Predictions
Hiro analyzes historical data to predict future demand:frontend/components/analytics/DemandPredictor.tsx:26
Using Predictions
View 7-Day Forecast
See predicted reservations, covers, and revenue for the next week:Each day card shows:
- Predicted reservations and pax
- Expected revenue
- Staff recommendation
- Peak hours
- Confidence level
Analyze Patterns
By Day: Which days are busiest?By Hour: When are peak times?Use this to optimize:
- Staff scheduling
- Inventory ordering
- Marketing campaigns
Review Recommendations
AI-generated suggestions:
- “Increase staff on Fridays by 2-3 people”
- “Consider lunch specials on Tuesdays to boost slow day”
- “Peak hour is 21:00 - optimize kitchen prep”
Pattern Analysis
Weekly Patterns:frontend/components/analytics/DemandPredictor.tsx:275-350
Location-Based Analytics
Filtering by Location
All analytics views support location filtering:frontend/app/analytics/page.tsx:171-222
Location Comparison
Compare performance across locations: Top Restaurants Widget:Customizable Dashboard Widgets
Access: Dashboard (main page)Available Widgets
Customize your dashboard with real-time widgets:Today's Reservations
Live reservation list with:
- Guest names and party size
- Reservation times
- Table assignments
- Special requests
Today's Stats
Daily KPIs:
- Total reservations
- Total pax
- Expected revenue
- Occupancy rate
VIPs Today
High-value customers visiting:
- VIP names
- Loyalty tier
- Lifetime value
- Special notes
Today's Alerts
Operational alerts:
- Overbookings
- VIP arrivals
- Special requests
- Negative feedback
Customers to Contact
Marketing actions needed:
- At-risk customers
- Birthday upcoming
- Post-visit follow-up
Top Restaurants
Location performance:
- Revenue ranking
- Reservation counts
- NPS scores
Customizing Your Dashboard
Add Widgets
Click + Agregar Panel to see available widgets.Select widgets relevant to your role:
- Operations: Reservations, Stats, Alerts
- Marketing: Customers to Contact, VIPs
- Executive: Top Restaurants, Revenue
Resize Widgets
Use the size dropdown on each widget:
- Pequeño: 1 column
- Mediano: 2 columns
- Grande: 3 columns
- Extra Grande: 4 columns (full width)
frontend/components/dashboard/CustomizableDashboard.tsx:136-638
Performance Metrics
Waiter Performance
Track service quality by staff member:frontend/app/analytics/page.tsx:103-127
Dish Performance
Identify best and worst performing menu items:Best Practices
Check Analytics Daily
Review key metrics every morning:
- Yesterday’s performance
- Today’s bookings
- Week-over-week trends
- Alerts and issues
Use Location Filters
Compare locations to:
- Identify best practices
- Spot underperformers
- Allocate resources
- Share successful strategies
Act on Predictions
Use demand forecasts to:
- Schedule staff efficiently
- Manage inventory
- Plan marketing
- Optimize pricing
Monitor NPS Closely
Track customer satisfaction:
- Address detractors immediately
- Celebrate promoters
- Learn from feedback
- Improve service quality
Troubleshooting
No data showing in analytics
No data showing in analytics
Check:
- Location filter is set correctly
- Date range includes data
- Integrations are syncing (Cover Manager, Revo)
- Sufficient historical data exists
Predictions seem inaccurate
Predictions seem inaccurate
Prediction quality depends on:
- Amount of historical data (need 30+ days)
- Consistency of operations
- Seasonality factors
- 80%+: Highly reliable
- 60-80%: Moderately reliable
- <60%: Use with caution
Dashboard widgets not loading
Dashboard widgets not loading
Widgets may fail if:
- Missing location access
- Role lacks permissions
- Data source is unavailable
- Refresh the page
- Check your role permissions
- Remove and re-add the widget
Revenue numbers don't match POS
Revenue numbers don't match POS
Discrepancies can occur due to:
- Sync timing (up to 15-30 min delay)
- Refunds and cancellations
- Payment type filters
Next Steps
Set Up Automations
Use analytics insights to trigger automated workflows
Customer Segmentation
Leverage RFM analytics for targeted marketing
Multi-Location Setup
Configure analytics for multiple restaurants
API Overview
Access data programmatically via the API
