Google agrees to $392 million settlement with 40 states over location tracking practices