Homebrew informs you about our analytics behaviour before we send any data with a link to the documentation (
https://docs.brew.sh/Analytics) which in turn links to the code on new installations and on existing ones if you haven't updated since we enabled analytics.