The EU Cookie Law is a legislation that requires websites to get consent to the use of non-essential cookies. It is also known as the EU Cookie Directive, or the ePrivacy Directive.
Under the law, websites must provide opt-in options to users for cookies that aren’t necessary for the functionality of the site, known as “non-essential cookies.” Examples of non-essential cookies include analytics cookies and social media cookies.