Skip to content

feat: add anonymous CLI telemetry via PostHog#123

Draft
felipefreitag wants to merge 3 commits intomainfrom
feat-telemetry
Draft

feat: add anonymous CLI telemetry via PostHog#123
felipefreitag wants to merge 3 commits intomainfrom
feat-telemetry

Conversation

@felipefreitag
Copy link
Contributor

Fire-and-forget usage tracking (command name, OS, arch, CLI version). No PII collected.
Opt out with DO_NOT_TRACK=1 or RESEND_TELEMETRY_DISABLED=1.
Anonymous ID stored at ~/.config/resend/telemetry-id.

Fire-and-forget usage tracking (command name, OS, arch, CLI version).
No PII collected. Opt out with DO_NOT_TRACK=1 or RESEND_TELEMETRY_DISABLED=1.
Anonymous ID stored at ~/.config/resend/telemetry-id.
if (full.startsWith('brew')) {
return 'homebrew';
}
return 'install-script';

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we want an event for this?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's a property on the event, not a separate event. The goal is to understand the distribution channel split (npm vs homebrew vs install script). It's a nice-to-have.

Single boolean: isInteractive() && !opts.json
Covers TTY, CI, piped, and --json/--quiet cases.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants