export HOMEBREW_NO_ANALYTICS=1
or brew analytics off export HOMEBREW_NO_ANALYTICS=1
or brew analytics offhttps://gdpr.report/news/2018/02/01/gdpr-google-analytics-2/
This page carefully describes what data they are going to be using, so I don't see any reason it would violate it especially since they're not passing any PII.
"Use of personal data cannot be based on implicit or opt-out consent. There must be “a statement or a clear affirmative action” indicating a willingness to share the information. Google will reportedly be capturing that consent for properties that it controls, such as Google.com and YouTube. But the company is asking third-party publishers to collect consent in situations where Google’s technology and ad targeting are behind the scenes (see below). "
Which to me as a layman reads you need to have users opt-in to consenting to be used in Google Analytics if it is used in your product/site.