Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cmd/analytics: note Google Analytics differences. #14654

Merged
merged 1 commit into from
Feb 16, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
8 changes: 6 additions & 2 deletions Library/Homebrew/cmd/analytics.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ def analytics_args
Turn Homebrew's analytics on or off respectively.

`brew analytics regenerate-uuid`:
Regenerate the UUID used for Homebrew's analytics.
Regenerate the UUID used for Homebrew's Google Analytics (not InfluxDB).
EOS

named_args %w[state on off regenerate-uuid], max: 1
Expand All @@ -38,7 +38,11 @@ def analytics
puts "Analytics are disabled."
else
puts "Analytics are enabled."
puts "UUID: #{Utils::Analytics.uuid}" if Utils::Analytics.uuid.present?
if Homebrew::EnvConfig.no_google_analytics?
puts "Google Analytics are disabled."
elsif Utils::Analytics.uuid.present?
puts "UUID: #{Utils::Analytics.uuid}"
end
end
when "on"
Utils::Analytics.enable!
Expand Down
2 changes: 1 addition & 1 deletion docs/Manpage.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ Read more at <https://docs.brew.sh/Analytics>.
<br>Turn Homebrew's analytics on or off respectively.

`brew analytics regenerate-uuid`
<br>Regenerate the UUID used for Homebrew's analytics.
<br>Regenerate the UUID used for Homebrew's Google Analytics (not InfluxDB).

### `autoremove` [`--dry-run`]

Expand Down
2 changes: 1 addition & 1 deletion manpages/brew.1
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ Control Homebrew\'s anonymous aggregate user behaviour analytics\. Read more at
.
.P
\fBbrew analytics regenerate\-uuid\fR
Regenerate the UUID used for Homebrew\'s analytics\.
Regenerate the UUID used for Homebrew\'s Google Analytics (not InfluxDB)\.
.
.SS "\fBautoremove\fR [\fB\-\-dry\-run\fR]"
Uninstall formulae that were only installed as a dependency of another formula and are now no longer needed\.
Expand Down