Ship analytics for Homebrew.
For more information and opt-out instructions please read: https://github.com/Homebrew/brew/blob/master/share/doc/homebrew/Analytics.md#analytics
This commit is contained in:
		
							parent
							
								
									c20622ade4
								
							
						
					
					
						commit
						1451553188
					
				@ -169,8 +169,6 @@ can take several different forms:
 | 
			
		||||
  * `HOMEBREW_NO_ANALYTICS`:
 | 
			
		||||
    If set, Homebrew will not send analytics. See: <https://github.com/Homebrew/brew/blob/master/share/doc/homebrew/Analytics.md#analytics>
 | 
			
		||||
 | 
			
		||||
    *Note:* Homebrew currently disables analytics by default.
 | 
			
		||||
 | 
			
		||||
  * `HOMEBREW_NO_EMOJI`:
 | 
			
		||||
    If set, Homebrew will not print the `HOMEBREW_INSTALL_BADGE` on a
 | 
			
		||||
    successful build.
 | 
			
		||||
 | 
			
		||||
@ -8,7 +8,6 @@ def analytics_label
 | 
			
		||||
end
 | 
			
		||||
 | 
			
		||||
def report_analytics(type, metadata = {})
 | 
			
		||||
  return unless ENV["HOMEBREW_ANALYTICS"]
 | 
			
		||||
  return if ENV["HOMEBREW_NO_ANALYTICS"]
 | 
			
		||||
 | 
			
		||||
  args = %W[
 | 
			
		||||
 | 
			
		||||
@ -1,5 +1,4 @@
 | 
			
		||||
setup-analytics() {
 | 
			
		||||
  [[ -z "$HOMEBREW_ANALYTICS" ]] && return
 | 
			
		||||
  [[ -n "$HOMEBREW_NO_ANALYTICS" ]] && return
 | 
			
		||||
 | 
			
		||||
  # User UUID file. Used for Homebrew user counting. Can be deleted and
 | 
			
		||||
@ -27,7 +26,6 @@ setup-analytics() {
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
report-analytics-screenview-command() {
 | 
			
		||||
  [[ -z "$HOMEBREW_ANALYTICS" ]] && return
 | 
			
		||||
  [[ -n "$HOMEBREW_NO_ANALYTICS" ]] && return
 | 
			
		||||
 | 
			
		||||
  # Don't report non-official commands.
 | 
			
		||||
 | 
			
		||||
@ -1,5 +1,5 @@
 | 
			
		||||
# Homebrew's Anonymous Aggregate User Behaviour Analytics
 | 
			
		||||
Homebrew will shortly begin gathering anonymous aggregate user behaviour analytics and reporting these to Google Analytics.
 | 
			
		||||
Homebrew has begun gathering anonymous aggregate user behaviour analytics and reporting these to Google Analytics.
 | 
			
		||||
 | 
			
		||||
## Why?
 | 
			
		||||
Homebrew is provided free of charge and run entirely by volunteers in their spare time. As a result, we do not have the resources to do detailed user studies of Homebrew users to decide on how best to design future features and prioritise current work. Anonymous aggregate user analytics allow us to prioritise fixes and features based on how, where and when people use Homebrew. For example:
 | 
			
		||||
 | 
			
		||||
@ -516,9 +516,7 @@ Homebrew uses the GitHub API for features such as <code>brew search</code>.</p>
 | 
			
		||||
the number of parallel jobs to run when building with <code>make</code>(1).</p>
 | 
			
		||||
 | 
			
		||||
<p><em>Default:</em> the number of available CPU cores.</p></dd>
 | 
			
		||||
<dt><code>HOMEBREW_NO_ANALYTICS</code></dt><dd><p>If set, Homebrew will not send analytics. See: <a href="https://github.com/Homebrew/brew/blob/master/share/doc/homebrew/Analytics.md#analytics" data-bare-link="true">https://github.com/Homebrew/brew/blob/master/share/doc/homebrew/Analytics.md#analytics</a></p>
 | 
			
		||||
 | 
			
		||||
<p><em>Note:</em> Homebrew currently disables analytics by default.</p></dd>
 | 
			
		||||
<dt><code>HOMEBREW_NO_ANALYTICS</code></dt><dd><p>If set, Homebrew will not send analytics. See: <a href="https://github.com/Homebrew/brew/blob/master/share/doc/homebrew/Analytics.md#analytics" data-bare-link="true">https://github.com/Homebrew/brew/blob/master/share/doc/homebrew/Analytics.md#analytics</a></p></dd>
 | 
			
		||||
<dt><code>HOMEBREW_NO_EMOJI</code></dt><dd><p>If set, Homebrew will not print the <code>HOMEBREW_INSTALL_BADGE</code> on a
 | 
			
		||||
successful build.</p>
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
@ -723,9 +723,6 @@ If set, instructs Homebrew to use the value of \fBHOMEBREW_MAKE_JOBS\fR as the n
 | 
			
		||||
\fBHOMEBREW_NO_ANALYTICS\fR
 | 
			
		||||
If set, Homebrew will not send analytics\. See: \fIhttps://github\.com/Homebrew/brew/blob/master/share/doc/homebrew/Analytics\.md#analytics\fR
 | 
			
		||||
.
 | 
			
		||||
.IP
 | 
			
		||||
\fINote:\fR Homebrew currently disables analytics by default\.
 | 
			
		||||
.
 | 
			
		||||
.TP
 | 
			
		||||
\fBHOMEBREW_NO_EMOJI\fR
 | 
			
		||||
If set, Homebrew will not print the \fBHOMEBREW_INSTALL_BADGE\fR on a successful build\.
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user