A proposed online privacy code would give consumers more control over how tech companies collect and use their data.