Mike McQuaid 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							792ec7fc85 
							
						 
					 
					
						
						
							
							utils/analytics: tweaks constants.  
						
						... 
						
						
						
						This enables easier usage in `brew formula-analytics`. 
						
						
					 
					
						2023-02-21 17:07:01 +00:00 
						 
				 
			
				
					
						
							
							
								Mike McQuaid 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							57844530a9 
							
						 
					 
					
						
						
							
							analytics: remove UUID.  
						
						... 
						
						
						
						We don't use this at all with InfluxDB and don't need it any more for GA
so let's just remove it. 
						
						
					 
					
						2023-02-20 09:05:15 +00:00 
						 
				 
			
				
					
						
							
							
								Mike McQuaid 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							ad1213a7da 
							
						 
					 
					
						
						
							
							utils/analytics: make on_request a proper boolean.  
						
						... 
						
						
						
						Otherwise when it's `false` it's being turned into a `true` value. 
						
						
					 
					
						2023-02-16 17:51:42 +00:00 
						 
				 
			
				
					
						
							
							
								Mike McQuaid 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							a83fef7b41 
							
						 
					 
					
						
						
							
							utils/analytics: cleanup data.  
						
						... 
						
						
						
						Based on reviewing InfluxDB buckets. 
						
						
					 
					
						2023-02-16 13:15:04 +00:00 
						 
				 
			
				
					
						
							
							
								Mike McQuaid 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							ef8ad10741 
							
						 
					 
					
						
						
							
							utils/analytics: fix BuildError reporting.  
						
						... 
						
						
						
						Need to ensure we call the correct methods to avoid duplicates. 
						
						
					 
					
						2023-02-16 12:59:46 +00:00 
						 
				 
			
				
					
						
							
							
								Mike McQuaid 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							e42cae19a5 
							
						 
					 
					
						
						
							
							Merge pull request  #14647  from MikeMcQuaid/report_influxdb_default  
						
						... 
						
						
						
						analytics: report to InfluxDB by default. 
						
						
					 
					
						2023-02-15 19:19:41 +00:00 
						 
				 
			
				
					
						
							
							
								Mike McQuaid 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							dfd4cd9b0c 
							
						 
					 
					
						
						
							
							analytics: update token.  
						
						... 
						
						
						
						We've deleted the old data and added a new bucket with a new token. 
						
						
					 
					
						2023-02-15 17:32:34 +00:00 
						 
				 
			
				
					
						
							
							
								Mike McQuaid 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							769a8c5001 
							
						 
					 
					
						
						
							
							analytics: report to InfluxDB by default.  
						
						... 
						
						
						
						Now that this is ready: let's roll it out to everyone in 4.0.0. 
						
						
					 
					
						2023-02-15 17:27:02 +00:00 
						 
				 
			
				
					
						
							
							
								Mike McQuaid 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							c5252817c2 
							
						 
					 
					
						
						
							
							analytics: refactor InfluxDB/Google handling.  
						
						
						
						
					 
					
						2023-02-15 16:34:50 +00:00 
						 
				 
			
				
					
						
							
							
								Sean Molenaar 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							50e9247da4 
							
						 
					 
					
						
						
							
							fix: add better keys and fuller values to influxDB analytics  
						
						
						
						
					 
					
						2023-02-15 14:12:05 +01:00 
						 
				 
			
				
					
						
							
							
								Bo Anderson 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							7ef0c48362 
							
						 
					 
					
						
						
							
							Fix analytics handling when core/cask taps are untapped  
						
						
						
						
					 
					
						2023-02-15 05:31:08 +00:00 
						 
				 
			
				
					
						
							
							
								Sean Molenaar 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							61e5e19bdb 
							
						 
					 
					
						
						
							
							analytics: fix spelling  
						
						... 
						
						
						
						Co-authored-by: Mike McQuaid <mike@mikemcquaid.com>
Co-authored-by: Eric Knibbe <enk3@outlook.com> 
						
						
					 
					
						2023-02-06 16:56:25 +01:00 
						 
				 
			
				
					
						
							
							
								Sean Molenaar 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							10e3c522f7 
							
						 
					 
					
						
						
							
							analytics: stop sending analytics in tests  
						
						
						
						
					 
					
						2023-02-06 16:28:34 +01:00 
						 
				 
			
				
					
						
							
							
								Francois-Xavier Coudert 
							
						 
					 
					
						
						
						
						
							
						
						
							2b07d0d5bb 
							
						 
					 
					
						
						
							
							analytics: fix URL typo  
						
						
						
						
					 
					
						2023-01-26 21:24:50 +01:00 
						 
				 
			
				
					
						
							
							
								Sean Molenaar 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							59ebdab2b7 
							
						 
					 
					
						
						
							
							analytics: switch to InfluxDB for logging  
						
						
						
						
					 
					
						2023-01-19 18:15:27 +01:00 
						 
				 
			
				
					
						
							
							
								Mike McQuaid 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							2d5eab2e1c 
							
						 
					 
					
						
						
							
							brew style --fix  
						
						
						
						
					 
					
						2022-06-30 08:56:21 +01:00 
						 
				 
			
				
					
						
							
							
								Bo Anderson 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							40bbdc659e 
							
						 
					 
					
						
						
							
							Fix some Style/FetchEnvVar offences  
						
						
						
						
					 
					
						2022-06-17 19:47:57 +01:00 
						 
				 
			
				
					
						
							
							
								Bo Anderson 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							a10b16828f 
							
						 
					 
					
						
						
							
							utils/analytics: use curl shim  
						
						
						
						
					 
					
						2022-06-17 19:47:56 +01:00 
						 
				 
			
				
					
						
							
							
								Kyle Smith 
							
						 
					 
					
						
						
						
						
							
						
						
							7866a4b586 
							
						 
					 
					
						
						
							
							feat: support user-configured Google Analytics reporting  
						
						... 
						
						
						
						Allow users to set a custom Google Analytics tracking ID to report user behaviour
via new environment variable: $HOMEBREW_ADDITIONAL_GOOGLE_ANALYTICS_ID.
If provided, this tracking ID will be used _in addition to_ the default tracking
ID used by <https://brew.sh/analytics/ >. 
						
						
					 
					
						2021-10-19 10:49:43 -05:00 
						 
				 
			
				
					
						
							
							
								Rylan Polster 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							9b2a504207 
							
						 
					 
					
						
						
							
							Fix API fetch methods in Utils::Analytics  
						
						
						
						
					 
					
						2021-08-09 18:39:49 -04:00 
						 
				 
			
				
					
						
							
							
								Rylan Polster 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							737dd1654b 
							
						 
					 
					
						
						
							
							Refactor API methods  
						
						
						
						
					 
					
						2021-08-06 04:31:27 -04:00 
						 
				 
			
				
					
						
							
							
								Nanda H Krishna 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							5ccfbcd1d2 
							
						 
					 
					
						
						
							
							Autocorrect style issues with brew style --fix  
						
						
						
						
					 
					
						2021-07-08 12:36:39 +05:30 
						 
				 
			
				
					
						
							
							
								Rylan Polster 
							
						 
					 
					
						
						
						
						
							
						
						
							4b8477ba70 
							
						 
					 
					
						
						
							
							Completions, Settings: move to Homebrew namespace  
						
						
						
						
					 
					
						2021-01-13 11:20:28 -05:00 
						 
				 
			
				
					
						
							
							
								Rylan Polster 
							
						 
					 
					
						
						
						
						
							
						
						
							f1f3fdc315 
							
						 
					 
					
						
						
							
							settings: add module for managing git config settings  
						
						
						
						
					 
					
						2021-01-12 16:27:25 -05:00 
						 
				 
			
				
					
						
							
							
								Mike McQuaid 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							8af4895479 
							
						 
					 
					
						
						
							
							Improve submitted analytics data  
						
						... 
						
						
						
						- Use default `custom-prefix` label on macOS ARM (as `/usr/local` is
  not the default).
- Add architecture (or Rosetta) to analytics event label.
- Don't send minor versions on Big Sur.
- Remove defunct `HOMEBREW_OSX_VERSION` reference. 
						
						
					 
					
						2021-01-07 09:28:40 +00:00 
						 
				 
			
				
					
						
							
							
								Markus Reiter 
							
						 
					 
					
						
						
						
						
							
						
						
							6750448d95 
							
						 
					 
					
						
						
							
							Fix some auto-correctable type errors.  
						
						
						
						
					 
					
						2020-11-29 21:23:54 +01:00 
						 
				 
			
				
					
						
							
							
								Markus Reiter 
							
						 
					 
					
						
						
						
						
							
						
						
							8598b1186a 
							
						 
					 
					
						
						
							
							Handle macOS versions >= 11.1 correctly.  
						
						
						
						
					 
					
						2020-11-23 13:46:15 +01:00 
						 
				 
			
				
					
						
							
							
								Markus Reiter 
							
						 
					 
					
						
						
						
						
							
						
						
							da9289eff0 
							
						 
					 
					
						
						
							
							Add more type signatures.  
						
						
						
						
					 
					
						2020-11-13 12:26:36 +01:00 
						 
				 
			
				
					
						
							
							
								Markus Reiter 
							
						 
					 
					
						
						
						
						
							
						
						
							24ae318a3d 
							
						 
					 
					
						
						
							
							Move type annotations into files.  
						
						
						
						
					 
					
						2020-10-10 14:59:39 +02:00 
						 
				 
			
				
					
						
							
							
								Mike McQuaid 
							
						 
					 
					
						
						
						
						
							
						
						
							8b97c27c21 
							
						 
					 
					
						
						
							
							brew style manual fixes  
						
						
						
						
					 
					
						2020-09-01 14:26:45 +01:00 
						 
				 
			
				
					
						
							
							
								Mike McQuaid 
							
						 
					 
					
						
						
						
						
							
						
						
							e09147fe75 
							
						 
					 
					
						
						
							
							brew style --fix  
						
						
						
						
					 
					
						2020-09-01 14:26:45 +01:00 
						 
				 
			
				
					
						
							
							
								Markus Reiter 
							
						 
					 
					
						
						
						
						
							
						
						
							fd3225c89c 
							
						 
					 
					
						
						
							
							Document Analytics.  
						
						
						
						
					 
					
						2020-08-26 03:13:59 +02:00 
						 
				 
			
				
					
						
							
							
								Markus Reiter 
							
						 
					 
					
						
						
						
						
							
						
						
							490e503b1b 
							
						 
					 
					
						
						
							
							Replace Homebrew.args with Context.  
						
						
						
						
					 
					
						2020-08-06 16:13:14 +02:00 
						 
				 
			
				
					
						
							
							
								Markus Reiter 
							
						 
					 
					
						
						
						
						
							
						
						
							6c050492ee 
							
						 
					 
					
						
						
							
							Pass args to Analytics instead of using global args.  
						
						
						
						
					 
					
						2020-07-25 03:57:43 +02:00 
						 
				 
			
				
					
						
							
							
								Mike McQuaid 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							1ebb1c2885 
							
						 
					 
					
						
						
							
							Merge pull request  #7580  from tharun208/brew-cask-analytics  
						
						... 
						
						
						
						Added analytics for cask info 
						
						
					 
					
						2020-05-20 08:06:46 +01:00 
						 
				 
			
				
					
						
							
							
								Tharun 
							
						 
					 
					
						
						
						
						
							
						
						
							7186600a5c 
							
						 
					 
					
						
						
							
							renamed get_formulae_api  
						
						
						
						
					 
					
						2020-05-19 14:59:43 +05:30 
						 
				 
			
				
					
						
							
							
								Mike McQuaid 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							b9f493a7f6 
							
						 
					 
					
						
						
							
							Pass FormulaInstaller#display_options to BuildError.  
						
						... 
						
						
						
						This should improve the output in analytics. 
						
						
					 
					
						2020-05-18 12:46:25 +01:00 
						 
				 
			
				
					
						
							
							
								Mike McQuaid 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							f5b6a90fd0 
							
						 
					 
					
						
						
							
							utils/analytics: fix options reporting.  
						
						... 
						
						
						
						Check we have a non-empty `options` and convert them all to human
readable strings. 
						
						
					 
					
						2020-05-18 08:50:51 +01:00 
						 
				 
			
				
					
						
							
							
								Tharun 
							
						 
					 
					
						
						
						
						
							
						
						
							2a62be0875 
							
						 
					 
					
						
						
							
							Refractored analytics to support analytics for cask  
						
						
						
						
					 
					
						2020-05-17 01:38:11 +05:30 
						 
				 
			
				
					
						
							
							
								Tharun 
							
						 
					 
					
						
						
						
						
							
						
						
							139ca1d374 
							
						 
					 
					
						
						
							
							Updated analytics method name for cask info  
						
						
						
						
					 
					
						2020-05-17 00:31:12 +05:30 
						 
				 
			
				
					
						
							
							
								Mike McQuaid 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							3381cbf5c7 
							
						 
					 
					
						
						
							
							Use Homebrew::EnvConfig.  
						
						
						
						
					 
					
						2020-04-07 09:58:26 +01:00 
						 
				 
			
				
					
						
							
							
								Vítor Galvão 
							
						 
					 
					
						
						
						
						
							
						
						
							2e8aa3eb97 
							
						 
					 
					
						
						
							
							Use long --disable instead of short -q in curl  
						
						
						
						
					 
					
						2020-03-29 20:04:37 +01:00 
						 
				 
			
				
					
						
							
							
								Mike McQuaid 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							8f98b2bcc4 
							
						 
					 
					
						
						
							
							analytics: tweak behaviour.  
						
						... 
						
						
						
						- Use separate method for `not_this_run?` so we can still set the
  analytics message as seen when set.
- Clarify when analytics message is printed that we haven't sent any
  analytics yet. 
						
						
					 
					
						2020-02-22 17:13:51 +00:00 
						 
				 
			
				
					
						
							
							
								Mike McQuaid 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							6d6d2c0bbf 
							
						 
					 
					
						
						
							
							utils/analytics: fix refactoring rename.  
						
						... 
						
						
						
						Fixes a bug from #6639 . 
						
						
					 
					
						2019-11-22 10:39:16 +00:00 
						 
				 
			
				
					
						
							
							
								Mike McQuaid 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							3a9f585ebb 
							
						 
					 
					
						
						
							
							Move more code to utils/analytics.  
						
						
						
						
					 
					
						2019-11-22 09:10:29 +00:00 
						 
				 
			
				
					
						
							
							
								Mike McQuaid 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							c4f72312ce 
							
						 
					 
					
						
						
							
							Fixup brew style failures.  
						
						
						
						
					 
					
						2019-04-30 09:19:18 +01:00 
						 
				 
			
				
					
						
							
							
								Mike McQuaid 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							36dbad3922 
							
						 
					 
					
						
						
							
							Add frozen_string_literal to all files.  
						
						
						
						
					 
					
						2019-04-20 13:27:36 +09:00 
						 
				 
			
				
					
						
							
							
								Mike McQuaid 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							234e4aec96 
							
						 
					 
					
						
						
							
							Improve use of default_prefix? in tests.  
						
						
						
						
					 
					
						2019-01-21 14:33:56 +00:00 
						 
				 
			
				
					
						
							
							
								Mike McQuaid 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							699d543ecd 
							
						 
					 
					
						
						
							
							Use Homebrew.default_prefix? in more places.  
						
						
						
						
					 
					
						2019-01-21 12:37:42 +00:00 
						 
				 
			
				
					
						
							
							
								Mike McQuaid 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							c2d23838d0 
							
						 
					 
					
						
						
							
							analytics: fix display of build error options.  
						
						... 
						
						
						
						Currently these are all like `wget #<Options:0x0000000101171658>`. 
						
						
					 
					
						2018-10-13 15:09:03 -07:00