feat(telemetry): add PostHog telemetry for CLI usage analytics#41
Merged
Conversation
d933e74 to
cc3d9d6
Compare
Collaborator
|
I would suggest we add this also to |
Add anonymous usage telemetry using PostHog to track command usage patterns. - Track command name and success/failure status - Uses hashed machine ID as distinct identifier - Opt-out via ENTIRE_TELEMETRY_OPTOUT environment variable - Skips hidden commands, help, and completion - Fails gracefully - telemetry errors never affect CLI Co-Authored-By: Claude <noreply@anthropic.com> Entire-Checkpoint: 30e81e82f6ba
Pass POSTHOG_API_KEY from GitHub secrets to goreleaser, which sets it via ldflags in the telemetry package during release builds. Entire-Checkpoint: 4c02af2759b6
0f6e2ac to
a372b04
Compare
Entire-Checkpoint: 4c02af2759b6
a372b04 to
d433741
Compare
Entire-Checkpoint: 45b48f42ab1f
Contributor
Author
Soph
approved these changes
Jan 15, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Summary
Add anonymous usage telemetry using PostHog to understand CLI usage patterns:
machineidlibrary)ENTIRE_TELEMETRY_OPTOUT=1environment variableWhat's Collected
commandflagssuccesscli_versionosarchin_ciConsent Flow:
Settings: