Understanding behavior, rewarding loyalty and keeping customers top of mind is an art form that’s being sharpened by technology. Here’s the lowdown on how customers are spending their retail dollars and how you can take advantage.