Use Team or Enterprise for eligible PR attribution

Based on official documentation (checked 9 November 2026), Team and Enterprise administrators and Owners can view analytics at claude.ai/analytics/claude-code.

Account surface:
Team and Enterprise
Access:
Admin or Owner
Reporting scope:
Usage; contribution metrics in public beta with eligible GitHub integration
Account surface:
Claude Console API
Access:
UsageView permission
Reporting scope:
Usage and spend; no GitHub contribution metrics

API customers use platform.claude.com/claude-code. The Developer, Billing, Admin, Owner, and Primary Owner roles have UsageView permission.

Contribution metrics cover only users within your claude.ai organization, excluding Claude Console API and third-party integration usage. Setup requires a Claude Owner for analytics settings and a GitHub admin for app installation. Organizations with Zero Data Retention enabled, and repositories on GitHub Enterprise Server, receive usage metrics only.

This guide covers team usage and contribution analytics. For Code Review activity and spend, use its separate dashboard.

Connect GitHub before expecting contribution data

For an eligible organization, enable contribution reporting by installing the GitHub app, enabling analytics, and selecting the GitHub organizations to analyze.

  1. Have a GitHub admin install the Claude GitHub app at github.com/apps/claude on the organization’s GitHub account.
  2. Have a Claude Owner open claude.ai/admin-settings/claude-code and enable Claude Code analytics.
  3. On that page, enable GitHub analytics.
  4. Complete GitHub authentication and select the GitHub organizations to include.

The documentation says contribution data generally appears within 24 hours after enablement and updates daily. If data is still processing, it advises checking again after a few days and confirming that the GitHub app is installed if data still hasn’t appeared.

Ordered GitHub contribution reporting setup
Original documentation diagram showing the setup sequence; not a dashboard capture. Source: Track team usage with analytics – Claude Code Docs, checked 9 Nov 2026

Read Adoption separately from merged-PR charts

Use Adoption for daily usage, PRs per user for the documented daily ratio, and Pull requests for the merged-PR attribution breakdown.

View:
Adoption
Documented measure:
Daily active users and active sessions per day
Reading distinction:
Usage activity
View:
PRs per user
Documented measure:
PRs merged per day divided by daily active users, alongside daily active users
Reading distinction:
A daily ratio with its user count
View:
Pull requests
Documented measure:
Daily merged PRs with CC and without CC
Reading distinction:
Assisted-code attribution among merged PRs
View:
Lines of code view
Documented measure:
The same breakdown by code lines
Reading distinction:
Lines rather than PR counts

The English documentation defines Lines of code with CC as assisted code lines across merged PRs. It counts effective lines with more than 3 characters after normalization, excluding empty lines and lines containing only brackets or trivial punctuation.

We recommend keeping accepted edits separate from shipped-code attribution: accepted lines total additions and removals from accepted Edit and Write edits, exclude rejected suggestions, and aren’t reduced when lines are deleted later.

Read both attribution-window descriptions before comparing

Read both descriptions before interpreting attribution: the English documentation’s Time window section specifies sessions from 21 days before to 2 days after the PR merge date, while Attribution notes says sessions outside the 21-day window aren’t considered.

Note: These are conflicting descriptions in the documentation. We recommend retaining both when explaining attribution, rather than presenting either description as a settled eligibility rule.

Account for excluded files and generated content

Attribution analysis automatically excludes documented generated-content categories, so interpret its totals with those exclusions in mind.

  • Lock files such as package-lock.json, yarn.lock, and Cargo.lock.
  • Generated code, including Protobuf outputs, build artifacts, and minified files.
  • Build directories: dist/, build/, node_modules/, and target/.
  • Test fixtures, including snapshots, cassettes, and mock data.
  • Lines over 1,000 characters in the English and Japanese documentation.

Choose the Console period before reading team insights

For Console team insights, select the review period at the top of the dashboard; the default is the last 30 days.

The table identifies API key users by key name and OAuth users by email address. It shows members, per-user spend, and accepted lines from Edit and Write.

Note: Console spend figures are estimates for analytics. Use the cost page for actual costs.