In short
Storing information on a visitor's device, or reading information already stored there, is allowed only if the visitor has given consent. The exception is storage that is strictly needed to provide a service the visitor explicitly asked for (Art. 5(3)).
Consent takes the meaning it has under the GDPR (Art. 2(f) of Directive 2002/58/EC, read with Art. 94(2) of Regulation (EU) 2016/679). A pre-ticked box is not consent, so see the GDPR guide for the full standard.
Email marketing needs prior consent in most cases (Art. 13(1)). For your own customers, there is a limited exception if they could object at the time of collection and in every message (Art. 13(2)).
The EU is reviewing parts of these rules under the Digital Omnibus proposal. The rules in this guide apply until any change is adopted, and your national law may differ in detail.
Who it applies to
- Any site or app that sets cookies or similar tools on visitors' devices, such as analytics, advertising pixels, chat widgets, social plugins and personalisation scripts.
- Shops that send visitor data to third-party tools through tags or scripts.
- Email marketing sent to customers or subscribers.
Exceptions and limits
- Technical storage for the sole purpose of carrying out the transmission of a communication (Art. 5(3)).
- Storage strictly necessary for a service the user explicitly requested, such as a shopping cart, a login or a checkout (Art. 5(3)). Check how your national authority reads “strictly necessary”.
- Electronic mail for direct marketing of your own similar products or services to customers you sold to, provided they could object free of charge and easily (Art. 13(2)).
What you must do
- 1
Ask for consent before setting non-essential cookies
Do not store information on a visitor's device, or read it, until they have agreed to that use, unless it is one of the exceptions above (Art. 5(3)). Analytics, advertising and social tracking cookies usually need consent.
“is only allowed on condition that the subscriber or user concerned has given his or her consent”
Art. 5(3) Directive 2002/58/EC
- 2
Explain each use clearly before the visitor agrees
The visitor must be given clear and comprehensive information first, including the purposes of the processing. In practice this means naming each tool and third party, what it does and how long it stays. The GDPR information duties in Article 13 apply where the data is personal.
“having been provided with clear and comprehensive information”
Art. 5(3) Directive 2002/58/EC; Art. 13 Regulation (EU) 2016/679
- 3
Make sure consent is valid
Consent must meet the GDPR standard: a clear affirmative action, freely given, specific and informed (GDPR Art. 4(11) and 7). Withdrawing it must be as easy as giving it (GDPR Art. 7(3)).
“corresponds to the data subject's consent in Directive 95/46/EC”
Art. 2(f) Directive 2002/58/EC; Art. 4(11), 7(3) and 94(2) Regulation (EU) 2016/679
- 4
Use the strictly-necessary exception only where it applies
Cookies for a shopping cart, a login or a checkout can rely on the exception. Analytics, marketing and personalisation cookies generally can't, because the visitor did not ask for them as part of the service.
“strictly necessary in order for the provider of an information society service explicitly requested by the subscriber or user to provide the service”
Art. 5(3) Directive 2002/58/EC
- 5
Get prior consent for marketing emails
Send direct marketing emails only to people who gave prior consent (Art. 13(1)). The exception for your own similar products is limited to customers from a sale, and they must have been able to object free of charge and easily at collection and in each message (Art. 13(2)).
“may be allowed only in respect of subscribers or users who have given their prior consent”
Art. 13(1) and 13(2) Directive 2002/58/EC
- 6
Never hide the sender or leave out a way to unsubscribe
Direct marketing emails must not disguise or conceal who sent them, and must include a valid address where the recipient can ask for them to stop (Art. 13(4)).
“which do not have a valid address to which the recipient may send a request that such communications cease”
Art. 13(4) Directive 2002/58/EC
Common mistakes
- Loading analytics, advertising or social tags on the first page view and asking for consent afterwards. Art. 5(3) applies from the moment the device is accessed.
- A banner where rejecting takes many more clicks than accepting. Withdrawing consent must be as easy as giving it (GDPR Art. 7(3)).
- Treating every cookie as essential. Only storage strictly needed for the service the visitor asked for qualifies.
- Sending newsletters to people who never opted in, or to customers without a clear way to object.
- Not naming third parties in the cookie information, when their tags receive visitor data.
- Copying another country's cookie banner without checking your national implementation of Art. 5(3).
What to check yourself
Our audit doesn't check this rule. Use this list to review your store yourself.
- Which cookies and tags load before any consent choice, and what each one stores
- Whether rejecting consent is as easy as accepting it
- Whether the cookie information names each tool and third party
- Whether marketing emails are opt-in and include an easy unsubscribe
- How your national law implements Art. 5(3) and Art. 13
How to fix it
- Load your site in a private window and list every cookie and tag set before consent, using your browser's developer tools.
- Block all non-essential tags until the visitor agrees to them.
- Give visitors a real choice by category, and make rejecting as easy as accepting.
- Update your cookie policy with each tool, its purpose, the third party it belongs to, and how long it lasts.
- Check that newsletter sign-ups are opt-in, and keep records of consent.
Official sources
Last reviewed 12 November 2026. This guide summarises EU law for online stores and is not legal advice. As a directive, it takes effect through each country's national law, which can add stricter or more detailed rules. Check the official text and, where needed, ask a lawyer in your country.