For a website, it requires in particular informing visitors (privacy policy), collecting only the data needed, securing it and allowing people to exercise their rights of access, rectification and erasure.
In France, the CNIL oversees its application, particularly regarding cookies and trackers.