diff --git a/share/doc/homebrew/Analytics.md b/share/doc/homebrew/Analytics.md index 3cb406df4309fc4fe3329fa199e7503defd28c62..e22f11607b1080a2fd294de198d1a7e315650d79 100644 --- a/share/doc/homebrew/Analytics.md +++ b/share/doc/homebrew/Analytics.md @@ -43,5 +43,15 @@ Homebrew's analytics are accessible to Homebrew's current maintainers. Contact @ ## How? The code is viewable in https://github.com/Homebrew/brew/blob/master/Library/Homebrew/utils/analytics.rb and https://github.com/Homebrew/brew/blob/master/Library/Homebrew/utils/analytics.sh. They are done in a separate background process and fail fast to avoid delaying any execution. They will fail immediately and silently if you have no network connection. -## Opting-out -If after everything you've read you still wish to opt-out of Homebrew's analytics you may set `HOMEBREW_NO_ANALYTICS=1` in your environment or run `git config --file="$(brew --repository)/.git/config" --replace-all homebrew.analyticsdisabled true` which will prevent analytics from ever being sent when either of them have been set. +## Opting out +Homebrew analytics helps us maintainers and leaving it on is appreciated. However, if you want to opt out of Homebrew's analytics, you can set this variable in your environment: + +```sh +export HOMEBREW_NO_ANALYTICS=1 +``` + +Alternatively, this will prevent analytics from ever being sent: + +```sh +git config --file="$(brew --repository)/.git/config" --replace-all homebrew.analyticsdisabled true +```