Where have you been?
You can identify customers based on their digital foot print. Essentially know what they look at (generally speaking), and if they meander off to competitors stores/lots in all sorts of fashion. Whether it be for a car, mattress, TV, or whatever.
Anytime I visit parts store that aren't Autozone, I always get a coupon for AZ. It's not magic, it's just cookies/tracking.