Pupils in New Mexico allegedly have had their online data tracked, says the state’s attorney general.