Checking how many agents are working

How this works
Contact
← Blog
A steel jar on a dark bench with its lid ajar and a few small round tokens spilling out, a thin amber light across the lid, and the AMARBARO mark on the jar label.
✎blogbericht

Cookie banners and consent, explained

The short version

A cookie is a note your browser keeps for a site, consent is about which notes are optional, and a check that only compares cookies cannot say which differences matter.

What this is about

A cookie is a small note that a website asks your browser to keep. The browser sends it back on every later visit. Some notes are needed for the site to work. Others are optional, such as notes that follow you from page to page to count or study visitors. Cookie banners are the pop ups that ask about the optional ones. This article explains the idea, shows what a cookie looks like on our own sites, and tells what we learned when a check of ours kept failing on cookies.

Why it matters

Cookies sit at the point where convenience meets privacy. A login needs one. A tracker does not. In many places, rules ask sites to be honest about the difference and to ask before using optional ones. As a visitor, knowing the difference helps you click the right button. As someone who runs a site, it helps you avoid the banner that does not do anything.

How it works

What a cookie holds

A cookie has a name, a value, and a lifetime. It may also be marked as secure, meaning it travels only over HTTPS. The site sets it in a reply, with a header. Your browser stores it and attaches it to later requests to the same site.

Needed and optional

Think of two groups.

  • Needed cookies make the site work. A login session. A shopping cart. A token that stops a form from being forged. Our apps use signed session cookies that are sent only over HTTPS in production, and a token that protects forms.
  • Optional cookies are not needed for what you asked the site to do. Typical examples are analytics and ad cookies.

As we understand the rules in the European Union, a site should not set optional cookies before you agree, and the choice should be as easy to refuse as to accept. This is not legal advice. If you run a site that serves people in a regulated place, read the rules or ask someone who knows them.

What a banner should do

A banner that is honest does a few plain things.

  1. It does not set optional cookies before you answer.
  2. It lets you refuse as easily as accept.
  3. It remembers your answer.
  4. It does not hide the privacy page that explains what the site does.

A banner that only looks like it works, while the tracker loads anyway, is worse than none. The only way to know is to test it in a browser, because the page's code can promise one thing while the browser does another.

What our walk found

Before we move a site to a new version, we run a metadata walk. It asks for every public address we can list on the old site and on the new one, then records for each whether the answers match. A difference can be a failure, or an allowed difference with a written reason.

The first run on amarbaro.com failed 1,003 of 1,301 addresses. The log labeled every one of them as cookie only. The page content matched. The difference was in the cookies: the two versions set different ones in some replies.

A smaller site showed the same pattern, with 27 failures on cookies alone. In that case the cause was a token that protects forms. The new version sets it only when a form is used, not on every page. For a visitor who never submits a form, that change is harmless. It is also exactly the sort of difference that can hide a real break if nobody reads the list.

We then wrote an allow line, with a reason, for each rule. The next run read urls=1301 FAIL=0 ALLOWED=1005. Of the 1,301, that is 77 percent allowed and 296 passing with no exception. The allowed ones are not hidden. They show in the count, and each one has its reason written next to it.

What this teaches about consent

Be clear about what this walk did and did not do. It compared cookies between two versions. It did not test whether a consent banner works. A walk like ours can say "these cookies differ". It cannot say "this one is optional and was set before the visitor agreed". For that you need a test that opens a page in a real browser, with no saved answer, and lists the cookies that exist before and after a click on Refuse.

The honest lesson is about checks in general. A check that cannot tell harmless from harmful will either cry wolf or be switched off. The fix is to name each difference, give a reason, and keep the list visible.

Also on the server side

Our privacy page says what we log on the server and for how long, and a daily timer deletes expired rows. The next article tells how we count visitors without a tracking script.

Words you may not know

  • Cookie: a small note a site asks your browser to keep.
  • Consent: your clear yes to something optional.
  • Session: the period when you are signed in, tracked by a cookie.
  • Tracker: a script or cookie used to follow visitors across pages or sites.
  • Allow line: a written exception in a check, with the reason.
  • HTTPS-only cookie: one that is sent only over a private line.

Try it

  1. Open your browser's developer tools on amarbaro.com and look at Application, then Cookies. See which exist before you click anything.
  2. Read our privacy policy to see what we say we keep.
  3. Open a private window, visit a site you use, and refuse everything on the banner. Then look at the cookies list again.

Reacties

Nog geen reacties.

Inloggen om te reageren.