Block cookies by name, not by site, in Firefox
Solution 1:
Disabling Google Analytics by Adding a Code to Your Computer’s Windows Host File
This is pretty simple, but should only be attempted by someone who already knows what I'm talking about. You can just add the following code in the windows host file ( C:\WINDOWS\SYSTEM32\DRIVERS\etc) and Google Analytics will be blocked.
127.0.0.1 www.google-analytics.com
Disabling Google Analytics by Using the Customize Google Plug-in
Go to http://www.customizegoogle.com/block-google-analytics-cookies.html and download the Customize Google Plug-in. A pop up will appear. Click the allow button, a new dialog box will appear. Just click install. Once it's installed, restart your browser. Then go to tools>customize Google options> privacy and click don’t send any cookies from Google Analytics.
Note: It is not compatible with some versions of Firefox
Disabling Google Analytics by Using the AdBlock Plus Plug-in
Go to https://addons.mozilla.org/en-US/firefox/addon/1865/ and download the AdBlockPlus plug-in. A pop up will appear. Click the allow button. A new dialog box will appear. Just click install and restart your browser once it's done. Then go to https://adblockplus.org/en/subscriptions and subscribe to "ABP Tracking Filter" and you have successfully disabled Google Analytics.
Read more: http://www.brighthub.com/internet/google/articles/74886.aspx#ixzz18rUCIe9u