How Retailers Track Customers Online and Offline

When stores track your shopping, you get discounts and they get your personal info.