Zenith’s notebook
EN
0%

Chapter 11 · Code and security

GDPR and cookies for a small business website

Go down

Chapter 11 · Code and security

GDPR and cookies for a small business website

A cookie banner is not an obligation in itself: it follows from what the site installs. What the law requires, explained piece by piece.

22 minutes of reading 5 drawn plates 4 challenges

In this chapter
  1. What cookies are
  2. Technical, analytics, profiling
  3. Do you need a banner?
  4. External services
  5. The documents you need
  6. Data and security
  7. The 7-step check
  8. Frequently asked questions
  9. Sources

02The three families: technical, analytics, profiling

To find out whether a site needs a banner, you have to take an inventory of what it installs and put each tool in its family. There are three families, and only one always requires consent.

Technical cookies

These are the ones strictly necessary to provide the service the person asked for: keeping them logged in to a private area, remembering the contents of the cart and the chosen language, protecting a form from automated submissions, spreading traffic across several servers. Without them the site does not work the way the person expects. They do not require consent: it is enough to say they are there, in the privacy notice.

Analytics cookies

They count visits and show how the site is used: which pages are read, where people come from, on which devices. Here the Garante's 2021 guidelines make an important distinction. Analytics cookies can be treated like technical ones, and so without consent, only if all of these conditions are met together:

  • they do not allow the person to be identified directly: for example, the IP address is masked, at least in its last part;
  • they are used only to produce aggregate statistics;
  • they concern a single site (or a single app), without following the person elsewhere;
  • if the service is provided by a third party, that party does not match the data with other information and does not pass it on to others.

If even one of these conditions is missing, analytics become tools that require consent, exactly like profiling ones.

Profiling and marketing cookies

These build a profile of the person in order to show targeted advertising or personalize content based on their behavior, often across several sites. They are almost always present when a page contains social media pixels, advertising platforms and many embedded third-party services. For these, prior consent is always required: nothing is installed before the person has said yes.

FamilyWhat it is forExamplesConsent
Technicalmaking the requested service worklogin, cart, language, form securityno, the privacy notice is enough
"Equivalent" analyticsaggregate statistics for a single sitevisit counter with masked IPno, if all the conditions are met
"Full" analyticsstatistics with identifiable or matched datathird-party tools that reuse the datayes, before installing them
Profiling and marketinginterest profiles, targeted advertisingsocial media pixels, ad networksyes, always and beforehand

The words of the chapter

The privacy vocabulary, in eight cards

Tap a card to flip it.

04External services: videos, maps, pixels and fonts

Most small business websites do not install profiling cookies on purpose. They install them by inertia, through pieces taken from other services and pasted into the page because they are convenient. Each of these pieces does something the visitor does not see: the browser contacts another server, sends it the IP address and often receives or reads a cookie.

The visitor opens your page YOUR PAGE embedded video interactive map social pixel fonts each piece is a call to another server video server map server ad network font server IP · BROWSER · PAGE VISITED The visitor opens your page YOUR PAGE embedded video interactive map social pixel fonts each piece calls another server IP · BROWSER · PAGE video server map server ad network font server The visitor sees none of this.
Plate 11.4 — The external pieces. A video, a map, a pixel or a font loaded from another server: for each one the browser opens a connection to a third party and hands over at least the IP address, the browser type and the page the request comes from.

The embedded video

A YouTube or other platform frame, pasted in with the embed code, loads the player files from the platform's servers as soon as the page opens, even if nobody presses "play". There is a "privacy-enhanced mode" (the youtube-nocookie.com address) that reduces tracking until the video starts, but does not eliminate it. The cleanest solution is two-click loading: in place of the player there is an image with a notice, and the real video loads only when the person asks for it.

The interactive map

The same applies: an embedded map connects to the provider's servers when the page opens. To help people find your premises, a static image of the map, saved on your own server, is often enough, together with an "Open in Maps" link that takes the person to the app only if they want.

Social media and advertising pixels

A pixel exists, by definition, to measure who has seen what, and then show advertising to those people: it is profiling, and it always requires prior consent. It cannot start when the page loads, only after the "yes". Plain links to social media profiles, on the other hand, are normal links: until they are clicked, nothing happens.

Fonts loaded from outside

This is the subtlest case. Services such as Google Fonts, when they only provide the font files, do not install cookies; but the browser downloads them from the provider's servers, and so sends it the visitor's IP address. In Germany, the Regional Court of Munich, in a ruling of January 20, 2022, awarded a visitor 100 euros in damages precisely for this transmission without a legal basis. It is not an Italian ruling, and German courts later rejected the mass claims that arose from that case, but the principle is clear: even a call to a third party without cookies must be disclosed, and it can be avoided entirely by hosting the fonts on your own server.

Third-party statistics

In June 2022 the Garante, at the end of an investigation coordinated with the other European authorities, declared unlawful the use of Google Analytics by an Italian website because of the transfer of data to the United States without adequate safeguards. In July 2023 the European Commission then adopted a new adequacy decision for transfers to US companies participating in the "Data Privacy Framework", which changed the picture for transfers. What has not changed is the consent rule: if the tool does not meet all the conditions to be treated as technical, consent is required before activating it.

Beyond privacy, every external piece also weighs on speed: scripts, fonts and video players are among the most frequent causes of slow pages. I explain this in the chapter on Core Web Vitals.

05The documents you really need

The banner, when there is one, is only the visible part. Behind it are a few documents that the GDPR requires of anyone who processes personal data, even a small business with a website of a few pages. The starting point is always the same: which data I collect, why, and where they end up.

1

Privacy notice

Who the controller is and how to contact them, which data are collected, for which purposes and on what legal basis, for how long, who they are shared with, and what rights the person has (articles 12 and 13 of the GDPR).

2

Cookie policy

The list of installed tools, divided by family, with their duration, the party that installs them and how to review your choices. It must match what the site actually does.

3

Proof of consent

When consent is needed, the controller must be able to prove it was given (article 7). The banner system records what the person chose and when.

4

Record of processing

An internal document that lists the business's data processing activities (article 30). The exemption for organizations with fewer than 250 employees does not apply if the processing is not occasional, which means almost always.

5

Agreements with suppliers

Anyone who processes data on your behalf, such as your hosting, email or management software provider, must be appointed as a processor with a written agreement (article 28).

The privacy notice: written to be understood

Article 12 of the GDPR requires information to be provided in a concise, transparent, intelligible and easily accessible form, using clear and plain language. A text copied from another site, full of processing your site does not do, does not meet this rule: it says false things, and a notice that misdescribes what happens is a problem in itself. It should be written starting from the real inventory and updated every time the site changes.

Legal bases: not everything is consent

A common mistake is to think that every processing activity requires consent. Article 6 of the GDPR provides six different legal bases, and for a website the most frequent are three:

  • the performance of a contract or of steps requested by the person: answering a quote request, handling a booking, delivering an order;
  • a legal obligation: keeping invoices, meeting tax obligations;
  • consent: sending a promotional newsletter, installing profiling tools.

Asking for consent that is not needed, for example to answer a question sent through the contact form, adds no protection and confuses the person.

The site's forms

Every form that collects data must have, next to the submit button, a short reference to the privacy notice. If the form is also used for marketing purposes, the consent box must be separate and unticked by default: consent is given with an active gesture, not removed. For mailing lists, double opt-in is good practice, the email asking you to click a link to complete the subscription, which is also the best proof of consent. How to build email communication that follows these rules and actually reaches the inbox is explained in the chapter on professional business email.

1 First visit nothing installed 2 The banner by purpose 3 The choice yes, no, partly 4 Recorded what and when 5 Respected at least 6 months the person can change their mind at any time from the link in the footer 1First visit nothing installed 2The banner choices by purpose 3The choice yes, no, partly 4Recorded what was chosen and when 5Respected no banner for 6 months You can change your mind at any time from the link in the footer.
Plate 11.5 — The consent journey. Nothing starts before the choice; the choice is recorded and respected, and the banner returns only if the conditions change or after at least six months. The person can still review it whenever they want.

06Privacy also means protecting the data

The GDPR does not only ask for paperwork in order: it requires the data collected to be protected in a way appropriate to the risk (article 32). For a small business website this means a few very concrete things:

  • the site responds only over HTTPS, so form data travel encrypted;
  • you collect only the data you need: a contact form does not need a date of birth;
  • the data collected do not linger in shared mailboxes or forgotten spreadsheets, but sit in a place with controlled access;
  • access to the admin area is protected by strong passwords and a second factor, as I explain in the chapter on passwords, two-factor authentication and passkeys;
  • there are backups and a plan for when something goes wrong.

If a portal collects bookings, customer logins or payments, the topic widens to encryption, protection against attacks and database design: I cover it in the chapter on integrated portals, bookings and PWAs.

When something goes wrong: the data breach

An attack, stolen credentials, a lost computer holding customer data: the GDPR calls these events a personal data breach. If the breach poses a risk to people, the controller must notify the Garante within 72 hours of becoming aware of it (article 33) and, if the risk is high, also inform the people concerned (article 34). All breaches, including those not notified, must be documented in an internal register. How to prepare in advance, with backups and a recovery plan, is the topic of the chapter on business backup and ransomware.

What is at stake

Article 83 of the GDPR sets the limits of administrative fines: up to 10 million euros or 2% of annual worldwide turnover for some infringements, up to 20 million or 4% for the most serious, such as processing without a legal basis or violating people's rights. These are maximum caps, and the Garante scales the fine according to severity, duration, cooperation and the size of the controller. For a small business, though, the most concrete risk is often something else: a customer complaint, a reprimand with an order to comply, and lost trust.

Quiz

Four questions for a site owner

Choose one answer for each question: the explanation appears right away.

  1. A customer discovers that the data from the contact form ended up online because of a mistake. Within how long must the Garante be notified, if there is a risk to people?

    Article 33 of the GDPR sets 72 hours from when the controller becomes aware of the breach.

  2. On what basis do you answer someone who asks for a quote through the site's form?

    Answering a request from the person falls under pre-contractual steps (article 6): consent is not needed here.

  3. When can visit statistics be treated as technical cookies?

    The Garante's conditions all apply together: masked IP, aggregate statistics, a single site, no data matching by the provider.

  4. The form has a box for receiving the newsletter. How should it be?

    Marketing consent is given with an active gesture and cannot be the condition for getting an answer.

A compliant site is not the one with the biggest banner. It is the one that collects only what it needs, says so in clear words and looks after it well.The data minimization principle, in practice

07Checking your site in seven steps

You can do a first check on your own, with a browser and half an hour. It does not replace a professional review, but it tells you right away whether there are obvious problems.

  1. Open the site in a private window, so there are no choices saved from previous visits.
  2. Before clicking anything, open the developer tools (F12), Application tab, Cookies: if there are already third-party or profiling cookies, the prior block is not working.
  3. In the Network tab, reload the page and look at the domains contacted: every domain that is not yours is an external service to list.
  4. If there is a banner, close it with the X and check again: nothing new should appear.
  5. Try to refuse: it should take one click, like accepting.
  6. Read the privacy notice and the cookie policy: do they really describe what you saw in the Network tab?
  7. Check the forms: is there a reference to the privacy notice, and are the marketing boxes empty by default?

The "fake compliant" site

  • a banner appears but the cookies start first
  • only the "Accept" button, the refusal is hidden
  • privacy notice copied from another site
  • embedded videos and maps with no notice
  • marketing boxes already ticked

The truly compliant site

  • inventory of tools done and kept up to date
  • no optional tool before consent
  • accept and reject with the same weight, the X refuses
  • privacy notice written on what the site does
  • external pieces replaced or loaded on request

Part of this work depends on the site's code: the prior block, on-request loading of videos, self-hosted fonts. Anyone choosing a provider for their website should ask, right from the quote, how these points will be handled and in whose name the data and tools will be registered: I discuss this in the chapter on who really owns your website.

Test yourself

Does your site comply with privacy and cookie rules?

Frequently asked questions

Is a cookie banner mandatory for every website?

No. It is needed only if the site installs or reads tools that are not strictly necessary, such as profiling tools or third-party tools that cannot be treated as technical. A site that uses only technical cookies must still have a privacy notice, but not a banner.

Can I treat the fact that the person keeps browsing as consent?

No. The Garante's 2021 guidelines rule out simple scrolling of the page as consent: a positive action that can be recorded is required, such as clicking a button.

Do visit statistics require consent?

It depends on how they are configured. If the IP is masked, the data are used only for aggregate statistics of a single site and the provider neither matches nor passes them on, they are treated as technical cookies. Otherwise prior consent is required.

Does an embedded YouTube video require consent?

The embedded player contacts the platform's servers when the page opens and can install third-party tools. The safest solution is to load it only after the person clicks, showing an image with a notice first.

How often can I show the banner again to someone who refused?

According to the Garante, only if the processing conditions change significantly, if it is not possible to know that the choice had already been made, or if at least six months have passed since it was last shown.

Does a small business have to keep a record of processing?

Almost always, yes. The article 30 exemption for organizations with fewer than 250 employees does not apply if the processing is not occasional, and managing customers, invoices or bookings is not occasional.

Sources

  1. Garante per la protezione dei dati personali, "Guidelines on cookies and other tracking tools", June 10, 2021 (in Italian): scrolling, the X command, analytics treated as technical, cookie walls, six months.
  2. Garante per la protezione dei dati personali, "Cookie" topic page (in Italian): the rules in brief and the related documents.
  3. Regulation (EU) 2016/679 (GDPR), official text on EUR-Lex (Italian version, other languages available on the page): articles 6, 7, 12, 13, 28, 30, 32, 33, 34 and 83.
  4. Garante per la protezione dei dati personali, press release of June 23, 2022 on Google Analytics (in Italian): the transfer of data to the United States.
  5. European Commission, adequacy decision on the EU-US Data Privacy Framework, July 10, 2023.
  6. IHK, fact sheet on the ruling of the Landgericht München I of January 20, 2022 (3 O 17493/20) on Google Fonts (in German).

Chapter updated October 2026. This is an informational guide written by someone who builds websites and software, not legal advice: for particular cases, and to draft your business's privacy notice and record of processing, it is wise to work with a data protection professional. The rules cited come from the official texts listed above.

Shall we talk?

If what you have read touches your business, tell me where you are starting from: I will answer you myself, with a concrete plan and no obligation.

Message me on WhatsAppDiscover Zenith Develop