Store loyalty programs used to be simple: You’d get a punch card at a local sub shop, buy eight sandwiches and get your ninth for free. It felt like a transparent “thank you” for your business. But ...