diff --git a/Library/Homebrew/cmd/analytics.rb b/Library/Homebrew/cmd/analytics.rb index b9c3badfd0..499f03a43f 100644 --- a/Library/Homebrew/cmd/analytics.rb +++ b/Library/Homebrew/cmd/analytics.rb @@ -22,7 +22,7 @@ module Homebrew 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 @@ -38,7 +38,11 @@ module Homebrew 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! diff --git a/docs/Manpage.md b/docs/Manpage.md index 5b77e94bda..cbb47b927e 100644 --- a/docs/Manpage.md +++ b/docs/Manpage.md @@ -80,7 +80,7 @@ Read more at .
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). ### `autoremove` [`--dry-run`] diff --git a/manpages/brew.1 b/manpages/brew.1 index 5a691cedbe..9ce476d6f6 100644 --- a/manpages/brew.1 +++ b/manpages/brew.1 @@ -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\.