aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/utils/analytics.sh
AgeCommit message (Collapse)Author
2017-11-23setup-analytics: Handle missing /proc/.../uuidShaun Jackman
2017-06-07analytics: remove unused analytics.Mike McQuaid
We didn't end up using the `screenview` and `exception` analytics as much as expected so let's remove them and focus on stuff that's formula-specific.
2017-04-23Fix and remove various TODOs.Mike McQuaid
Fix those that can be done so without tearing Homebrew to pieces and remove the comments for those that can never be done.
2017-01-04Use docs.brew.sh links.Mike McQuaid
2016-10-26Redirect stderr output from git (shim) invocations to /dev/null.William Woodruff
These invocations occur before we can actually automatically install git via bottle, and as such their output isn't relevant.
2016-10-01analytics: don't report commands run by HomebrewAlyssa Ross
Fixes #788.
2016-09-20Update documentation links.Mike McQuaid
2016-09-18Use new "macOS" naming where appropriate.Mike McQuaid
Not quite a mass replacement as I've used OS X and Mac OS X where describing specific older versions and added compatibility methods for things in the DSL.
2016-08-09utils/analytics.sh: tweak output in debug modeMartin Afanasjew
Avoid some duplication (thereby also shortening line length) and put everything in a single string for output via `echo`.
2016-08-09analytics.*: use curl --data for readability.Mike McQuaid
2016-08-09analytics.*: output curl command in debug mode.Mike McQuaid
2016-08-08utils/analytics.sh: fix style inconsistenciesMartin Afanasjew
2016-07-24analytics.sh: use full uuidgen path on OS X.Mike McQuaid
Fixes #575.
2016-06-29analytics: make Linux UUID generation more robustMartin Afanasjew
Not every Linux system has a pre-installed `uuidgen` command (Debian has a package `uuid-runtime` but doesn't install it by default). In contrast, `/proc/sys/kernel/random/uuid` is always available on a modern Linux system and produces type/version 4 UUIDs, just like `uuidgen`. Closes #416. Signed-off-by: Martin Afanasjew <martin@afanasjew.de>
2016-06-29analytics: handle UUID generation errorsMartin Afanasjew
Avoid writing an empty UUID to the Git configuration file and disable analytics temporarily to avoid sending bogus data with an invalid UUID.
2016-05-04Don't report cask to analytics.Mike McQuaid
2016-05-01add `brew analytics` command (#173)Xu Cheng
2016-04-30analytics: relocate UUID to homebrew.analyticsuuid in .git/configZhiming Wang
This way analytics related settings and parameters (currently analyticsdisabled, analyticsmessage and analyticsuuid) are all kept in the same place. Note that in this commit we offer a path of migration: if ~/.homebrew_analytics_user_uuid already exists, read the UUID from it, write to homebrew.analyticsuuid, and remove it. See more detailed discussions in #145. Closes #162. Signed-off-by: Martin Afanasjew <martin@afanasjew.de>
2016-04-26Analytics: Separate user-supplied and internal-use DISABLE_ANALYTICS (#155)Andrew Janke
This prevents `brew` self-calls from interacting with the stickiness of HOMEBREW_NO_ANALYTICS being persisted to the brew repo and accidentally disabling analytics permanently when it should have been for just one run, while restoring the stickiness of an explicit user-supplied HOMEBREW_NO_ANALYTICS.
2016-04-26fix setup-analytics (#154)Xu Cheng
DO not invoke git config because HOMEBREW_NO_ANALYTICS, otherwise it will disable analytics for everyone when running `brew update` in following manners: * `brew update` will set HOMEBREW_NO_ANALYTICS because the absence of `homebrew.analyticsmessage` * `brew update-report` will set `homebrew.analyticsdisabled` because of HOMEBREW_NO_ANALYTICS. Also reduce file IO.
2016-04-25More analytics tweaks.Mike McQuaid
Provide a single command that can be run to disable analytics, run it if `HOMEBREW_NO_ANALYTICS` is ever set and remove the user UUID file in that case too. References https://github.com/Homebrew/brew/issues/142.
2016-04-23Ship analytics for Homebrew.Mike McQuaid
For more information and opt-out instructions please read: https://github.com/Homebrew/brew/blob/master/share/doc/homebrew/Analytics.md#analytics
2016-04-21analytics: roll tracking ID.Mike McQuaid
Someone else has been sending weird data to ours and it has bad initial test data so let's roll it before we ship it to everyone on Saturday.
2016-04-16analytics: add more documentation, Linuxbrew ID. (#98)Mike McQuaid
2016-04-12Document disabling of opt-in Homebrew analytics. (#79)Mike McQuaid
2016-04-12Homebrew (opt-in) Analytics tweaks. (#57)Mike McQuaid
- add `HOMEBREW_PRODUCT` global variable - only differentiate between `/usr/local` and `non-/usr/local` Homebrew prefixes to avoid sharing sensitive user information - note if e.g. build errors are occurring under CI - Add `HOMEBREW_NO_ANALYTICS` variable (this will be how people opt-out when this is enabled for everyone) - Add `HOMEBREW_ANALYTICS_DEBUG` variable to output all the analytics that are sent - Move Bash analytics code to `Library/Homebrew/utils/analytics.sh` - Add documentation for our analytics and why/what/when/how and opt-out - Only official Homebrew commands are reported - Ruby analytics are now reported in a forked, background process