If you have ever paid with a credit card, then the store likely knows exactly who “Customer #12345” is. Stores are tracking purchases this way whether there’s a loyalty account or not.
Discussion of this: https://www.creditcards.com/credit-card-news/retailer-data-t...