Consent before non-essential trackers (ePrivacy)
Article 5(3) of the ePrivacy Directive requires consent before a site stores or reads information on the device of a user, unless this is strictly necessary for the service. Marketing pixels and most analytics tags are not strictly necessary. In the Netherlands this rule is in Article 11.7a of the Telecommunicatiewet.
Source: Directive 2002/58/EC on EUR-Lex
Valid consent (GDPR)
Consent must be freely given, specific, informed and unambiguous. The Court of Justice decided in Planet49 (C-673/17) that a pre-ticked box is not consent. Data protection authorities expect that a user can reject as easily as accept, on the same layer of the banner.
Source: Regulation (EU) 2016/679 on EUR-Lex
Health data is a special category (GDPR Art. 9)
Processing of data about health is prohibited unless an exception applies, such as explicit consent. The Court of Justice reads this widely: in case C-21/23 (2024) it decided that order data for pharmacy-only medicines is health data, also when the medicine needs no prescription. A page view on a condition-specific product can thus be sensitive when it is linked to a person.
Source: CJEU case C-21/23