Not long ago, companies had to rely on surveys and focus groups to understand what customers liked and didn’t like about their products. In recent years, social media and online ratings have given businesses new ways to learn customers’ opinions.