To opt out of Google Analytics you have to install a browser extension
On Safari, when you highlight this extension, you get this warning:<p>* Webpage Contents
Can read sensitive information from webpages, including passwords, phone numbers, and credit cards .....
* Can see when you visit all webpages<p>Is the cure worse than the disease? Analytics might be an invasion of my privacy, but it is benign compared with seeing my password. I am not saying that the extension steals my passwords, but how do I know it does not?