Google has agreed to settle a US lawsuit claiming it invaded the privacy of users by tracking them even when…