Using analytics to keep customer experience out of jeopardy