Analytics Overview
CodeInput analytics provide comprehensive insights into your merge conflict patterns, team collaboration metrics, and repository health. Make data-driven decisions to improve your development workflow.
Dashboard Overview
Key Metrics
Track your team's performance at a glance:
| Metric | Description | Target |
|---|---|---|
| Conflict Rate | % of PRs with conflicts | < 15% |
| Resolution Time | Avg. time to resolve conflicts | < 2 hours |
| Team Velocity | PRs merged per week | Increasing |
| Approval Speed | Avg. time for CODEOWNERS approval | < 4 hours |
Time-Series Trends
Visualize metrics over time:
- Hourly: Recent activity and patterns
- Daily: Week-over-week comparisons
- Weekly: Sprint planning insights
- Monthly: Long-term trend analysis
Conflict Analytics
Conflict Frequency
Identify problematic areas in your codebase:
Most Conflict-Prone Files (Last 30 Days)
├── src/auth/permissions.ts (12 conflicts)
├── src/api/routes.ts (9 conflicts)
├── package.json (7 conflicts)
└── src/utils/helpers.ts (5 conflicts)
Conflict Rate by Team
├── Frontend Team: 8.2%
├── Backend Team: 12.5%
└── DevOps Team: 4.1%
Conflict Types
Understand what kinds of conflicts occur:
Conflict Type Distribution
├── Content Conflicts: 65%
├── Whitespace Conflicts: 20%
├── Structural Conflicts: 10%
└── Binary Conflicts: 5%
Resolution Patterns
Learn from successful resolutions:
Resolution Strategy Effectiveness
├── AI-Assisted: 78% success rate, avg 45 min
├── Manual: 100% success rate, avg 2.5 hours
└── Automatic: 45% success rate, avg 5 min
Team Performance
Team Leaderboards
Compare team performance:
Conflict Resolution Leaders
┌─────────────────────┬──────────┬────────────┐
│ Team │ Resolved │ Avg Time │
├─────────────────────┼──────────┼────────────┤
│ Backend Team │ 45 │ 1.2 hours │
│ Frontend Team │ 38 │ 1.8 hours │
│ Platform Team │ 27 │ 0.9 hours │
└─────────────────────┴──────────┴────────────┘
Individual Contributors
Track individual contributions (requires user consent):
Top Contributors (Resolutions)
├── Sarah Chen (23 conflicts resolved)
├── Alex Rivera (19 conflicts resolved)
└── Jordan Kim (15 conflicts resolved)
Fastest Resolvers
├── Jordan Kim avg 25 min/resolution
├── Sarah Chen avg 32 min/resolution
└── Alex Rivera avg 38 min/resolution
Collaboration Metrics
Measure team collaboration:
Collaboration Scorecard
├── Co-authored resolutions: 34%
├── Cross-team conflicts: 18%
├── Knowledge sharing index: 7.2/10
└── Team diversity score: 8.5/10
Repository Health
Trend Analysis
Monitor repository health over time:
Health Score Trend
├── This Week: 82/100 (↑ 5 from last week)
├── Last Week: 77/100
├── Last Month: 71/100 (↑ 11 from first month)
Risk Indicators
Identify potential issues early:
Risk Factors Detected
├── ⚠️ High conflict rate in src/auth/ (above threshold)
├── ⚠️ Increasing merge time over past 2 weeks
├── ✅ Approval times within healthy range
└── ✅ Team velocity stable
Branch Analysis
Understand branch management:
Branch Metrics
├── Active branches: 47
├── Stale branches (>30 days): 8
├── Avg. branch lifetime: 3.2 days
└── Merge success rate: 94%
CODEOWNERS Analytics
Approval Metrics
Track CODEOWNERS performance:
Approval Performance by Team
┌──────────────────┬────────┬───────────┬────────────┐
│ Team │ Pending │ Avg Time │ Success % │
├──────────────────┼────────┼───────────┼────────────┤
│ Frontend Team │ 3 │ 2.1 hours │ 98% │
│ Backend Team │ 7 │ 4.5 hours │ 95% │
│ Security Team │ 1 │ 8.2 hours │ 100% │
└──────────────────┴────────┴───────────┴────────────┘
Bottleneck Detection
Find approval bottlenecks:
Approval Bottlenecks
├── @security-team: avg 8.2 hours (recommend: add backup approver)
├── @backend-lead: avg 4.5 hours (within acceptable range)
└── @frontend-team: avg 2.1 hours ✅ (excellent)
Coverage Analysis
Ensure proper code coverage:
CODEOWNERS Coverage
├── Files with owners: 94%
├── Files without owners: 6%
├── Teams with backup: 78%
└── Orphaned files: 23
Custom Reports
Build Custom Dashboards
Create tailored views for different stakeholders:
Engineering Managers
- Team velocity and throughput
- Blocker identification
- Resource allocation
Tech Leads
- Technical debt indicators
- Code quality metrics
- Review process efficiency
DevOps Teams
- CI/CD pipeline impact
- Release conflict frequency
- Automation opportunities
Export Data
Export analytics data in multiple formats:
# Export as CSVcodeinput analytics export \--repository acme/api \--period 30d \--format csv \--output conflicts.csv# Export as JSONcodeinput analytics export \
Alerts and Notifications
Configure Thresholds
Set up alerts for important metrics:
# .codeinput.ymlanalytics:alerts:- metric: conflict_ratethreshold: 20operator: greater_thannotification: slack- metric: approval_time
Alert Types
| Alert Type | Trigger | Use Case |
|---|---|---|
| Spike Alert | Sudden increase in metric | Detect anomalies |
| Trend Alert | Gradual change over time | Long-term monitoring |
| Threshold Alert | Value exceeds limit | SLA monitoring |
| Comparison Alert | Differs from baseline | Performance tracking |
API Access
Query analytics data programmatically:
# Get conflict statisticscurl https://api.codeinput.com/v1/analytics/conflicts \-H "Authorization: Bearer YOUR_TOKEN" \-d "repository=acme/api" \-d "period=30d"# Get team performancecurl https://api.codeinput.com/v1/analytics/teams \-H "Authorization: Bearer YOUR_TOKEN" \
Privacy and Data Retention
Data Collection
CodeInput collects:
- Conflict events and metadata
- Resolution times and outcomes
- Team assignments and approvals
- Branch and PR information
No sensitive code content is stored for analytics.
Data Retention
- Raw Events: 90 days
- Aggregated Metrics: 2 years
- Custom Reports: Until deleted
- Exported Data: Indefinite (customer-controlled)
Data Access
- Export all your data anytime
- Request data deletion
- Configure data retention policies
- GDPR and SOC2 compliant
Best Practices
Regular Review
- Weekly: Check key metrics dashboard
- Monthly: Review trends and patterns
- Quarterly: Deep-dive into team performance
- Annually: Evaluate process improvements
Taking Action
- Identify Bottlenecks: Use data to find friction points
- Set Targets: Establish measurable goals
- Implement Changes: Make process improvements
- Measure Impact: Track effectiveness of changes
Team Communication
- Share Dashboards: Make metrics visible to team
- Celebrate Wins: Highlight improvements
- Discuss Challenges: Review problems openly
- Continuous Learning: Use insights for training
Getting Started
- Explore Dashboard: View default analytics views
- Customize Views: Create team-specific dashboards
- Set Alerts: Configure important threshold alerts
- Export Data: Integrate with existing tools
- Review Regularly: Schedule weekly check-ins
Need Help?
- View analytics API reference (coming soon)
- Check dashboard customization guide (coming soon)
- Follow us on Bluesky