Google has agreed to a $93 million settlement with the California Attorney General’s Office after a multi-year investigation found the company allegedly lied to users by telling them their location data was not collected or stored for targeted advertising.

The company allegedly violated California consumer protection laws for several years by telling users that if they turned off the “Location History” setting then Google would not store their geolocation data. However, according to the complaint Google continued to track those users and store the data. The California complaint also alleges the tech giant tricked consumers about whether they could opt out of advertisements using their location.