The General Data Protection Regulation (GDPR) and ePrivacy Directive (ePR) require you as a website owner to obtain cookie consents from your visitors from the EU. This is to protect users from tracking they have not consented to.