mirror of
https://github.com/nicepkg/ai-workflow.git
synced 2026-11-18 18:04:23 +00:00
81 lines
2.6 KiB
Markdown
81 lines
2.6 KiB
Markdown
---
|
||
source: https://code.claude.com/docs/en/analytics
|
||
title: Analytics
|
||
---
|
||
|
||
Claude Code provides an analytics dashboard that helps organizations understand developer usage patterns, track productivity metrics, and optimize their Claude Code adoption.
|
||
|
||
Analytics are currently available only for organizations using Claude Code with the Claude API through the Claude Console.
|
||
|
||
## [](#access-analytics) Access analytics
|
||
|
||
Navigate to the analytics dashboard at [console.anthropic.com/claude-code](https://console.anthropic.com/claude-code).
|
||
|
||
### [](#required-roles) Required roles
|
||
|
||
- **Primary Owner**
|
||
- **Owner**
|
||
- **Billing**
|
||
- **Admin**
|
||
- **Developer**
|
||
|
||
Users with **User**, **Claude Code User** or **Membership Admin** roles cannot access analytics.
|
||
|
||
## [](#available-metrics) Available metrics
|
||
|
||
### [](#lines-of-code-accepted) Lines of code accepted
|
||
|
||
Total lines of code written by Claude Code that users have accepted in their sessions.
|
||
|
||
- Excludes rejected code suggestions
|
||
- Doesn’t track subsequent deletions
|
||
|
||
### [](#suggestion-accept-rate) Suggestion accept rate
|
||
|
||
Percentage of times users accept code editing tool usage, including:
|
||
|
||
- Edit
|
||
- Write
|
||
- NotebookEdit
|
||
|
||
### [](#activity) Activity
|
||
|
||
**users**: Number of active users in a given day (number on left Y-axis)
|
||
**sessions**: Number of active sessions in a given day (number on right Y-axis)
|
||
|
||
### [](#spend) Spend
|
||
|
||
**users**: Number of active users in a given day (number on left Y-axis)
|
||
**spend**: Total dollars spent in a given day (number on right Y-axis)
|
||
|
||
### [](#team-insights) Team insights
|
||
|
||
**Members**: All users who have authenticated to Claude Code
|
||
|
||
- API key users are displayed by **API key identifier**
|
||
- OAuth users are displayed by **email address**
|
||
|
||
**Spend this month:** Per-user total spend for the current month.
|
||
**Lines this month:** Per-user total of accepted code lines for the current month.
|
||
|
||
## [](#using-analytics-effectively) Using analytics effectively
|
||
|
||
### [](#monitor-adoption) Monitor adoption
|
||
|
||
Track team member status to identify:
|
||
|
||
- Active users who can share best practices
|
||
- Overall adoption trends across your organization
|
||
|
||
### [](#measure-productivity) Measure productivity
|
||
|
||
Tool acceptance rates and code metrics help you:
|
||
|
||
- Understand developer satisfaction with Claude Code suggestions
|
||
- Track code generation effectiveness
|
||
- Identify opportunities for training or process improvements
|
||
|
||
## [](#related-resources) Related resources
|
||
|
||
- [Monitoring usage with OpenTelemetry](/docs/en/monitoring-usage) for custom metrics and alerting
|
||
- [Identity and access management](/docs/en/iam) for role configuration |