A cookie banner (also consent banner) is the dialog on a website or in an app through which visitors consent to or refuse the storing of and access to information on their device. In Germany, the legal basis is Section 25 TDDDG, formerly the TTDSG, which transposes Art. 5(3) of the ePrivacy Directive. Strictly necessary cookies need no consent, whereas analytics and marketing services usually do.
Consent is valid only if it is freely given, informed and expressed through an active step. According to the Planet49 judgment of the Court of Justice, pre-ticked boxes are insufficient, and supervisory authorities require refusing to be as easy as accepting. Scripts load only after consent, and every consent is logged (A.1.2.5 Obtain and record consent).