By Kim · Facts checked 9 Nov 2026 · Analytics access and attribution rules from Claude Code Docs
Choose the Team or Enterprise dashboard when you need eligible GitHub contribution reporting; use Console when you’re reviewing API usage and spend. Claude Code team adoption analytics and PR attribution answer different questions: Adoption shows daily users and sessions, while Pull requests separates merged PRs with and without Claude Code-assisted code. Code Review activity and spend have a separate dashboard.
We recommend checking eligibility first. Viewing access doesn’t replace the Owner and GitHub administrator needed for setup, and github.com hosting and Zero Data Retention affect contribution availability. Then select the relevant organizations and distinguish usage trends from merged-PR attribution.
Before you start, confirm scope and setup access
- Confirm whether you’re reviewing a Team or Enterprise organization or a Console API account.
- For contribution setup, have both the Claude Owner and GitHub administrator available.
- Confirm github.com hosting and check whether Zero Data Retention is enabled.
- Select the GitHub organizations to analyze during authentication.
- For Console team insights, select the intended review period.
- Keep Adoption, PRs per user, and merged-PR breakdowns distinct.
- Read both conflicting attribution-window descriptions and check excluded content before interpreting totals.
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.
- Have a GitHub admin install the Claude GitHub app at
github.com/apps/claudeon the organization’s GitHub account. - Have a Claude Owner open
claude.ai/admin-settings/claude-codeand enable Claude Code analytics. - On that page, enable
GitHub analytics. - 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.

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, andCargo.lock. - Generated code, including Protobuf outputs, build artifacts, and minified files.
- Build directories:
dist/,build/,node_modules/, andtarget/. - 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.
The catches: accepted lines aren’t retained-code totals
- Contribution reporting is in public beta and covers only users within your
claude.aiorganization. - Accepted-line totals include removals and aren’t reduced by later deletions, so don’t read them as retained code.
- Console spend figures are estimates; actual costs belong on the cost page.
It depends: Choose Team or Enterprise analytics for eligible GitHub contribution reporting; use Console for API usage and spend. The Time window section describes 21 days before to 2 days after merge, but Attribution notes gives conflicting wording.
Good fit: Team administrators reviewing adoption and eligible merged-PR attribution.
Not a fit: Console customers seeking GitHub contribution metrics, or organizations with Zero Data Retention enabled seeking contribution reporting.
| Team and Enterprise access | Admins and Owners can view the dashboard |
|---|---|
| Contribution setup | Claude Owner and GitHub admin required |
| Repository eligibility | github.com; GitHub Enterprise Server receives usage metrics only |
| Retention condition | Zero Data Retention means usage metrics only |
| Documented attribution window | Time window: 21 days before to 2 days after merge; Attribution notes instead says sessions outside the 21-day window aren’t considered |
| Console review period | Team insights defaults to the last 30 days |
Use analytics APIs for programmatic reporting
- Claude Code Analytics API: Use it when an API customer needs daily per-user metrics programmatically; it requires an Admin API key.
- Claude Enterprise Analytics API: Use it on Enterprise for per-user engagement, usage, and cost reports across Claude surfaces. The Primary Owner creates a key at
claude.ai/analytics/api-keyswithread:analytics; this API isn’t available on Teams.
- Actual session eligibility at the attribution-window boundaries remains unverified because the Time window and Attribution notes sections conflict.
- Actual handling of exactly 3 normalized characters remains unverified. The English documentation specifies more than 3.
- The treatment of a line exactly 1,000 characters long remains unresolved: English and Japanese documentation exclude lines over 1,000 characters, while Korean documentation says 1,000 or more.
- Attribution accuracy, causal productivity gains, and a reconciliation method for an individually disputed PR aren’t established. Don’t treat attribution alone as proof of productivity gains.
Questions readers ask
Which summary metrics accompany the adoption charts?
The dashboard includes lines of code accepted, suggestion accept rate, daily active users, sessions, and—with GitHub integration—PRs and lines shipped with Claude Code assistance.
Does suggestion accept rate include notebook edits?
Yes. The documented acceptance measure includes Edit, Write, and NotebookEdit tool usage.
Can you examine contribution data beyond the leaderboard?
Yes. The leaderboard displays the top 10 users by contribution volume, while the all-user CSV export includes every user’s contribution data.

Choose the analytics surface that matches your account, then read usage and merged-PR attribution as separate measures. For automated reporting, use the API comparison above to choose between Console daily per-user metrics and Enterprise reports across Claude surfaces.
Source list
- Track team usage with analytics – Claude Code Docs (checked 9 Nov 2026)
- Claude Code Docs (checked 9 Nov 2026)
- Claude Code Docs (checked 9 Nov 2026)
This guide draws on Track team usage with analytics and Claude Code Docs (3 pages), and its figures were checked against that text. Facts last checked 9 Nov 2026.