# Pkg sends usage info to Google Analytics \[Update: No, it doesn't\]

**URL:** https://discourse.julialang.org/t/pkg-sends-usage-info-to-google-analytics-update-no-it-doesnt/761
**Category:** Offtopic
**Created:** [December 6, 2016, 2:13pm UTC](https://discourse.julialang.org/t/pkg-sends-usage-info-to-google-analytics-update-no-it-doesnt/761 "2016-12-06T14:13:26Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![mlhetland](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mlhetland/32/283_2.png) [@mlhetland](https://discourse.julialang.org/u/mlhetland)
#### Post date: [December 6, 2016, 2:13pm UTC](https://discourse.julialang.org/t/pkg-sends-usage-info-to-google-analytics-update-no-it-doesnt/761/1 "2016-12-06T14:13:26Z")

</div>

Just got the following message when running `Pkg`:

```julia
Updating Homebrew...
==> Homebrew has enabled anonymous aggregate user behaviour analytics.
Read the analytics documentation (and how to opt-out) here:
  https://git.io/brew-analytics

```

On the info-page, there are two opt-out options given. Either

```julia
export HOMEBREW_NO_ANALYTICS=1

```

or

```julia
brew analytics off

```

I’m not sure about the Julia policy on this; perhaps it’s fine that using `Pkg` sends usage info to the Homebrew team. But perhaps it could be a bit easier for `Pkg` users to opt out? (I, for one, am not even sure how to pipe commands through to the proper shell or environment, in order to reach the `brew` used by `Pkg`.)

Not a big deal, of course; if you’re using `Pkg` or `brew`, you’re going to be contacting servers with logs anyway.

---

<div class="post-metadata">

### Author: ![yuyichao](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/yuyichao/32/20_2.png) [@yuyichao](https://discourse.julialang.org/u/yuyichao)
#### Post date: [December 6, 2016, 2:55pm UTC](https://discourse.julialang.org/t/pkg-sends-usage-info-to-google-analytics-update-no-it-doesnt/761/2 "2016-12-06T14:55:53Z")

</div>

Note that `Pkg` does not send any usage info and therefore provides no way to opt out, the message likely comes from Homebrew.jl. I assume the default could be changed there.

---

<div class="post-metadata">

### Author: ![simonbyrne](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/simonbyrne/32/19_2.png) [@simonbyrne](https://discourse.julialang.org/u/simonbyrne)
#### Post date: [December 6, 2016, 3:37pm UTC](https://discourse.julialang.org/t/pkg-sends-usage-info-to-google-analytics-update-no-it-doesnt/761/3 "2016-12-06T15:37:07Z")

</div>

According to the code, [Homebrew.jl opts out of analytics by default](https://github.com/JuliaPackaging/Homebrew.jl/blob/cb25c5b001601009ec6c05ad8e4bf9d3b48613e8/src/util.jl#L32-L35).

---

<div class="post-metadata">

### Author: ![mlhetland](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mlhetland/32/283_2.png) [@mlhetland](https://discourse.julialang.org/u/mlhetland)
#### Post date: [December 6, 2016, 7:27pm UTC](https://discourse.julialang.org/t/pkg-sends-usage-info-to-google-analytics-update-no-it-doesnt/761/4 "2016-12-06T19:27:46Z")

</div>

Indeed! Sorry for sloppy research on my part, then. I guess the Homebrew warning was just a false alarm 🙂 Thanks for figuring this out!
