You should use the resources object.
You can set certain requests to give specific responses if you don't want the request to actually go through. You'd do the following to make google analytics return an empty document:
browser.resources.mock('http://google.com/url/to/analytics.js',{});
Note that you have to provide the exact URL that you want to mock, there is no way to mock a partial URL such as a domain name.