This guide gives an overview; it does not replace legal advice suited to your situation.
What a tracking cookie is
A tracking cookie holds a unique identifier, randomly assigned to your browser. It does not contain your name or email address, but it makes it possible to say “this is the same visitor as yesterday”, then to link their visits, clicks and purchases.
What sets it apart from a basket cookie is not its form but its purpose: it does nothing for the visitor, it serves the site or its partners (analytics, advertising, campaign measurement).
Real examples
| Cookie | Service | Role | Default lifetime |
|---|---|---|---|
_ga | Google Analytics | Tell each visitor apart | 2 years |
_ga_<id> | Google Analytics | Keep session state | 2 years |
_gcl_au | Google Ads | Link a conversion to an ad click | 90 days |
IDE | Google (doubleclick.net) | Advertising, third-party cookie | 13 months in Europe |
_fbp | Meta Pixel | Recognise the browser for Facebook and Instagram ads | 90 days (commonly observed) |
_fbc | Meta Pixel | Keep track of a click on a Meta ad | 90 days |
Lifetimes are those published by Google and Meta; they are often extended on every visit. Your site’s exact list depends on your tools: a TikTok, LinkedIn or Pinterest pixel adds its own.
What they make possible
- Measure: how many visitors come back, which pages they view, how long they stay.
- Attribute: know that an order came from an ad seen three days earlier, so the right campaign gets the credit.
- Retarget: show you, on Instagram or a news site, the pair of shoes you looked at.
- Profile: when a third-party cookie finds you on hundreds of sites, it builds a picture of your interests, sometimes very personal ones (health, religion, opinions).
The GDPR says so itself (Recital 30): online identifiers such as cookies leave traces which, combined with other information, can be used to build profiles and identify people.
Why they need consent
Because they are not necessary for the service the visitor asked for: a page displays and an order goes through perfectly well without them. And Article 5(3) of the ePrivacy Directive (Article 82 of the French Data Protection Act) only exempts what is strictly necessary. They must therefore:
- wait for the visitor’s “yes” before being set, and not be set at all if the visitor refuses;
- be disclosed with their purpose and the names of the partners;
- be possible to reject as easily as to accept, and to withdraw at any time.
One notable exception: in France, audience measurement set up to stay anonymous and for your own use only can do without consent. The conditions are in our guide to exempt audience measurement. A tracker set before the choice remains the leading reason for CNIL fines.
With Optooki
Optooki automatically blocks the trackers of the 136 services in its catalogue (Google Analytics, Google Ads, Meta Pixel, TikTok…) until consent, and sends Google Consent Mode v2 signals. The scanner checks that no tracking cookie is set before the choice, and weekly monitoring warns you when a new tracker appears.