Osbert

Articles / Cookies

Privacy basics

What are cookies?

Published · Data as of Dec 4, 2026 · 3 min read

Cookies are small text files that a website saves in your browser so it can remember you: that you're signed in, what's in your cart, your settings, and, for advertising and analytics cookies, what you do across visits and sometimes across other sites. In the EU, sites need your consent before setting cookies that aren't strictly necessary, which is why you see cookie banners. 95% of the privacy policies Osbert tracks mention cookies.

What they are
small files in your browser
Mention cookies
95%
Mention pixels or beacons
63%
Say they honor Global Privacy Control
32%

Almost every website uses cookies. Some are essential for the site to work; others exist mainly to track what you do. Here's how to tell them apart.

A cookie is a small piece of text that a website asks your browser to save. The next time your browser visits that site, it sends the cookie back, so the site recognizes you. A cookie can hold an ID number that links your visits together, a setting like your language, or a sign-in token.

Types of cookies

By who sets it What it means
First-party cookie Set by the website you're visiting
Third-party cookie Set by another company whose code is on the page, often an ad or analytics company, which can recognize you across many sites
By how long it lasts What it means
Session cookie Deleted when you close your browser
Persistent cookie Stays until it expires or you delete it, sometimes for months or years
By purpose What it's for Consent needed in the EU?
Strictly necessary Signing in, your cart, security No
Preferences Remembering your settings Usually yes
Analytics Measuring how people use the site Usually yes
Advertising Tracking you to target ads Yes

In the EU, the ePrivacy Directive says storing information on your device, or reading information already there, is only allowed with your consent, after you've been given clear information about why. The exception is what's strictly necessary to provide a service you asked for (ePrivacy Directive, Article 5(3)). That's why European sites show cookie banners, and why "Reject all" should leave only the essential cookies.

In the U.S., there's no general cookie-consent rule, but laws like California's let you opt out of the sale or sharing of your data, which covers much of what advertising cookies do. See What is CCPA?

It's not only cookies

Sites also track you with other tools, which privacy policies often list alongside cookies. Of 1,279 privacy policies Osbert tracks:

  • 95% mention cookies, and 41% describe cookie settings or consent choices.
  • 63% mention pixels or web beacons, invisible images or code that report when you open a page or an email.
  • 26% mention local storage or SDKs, tracking code built into apps.
  • 18% mention third-party cookies by name, and 15% mention strictly necessary or essential cookies.
  • 12% say they record and replay visits with session-replay tools. See Do websites and apps record what you do on screen?
  • 2% mention device or browser fingerprinting, which identifies you without cookies.

How to control cookies

  1. Use "Reject all" or "Necessary only" in cookie banners.
  2. Turn on Global Privacy Control so sites get your opt-out from selling and sharing automatically where the law requires it; 32% of privacy policies say they honor it. See What is Global Privacy Control?
  3. Block third-party cookies in your browser's privacy settings.
  4. Clear cookies for sites you no longer use, or use a private window that deletes them when you close it.
  5. Adjust ad settings on big platforms, such as Facebook's ad settings.

Common questions

Are cookies bad?

Not all of them. Strictly necessary cookies keep you signed in and remember your cart. Advertising and some analytics cookies are the ones that track you across visits and sites, and those are the ones worth rejecting.

Should I accept cookies?

Accept the strictly necessary ones; the site may not work without them. For the rest, choose "Reject all" or "Necessary only" unless you want personalized ads or the site needs a specific cookie for a feature you use.

What is the difference between first-party and third-party cookies?

A first-party cookie is set by the website you're visiting. A third-party cookie is set by another company whose code is on the page, such as an ad network, and can recognize you across every site that uses that company's code.