These decisions regarding discounts to increase profits have always been made on a geographical basis, but technology is much more sophisticated than it was twenty years ago, and customers like myself have gladly shared their full shopping histories, enabling store managers to mine through an enormous amount of data.
Also, by sharing shopping carts, they can view what their friends are buying in the store at any given time, poll comments and make shopping a shared experience.