Claude Code usage analytics (original) (raw)

This feature allows Console users and owners of Team and Enterprise plans to monitor how their organization uses Claude Code, tracking productivity metrics and adoption patterns across teams.

Accessing Claude Code analytics

Team and Enterprise plans

API Console users

Available metrics

The Claude Code Usage page displays the following metrics for your organization:

Organization-level metrics

User-level metrics

Individual usage: View each team member's email address and their total lines of code accepted for the current month. You can search for specific users or click the “Export” button to generate a CSV of members’ email addresses and total lines of code.

Understanding the metrics

Lines of code accepted measures the actual code your team incorporates into their work from Claude Code suggestions, helping you understand the tool's practical impact on development productivity.

Suggestion accept rate indicates how relevant and useful Claude Code's suggestions are for your team's specific coding needs and practices.

Activity trends show adoption patterns and help identify peak usage periods, allowing you to understand how Claude Code fits into your team's workflow.

Contribution metrics (beta)

Contribution metrics are a new feature in public beta that helps Team and Enterprise organizations measure how Claude Code affects engineering velocity. By connecting to your organization's GitHub account, these metrics track code shipping activity with and without Claude Code, so you can see where it's making a difference.

Setting up contribution metrics

Contribution metrics require a few steps beyond the base analytics setup:

After setup, metrics begin populating automatically. Allow up to 24 hours for data to appear. The dashboard currently processes data once daily.

If you see "GitHub app required. Install the GitHub app to view analytics," the GitHub App hasn't been installed yet. If the app is authenticated but no data appears, confirm the GitHub App is installed and that your team has started using Claude Code.

Available contribution metrics

Once enabled, the following metrics appear in your Claude Code analytics dashboard:

Data is collected by correlating Claude Code session activity with GitHub commits and pull requests.

Data reset and availability

Usage metrics display data for the current calendar month and reset at the beginning of each month. Historical data visualization shows daily granularity for tracking trends over time.

Using analytics to optimize Claude Code adoption

Review your organization's code acceptance rate to understand if teams are finding Claude Code's suggestions valuable. If rates are lower than expected, consider providing additional training on effective prompting techniques.

Monitor individual usage patterns to identify power users who can share best practices with the broader team, or to spot team members who might benefit from additional support.

Track activity trends to understand when your team uses Claude Code most effectively and ensure adequate seat allocation during peak periods.

Frequently asked questions

I'm using an individual paid plan; how can I access usage analytics for Claude Code?

Claude Code usage analytics are not available to individual Pro or Max plans at this time.

I'm looking for specific user but they're missing from the reports.

If you notice that a specific user isn't showing up in your analytics, you should have them update Claude Code to the most recent version. The first Claude Code version to support this feature is version 2.0.28, so users should run claude update to manually update Claude Code if needed.

Where can I find more information?

See Analytics in our Claude Code docs for more information.


Related Articles

Claude Code FAQView usage analytics for Team and Enterprise plansGet started with the Claude Enterprise Analytics APISet up Code Review for Claude CodeUse analytics chat to ask Claude about usage