Google will pay $391.5m (£330m) to settle allegations about how it collects data from users. Google will pay $391.5m (£330m) to settle allegations about how it collects data from users.

Google has been told to be transparent about location tracking in the future and develop a web page telling people about the data it collects.

It is the largest privacy-related multi-state settlement in US history. Last month, Google agreed to pay Arizona $85m over similar issues concerning how it collects location data.

A Google official said: "Consistent with improvements we've made in recent years, we have settled this investigation, which was based on outdated product policies that we changed years ago."

There remains one outstanding case on the topic in the US courts, after Texas, Indiana, Washington and the District of Columbia took legal action against Google in January.

Knowing a user's location helps advertisers target products. And location services help Google generate $200bn in annual advertising revenue.

The attorneys general said Google had been misleading consumers about location tracking since at least 2014, breaking state consumer-protection laws.

The company has been told to significantly improve user controls and the way it discloses location tracking, starting from 2023.