Overview
Analytics are powered by Late.com’s Analytics Add-on, which automatically syncs metrics from connected social platforms (LinkedIn, Instagram, Twitter, TikTok, YouTube). Route:/social/analytics
Data Source: Late.com API + Sanity metadata
Refresh Rate: Metrics sync every 12-24 hours (platform-dependent)
The Analytics Add-on must be enabled in your Late.com account to display real metrics. Without the add-on, computed metrics (post counts, scheduling data) are shown instead.
Dashboard Layout
Header Controls
Date Range Selector:- 7 Days
- 14 Days
- 30 Days (default)
- 90 Days
- Custom (date picker)
- TikTok
- YouTube
Summary Sentence
Natural language summary at top of dashboard: Example:“In the last 30 days, you published 42 posts with 285K impressions and 12.4K engagements, averaging 6.8K impressions and 296 engagements per post.”Comparison Mode:
“In the last 30 days, you published 42 posts with 285K impressions (↑15% vs. previous period) and 12.4K engagements (↑8%), averaging 6.8K impressions and 296 engagements per post.”
AI Insights
AI-generated analysis of performance trends: Insights Include:- Best performing content types
- Optimal posting times/days
- Engagement rate trends
- Platform-specific recommendations
- Anomaly detection (viral posts, dips)
AI insights are only shown when real Late.com analytics data is available (not for computed metrics).
KPI Cards
Primary Metrics (4 cards):Impressions
Total times content was displayed to users
Engagements
Likes, comments, shares, clicks, saves
Engagement Rate
(Engagements / Impressions) × 100
Followers Gained
Net new followers across all platforms
- Large metric value
- Change indicator (↑5.2% vs. previous period)
- Sparkline mini-chart
- Click to drill down (if available)
- Impressions → Post count
- Engagements → Activity (scheduled + published)
- Engagement Rate → Hidden
- Followers → Hidden
Time Series Charts
Impressions Chart
Display: Line chart with daily data points Metrics:- Impressions per day (blue line)
- Comparison period (gray line, if enabled)
- Hover for exact value
- Zoom/pan (optional)
Engagement Chart
Display: Line chart with daily data points Metrics:- Total engagements per day (orange line)
- Breakdown by type (likes, comments, shares) in tooltip
- Comparison period (gray line, if enabled)
Follower Growth Chart
Display: Area chart with cumulative follower count Metrics:- Total followers over time
- Net change per day (tooltip)
- Platform breakdown (stacked, optional)
Follower data requires platforms to provide historical follower counts, which varies by platform and API access level.
Best Time Heatmap
Visual heatmap showing optimal posting times: Layout: 7 rows (days of week) × 24 columns (hours) Color Intensity: Represents average engagement per post at that time Colors:- Low engagement: Light blue
- Medium: Yellow/orange
- High: Red/pink
- Hover for exact metrics
- Click cell to filter posts by that time slot (planned)
Top Posts List
Display: Ranked list of highest performing posts Ranking Options:- Most impressions
- Most engagements
- Highest engagement rate
- Rank number (1-10)
- Platform icon(s)
- Post content preview (2 lines)
- Impressions count
- Engagements count
- Engagement rate percentage
- Published date
- Click to view full Post Detail
Platform Breakdown
Display: Donut chart with table Metrics per Platform:- Total posts
- Impressions (if available)
- Engagements (if available)
- Engagement rate (if available)
- Percentage of total
- Each platform color-coded
- Hover for exact numbers
- Legend with platform names
- Platform name + icon
- All metrics in columns
- Sorted by post count (default)
Drilldown Modals
KPI Drilldown
Click any KPI card to see detailed breakdown: Modal Content:- Platform-by-platform metrics
- Post-by-post contribution
- Trend chart for that metric
- Export to CSV option
- LinkedIn: 120K impressions (42%)
- Instagram: 98K (34%)
- Twitter: 67K (24%)
Post Detail Modal
Click any top post to see full details: Modal Content:- Full post content
- All media attachments
- Complete metrics:
- Impressions, reach, clicks
- Likes, comments, shares, saves
- Engagement rate
- Platform-specific metrics
- Link to edit post
- Published timestamp
Data Modes
Real Analytics (Late Add-on Enabled)
Data Source: Late.com Analytics API Metrics:- Actual impressions from platforms
- Actual engagement data
- Follower counts
- Detailed breakdowns
Computed Metrics (Fallback)
Data Source: Late.com Posts API + Sanity Metrics:- Post count (instead of impressions)
- Activity count (instead of engagements)
- Scheduling data
“Analytics Add-on Required: Upgrade your Late.com plan to see real performance metrics. Currently showing computed metrics based on post data.”CTA Button: “Learn More” (links to Late.com pricing)
Export Functionality
CSV Export Includes:- KPI summary row
- Daily metrics table:
- Date
- Impressions
- Engagements
- Engagement rate
- Posts published
- Followers gained
- Top posts table
- Platform breakdown table
ybh-social-analytics-{dateRange}.csv
Trigger: Click “Export CSV” button in header
Empty States
No Data
Trigger: No posts published in selected date range Display:- Icon (chart with X)
- Heading: “No Data Available”
- Message: “No posts published during this period. Adjust your date range or publish content to see analytics.”
- CTA: “View Calendar” button
Error State
Trigger: API error fetching analytics Display:- Alert icon (red)
- Heading: “Failed to Load Analytics”
- Error message from API
- CTA: “Retry” button
Loading State
Display:- Skeleton UI for KPI cards
- Gray placeholder charts
- Pulsing animation
- “Loading analytics…” text
Technical Details
Component:SocialAnalyticsPage.tsx
API Routes:
GET /api/late/analytics- Fetch metrics from Late.comGET /api/late/analytics/followers- Follower statsGET /api/late/posts- Fallback for computed metrics
- React Query for data fetching (5-minute stale time)
- Local state for filters, drilldowns
src/services/analytics.ts- Metrics aggregationsrc/services/analyticsExport.ts- CSV generation
- Memoized computed metrics
- Lazy-loaded chart components
- Virtualized top posts list (if >50 posts)
Related Features
Social Calendar
View and manage scheduled posts
Post Scheduling
Create and schedule social content
Troubleshooting
Analytics Not Updating
Causes:- Late.com sync delay (up to 24h)
- Platform API rate limits
- Disconnected social accounts
- Check last sync timestamp
- Verify accounts are connected in Late.com
- Wait for next scheduled sync
- Contact Late.com support
Missing Platform Data
Causes:- Platform doesn’t provide analytics (e.g., some Twitter accounts)
- Account lacks permissions
- Recent platform policy changes
- Verify account type and permissions
- Reconnect account in Late.com
- Check Late.com platform compatibility docs