The Procter & Gamble Co. is leveraging predictive analytics in an effort to gain a complete view of customer attitudes and preferences about its products.