Lawmakers in Connecticut recently enacted restrictions on using shoppers’ personal data to determine what they pay.