uMatrix was good for this as you could block cookies. I do this in uBO, but it is a little more complicated. I block all third party JS with the following line:
*$script,redirect=noop.js,3p
and then allow google.com for google sites such as google.co.uk with: