New Jersey became the first state last week to thwart a growing pricing practice that critics say targets consumers’ personal data to set different prices for the same groceries and other essentials, creating what state officials say is a discriminatory surveillance profile of shoppers.

“Surveillance-based pricing is a threat to marketplace fairness, consumer privacy and affordability,” said Dena Mottola Jaborska, New Jersey Citizen Action executive director.