claude-code - 💡(How to fix) Fix [DOCS] Analytics docs should clarify telemetry opt-out effects on API and Enterprise usage metrics [1 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
anthropics/claude-code#53075Fetched 2026-04-25 06:13:01
View on GitHub
Comments
0
Participants
1
Timeline
2
Reactions
0
Author
Participants
Timeline (top)
labeled ×2
RAW_BUFFERClick to expand / collapse

Documentation Type

Unclear/confusing documentation

Documentation Location

https://code.claude.com/docs/en/analytics

Section/Topic

Usage metrics in the Team/Enterprise and API analytics dashboards, plus the telemetry opt-out variables in Data usage and Environment variables.

Current Documentation

The analytics page currently says:

Claude Code provides analytics dashboards to help organizations understand developer usage patterns, track contribution metrics, and measure how Claude Code impacts engineering velocity.

It lists usage metrics for Team and Enterprise:

Usage metrics: lines of code accepted, suggestion accept rate, daily active users and sessions

And for API customers:

API customers using the Claude Console can access analytics at platform.claude.com/claude-code.

The data usage page documents telemetry opt-out separately:

To opt out of Statsig telemetry, set the DISABLE_TELEMETRY environment variable.

It also says:

You can opt out of all non-essential traffic, including surveys, at once by setting CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC.

The environment variables page says:

CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC | Equivalent of setting DISABLE_AUTOUPDATER, DISABLE_FEEDBACK_COMMAND, DISABLE_ERROR_REPORTING, and DISABLE_TELEMETRY

and:

DISABLE_TELEMETRY | Set to 1 to opt out of Statsig telemetry

What's Wrong or Missing?

The docs do not connect the telemetry opt-out variables to the API and Enterprise usage metrics described on the analytics page.

Changelog v2.1.120 includes:

Fixed DISABLE_TELEMETRY / CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC not suppressing usage metrics telemetry for API and enterprise users

That confirms these variables are supposed to suppress usage metrics telemetry for API and Enterprise users. The current docs explain that the variables disable Statsig/non-essential telemetry, and they explain that API and Team/Enterprise dashboards show usage metrics, but they do not explain the operational effect of opting out:

  • whether users with DISABLE_TELEMETRY=1 are omitted from usage metrics telemetry
  • whether CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC=1 has the same analytics impact
  • what admins should expect in API or Enterprise dashboards when some users opt out
  • whether metrics such as lines of code accepted, suggestion accept rate, daily active users, and sessions may be reduced or absent for opted-out users

Without this connection, admins can reasonably expect analytics dashboards to remain complete while also expecting telemetry to be disabled, even though the changelog indicates the usage-metrics telemetry is suppressed.

Suggested Improvement

Add a note to the analytics page under both Team/Enterprise and API usage metrics explaining that client-side telemetry opt-outs affect dashboard completeness.

Suggested wording:

Users who set DISABLE_TELEMETRY=1 or CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC=1 do not emit Claude Code usage metrics telemetry. For Team, Enterprise, and API analytics dashboards, metrics such as lines of code accepted, suggestion accept rate, daily active users, and sessions may exclude opted-out users or sessions.

Also update the data usage and environment variables pages so the DISABLE_TELEMETRY and CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC entries cross-link to the analytics page and explicitly mention usage metrics telemetry, not only Statsig operational metrics.

Impact

Medium - Makes feature difficult to understand

Additional Context

Affected Pages:

PageContext
https://code.claude.com/docs/en/analyticsDocuments Team/Enterprise and API usage metrics, but not how telemetry opt-out variables affect those metrics
https://code.claude.com/docs/en/data-usageDocuments DISABLE_TELEMETRY and CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC, but frames the behavior as Statsig/non-essential traffic rather than analytics usage-metrics suppression
https://code.claude.com/docs/en/env-varsDefines both opt-out variables without mentioning their impact on API or Enterprise analytics usage metrics
https://code.claude.com/docs/en/admin-setupPoints admins to analytics dashboards for usage visibility, but does not mention telemetry opt-outs as a possible reporting limitation
https://code.claude.com/docs/en/zero-data-retentionSays Claude Code Analytics collects productivity metadata and usage statistics for ZDR organizations, but does not cross-reference telemetry opt-outs

Total scope: 5 pages affected

Source: Changelog v2.1.120

Exact changelog entry: Fixed DISABLE_TELEMETRY / CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC not suppressing usage metrics telemetry for API and enterprise users

extent analysis

TL;DR

Update the analytics page to explain how telemetry opt-out variables affect dashboard completeness, and cross-link relevant documentation pages to clarify the impact on usage metrics.

Guidance

  • Add a note to the analytics page under Team/Enterprise and API usage metrics explaining that client-side telemetry opt-outs affect dashboard completeness.
  • Update the data usage and environment variables pages to explicitly mention usage metrics telemetry and cross-link to the analytics page.
  • Ensure that the DISABLE_TELEMETRY and CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC entries on the environment variables page clearly describe their impact on API and Enterprise analytics usage metrics.
  • Review the admin setup page to consider mentioning telemetry opt-outs as a possible reporting limitation when pointing admins to analytics dashboards.

Example

A possible wording for the note on the analytics page could be:

Users who set DISABLE_TELEMETRY=1 or CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC=1 do not emit Claude Code usage metrics telemetry. For Team, Enterprise, and API analytics dashboards, metrics such as lines of code accepted, suggestion accept rate, daily active users, and sessions may exclude opted-out users or sessions.

Notes

The suggested improvements aim to clarify the connection between telemetry opt-out variables and their effect on usage metrics in the analytics dashboards. This should help admins understand the potential impact on dashboard completeness when users opt out of telemetry.

Recommendation

Apply the suggested improvements to the documentation to enhance clarity and accuracy, ensuring that admins can make informed decisions about telemetry opt-outs and their effects on analytics dashboards.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

claude-code - 💡(How to fix) Fix [DOCS] Analytics docs should clarify telemetry opt-out effects on API and Enterprise usage metrics [1 participants]