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:
- Use the new enable/disable feature to turn off Pi-hole when you want to access Google Anayltics
- Whitelist and blacklist Google Analytics on an as needed basis
- Use Network Locations (if using a Mac) to switch to a non-Pi-holed network
- 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.