Vizio Inc., a popular smart TV brand, settled a lawsuit Monday that accused it of using its TVs to track what its owners watched, then selling that information to marketing firms, all without customers’ knowledge or consent.

Vizio agreed to pay $2.2 million to settle the lawsuit filed by the Federal Trade Commission and the New Jersey Attorney General.

Vizio began compiling data from its internet-connected TVs in 2014, retrofitting smart TVs sold as far back as 2010 through a software update—11 million smart TVs in total. “On a second-by-second basis, Vizio collected a selection of pixels on the screen that it matched to a database of TV, movie and commercial content,” the FTC said in a blog post. “What’s more, Vizio identified viewing data from cable or broadband service providers, set-top boxes, streaming devices, DVD players and over-the-air broadcasts. Add it all up and Vizio captured as many as 100 billion data points each day from millions of TVs.”

In a statement, Vizio said that its data collection program “never paired viewing data with personally identifiable information such as name or contact information.” Instead, the data was compiled in aggregate that the company used to create summary reports on its customer’s viewing behaviors.

However, the FTC said the data that was sold included information such as a consumer IP address, which companies then used to track and target consumers across different internet-connected devices. The agency also said that Vizio’s contracts didn’t prohibit third parties from cross referencing Vizio’s data with other information to determine details such as sex, age, income, marital status, household size and education level of consumers.