Companies are starting to emulate some of the tactics popularized by Instagram, TikTok and Pinterest to help boost sales. One key area of focus: algorithm-based personalization.