Data analytics is transforming the loyalty rewards program