They phone home (to Google Analytics) by default: https://github.com/Homebrew/brew/blob/master/docs/Analytics....
It's pretty ridiculous. They're giving Google a map of everything individual users install. The only reason it's "anonymous" is that they're relying on Google to throw away personally identifying data before Homebrew sees it.