I need Google analytics for work

As of now, DNS-based blocking is all or nothing, so if you whitelist Google Analytics, you are whitelisting it for every site that uses it. This is what makes Pi-hole so powerful, but can also be a catch 22 when you need to use something like Google Analytics.

A few possible solutions:

  1. Use the new enable/disable feature to turn off Pi-hole when you want to access Google Anayltics
  2. Whitelist and blacklist Google Analytics on an as needed basis
  3. Use Network Locations (if using a Mac) to switch to a non-Pi-holed network
  4. Use some lighttpd.conf config to block on a per-site basis

The last suggestion is something I have been trying to work on, but it quite difficult, so might not be feasible.

1 Like