Retailers revamped their loyalty programs to adapt to the online environment, offering digital rewards, personalized offers, and exclusive discounts to retain customers.