A new California law went into effect on January 1, 2020 that gives people more control over their privacy online — as long as they know their rights.

The law is only enforceable for California residents, but many websites are extending its provisions to all users, and it will reshape the internet for everyone.

You can now find out more about what personal data websites are collecting and how it's being used. You can also request that websites stop collecting your personal data.

Visit Business Insider's homepage for more stories.

In the weeks leading up to 2020, companies have been scrambling to comply with a sweeping new privacy law that gives people more control over how websites track and sell their personal information.

The law, called the California Consumer Privacy Act, only legally applies to California residents — but many websites are rolling out tools and privacy changes that will apply to all users. The CCPA went into effect on January 1.

Companies are now legally obligated to give California residents the opportunity to see how their personal information is being tracked, how it's being sold, and how to opt out.

But some tech companies are already pushing back on the thrust of the law. Both Facebook and Google have argued that they're exempt from letting users request that the companies stop selling their personal data — that's because the companies don't technically sell people's personal information, but rather use that information to serve people ads that are relevant to their interests.

Here's a breakdown of the rights that the CCPA grants to California residents, and how to exercise those rights.