The basic rule
Cookies and similar technologies that are not strictly necessary need the visitor's consent first. Consent must be freely given, specific, informed and clear.
What counts as necessary
Cookies that make a requested service work, such as a shopping basket or login, are usually exempt. Analytics and advertising usually are not, although some regulators treat limited analytics more leniently.
What a banner must do
Explain what the cookies do, let people accept or refuse as easily as each other and not load non-essential scripts until they agree.
Records and changes
Keep a record of consent and let people change their mind later.
Elsewhere
Some places only require notice and an opt-out. A cookie policy that names your tools helps in every case.
A short example
A travel blog runs analytics and an ad network. Visitors from the EU land on the page and the scripts load straight away. Under the usual rules, those optional scripts should wait until the visitor agrees, and the banner should make saying no as easy as saying yes.
What to do this week
Open your site and list every cookie and tracker. Sort them into necessary and optional. Set up a banner that keeps the optional ones off until consent and offers a way to change the choice later.
