HARTFORD, Ct (WTVO) — Google has reached a $391.5 million settlement with Illinois and 39 other states over claims that it tracked users’ location without their knowledge.

The state’s attorneys who filed the lawsuit called it the largest U.S. internet privacy settlement in history.

“This $391.5 million settlement is a historic win for consumers in an era of increasing reliance on technology. Location data is among the most sensitive and valuable personal information Google collects, and there are so many reasons why a consumer may opt-out of tracking,” Connecticut Attorney General William Tong said in a statement.

Google also settled a $100 million class-action lawsuit with Illinois after violating the state’s Biometric Privacy Law “to obtain consent from anyone when it introduced its facial recognition technology,” through Google Photos.

The AP reported that many Google services on Android devices and iPhones store your location data even if you’ve used a privacy setting that says it will prevent Google from doing so. 

Storing such data carries privacy risks and has been used by police to determine the location of suspects.

The AP reported in 2018 that the privacy issue with location tracking affected some two billion users of devices that run Google’s Android operating software and hundreds of millions of worldwide iPhone users who rely on Google for maps or search.

The attorneys general who investigated Google said a key part of the company’s digital advertising business is location data, which they called the most sensitive and valuable personal data the company collects. Even a small amount of location data can reveal a person’s identity and routines, they said.

Google uses the location information to target consumers with ads by its customers, the state officials said.

The attorneys general said Google misled users about its location tracking practices since at least 2014, violating state consumer protection laws.

As part of the settlement, Google also agreed to make those practices more transparent to users, including showing them more information when they turn location account settings on and off and keeping a webpage that gives users information about the data Google collects.

The settlement also limits Google’s use and storage of certain types of location information and requires Google to make its account controls more user-friendly.

The attorneys general of Oregon and Nebraska led the settlement negotiations, assisted by Arkansas, Florida, Illinois, Louisiana, New Jersey, North Carolina, Pennsylvania, and Tennessee. The final settlement was also joined by Alabama, Alaska, Colorado, Delaware, Georgia, Hawaii, Idaho, Iowa, Kansas, Kentucky, Maine, Maryland, Massachusetts, Michigan, Minnesota, Mississippi, Missouri, Nevada, New Mexico, New York, North Dakota, Ohio, Oklahoma, South Carolina, South Dakota, Utah, Vermont, Virginia, and Wisconsin.

The Associated Press contributed to this report.