GDPR Cookies and Website Analytics: Measuring Within the Rules
Yes, your restaurant website almost certainly needs a cookie banner if it runs Google Analytics — and the banner will cost you roughly a third to a half of your measured traffic. The good news is that you can still measure what matters: either run GA4 properly behind consent, or switch to cookieless analytics and skip the banner for measurement altogether.
Key takeaways
- Two laws apply: the ePrivacy Directive governs cookies on the visitor's device; the GDPR governs processing of personal data such as IP addresses.
- Google Analytics sets cookies, so it needs consent before it loads — no tracking before the visitor answers the banner.
- Expect to lose 30–60% of measured traffic to declines; treat consent-based analytics as a sample, not a census.
- Cookieless analytics (Plausible, Fathom, Matomo in cookieless mode) can measure without a banner, but still needs a privacy notice and a lawful basis.
- Declining must be as easy as accepting — hidden reject buttons are the single most fined cookie mistake in Europe.
- This article is practical guidance, not legal advice; for anything that matters to your business, check with a lawyer.
Every restaurant website in Europe has the same small pop-up now: accept cookies, or decline. Most owners clicked "accept" on someone else's site a thousand times before they ever had to think about their own banner, and when the time came to build one, the usual approach was to copy whatever the web designer supplied and hope for the best. That approach worked, more or less, for years. It works less well now. Regulators across Europe have spent the last few years fining companies specifically for bad cookie practices — not for data breaches, but for banners that made declining hard, for tracking scripts that fired before consent, and for consent that was assumed rather than asked.
The irony is that the rules are not actually trying to stop restaurants from measuring their websites. GDPR does not ban analytics. It sets conditions on how visitor data is collected, and those conditions are entirely manageable for a small restaurant. What the rules do ban, in practice, is the lazy setup: analytics installed by default, a banner that nudges everyone toward "accept all", and no record of what was agreed. This article explains the rules in plain language, shows what a compliant setup looks like for a restaurant website, explains how much data a banner really costs you, and walks through the cookieless alternative that lets many small restaurants measure everything they need without a banner at all.
One important note before we start: this is practical guidance for restaurant owners, not legal advice. The law here is genuinely unsettled in places — different national regulators interpret the same European rules differently, and the rules themselves are changing. If a decision carries real risk for your business, ask a lawyer. What follows will, however, get you to the point where that conversation is short and cheap, because you will already understand the questions.
Two laws, not one
Almost every confused conversation about cookies starts from the same mistake: treating "GDPR" as a single law that covers everything. It does not. Two different laws apply to website measurement, they ask two different questions, and you need to satisfy both. Once you see the split, most of the confusion disappears.
The first law is the ePrivacy Directive (2002/58/EC), often called the cookie law. It asks: are you storing information on the visitor's device, or reading information already stored there? If the answer is yes, you need the visitor's consent — unless the storage is strictly necessary for a service the visitor asked for. This covers cookies, localStorage, and, since the European Data Protection Board's guidelines of October 2024, a range of techniques beyond cookies, including pixel tracking and some forms of IP-based tracking. The banner on your website exists because of this law. In Finland it is implemented in the Act on Electronic Communications Services, enforced by Traficom; in Sweden by the Post and Telecom Authority; in Norway — outside the EU but inside the EEA — by the Norwegian Communications Authority under similar rules.
The second law is the GDPR itself. It asks: are you processing personal data, and on what lawful basis? Personal data means any information that can identify a person, directly or indirectly. For website analytics, that includes IP addresses — the Court of Justice of the EU confirmed in 2016, in the Breyer case, that an IP address is personal data — as well as cookie identifiers, device fingerprints and user IDs. The GDPR requires a lawful basis for that processing (consent is one, legitimate interest is another), requires you to tell visitors what you collect and why, requires you to keep data no longer than necessary, and requires a data processing agreement with any company that processes the data on your behalf.
Why the split matters in practice
The split matters because the two laws can give different answers for the same tool. Cookieless analytics is the clearest example: because it stores nothing on the visitor's device, it usually does not trigger the ePrivacy consent rule, so no banner is needed for the measurement itself. But it still processes the visitor's IP address in memory, even briefly, which is processing of personal data under the GDPR — so you still need a lawful basis and a line in your privacy notice. A banner is about the device. A privacy notice is about the data. Confusing the two is how restaurants end up with a banner but no privacy notice, or a privacy notice but tracking that fires before consent.
GDPR does not ban analytics. It bans the lazy setup: tracking before consent, a hidden reject button, and no record of what was agreed.
What counts as personal data on a restaurant website
Restaurant owners often assume GDPR is for companies that collect names and email addresses, and that a simple website with a menu and a booking link is too small to matter. The regulation has no minimum size exemption. If your site is available to people in the EU and your analytics processes their personal data, the rules can apply — whether you have one table or one hundred.
On a typical restaurant website, personal data shows up in more places than owners expect. Google Analytics 4 collects cookie identifiers (the _ga and _ga_<ID> cookies that recognise the same browser for up to two years by default), IP addresses used for location, device and browser details, and behaviour data such as page views, clicks and scrolls. With Google Signals or User ID switched on, it can add demographic estimates and link activity across devices. Your booking system collects names, phone numbers and email addresses. Your contact form collects whatever guests type into it. Embedded maps, social media feeds, video players and chat widgets each bring their own data collection, often from companies you have never had a direct relationship with.
Strictly necessary vs everything else
The law draws one bright line that matters for every decision in this article: strictly necessary versus non-essential. Strictly necessary cookies can be set without consent. These are cookies that are essential to deliver a service the visitor explicitly requested — a session cookie that keeps a booking form working, a cookie that remembers the language the visitor chose, or a security cookie that protects the site. The key word is necessary: a cookie that makes your site work better, or that helps you analyse how people use it, does not qualify. Analytics cookies are not strictly necessary. Neither are advertising cookies, social media pixels, or heatmap tools.
That distinction is the whole ballgame for a restaurant website. In practice, a restaurant site has very few strictly necessary cookies and a handful of non-essential ones, almost all of them analytics. The practical rule is blunt and reliable: if a cookie persists beyond a single session, shares data with a third party, or enables tracking of behaviour, it almost certainly requires consent. When in doubt, treat it as requiring consent — the cost of asking is a banner, and the cost of not asking can be a complaint to your national regulator.
Inventory first, banner second
Before changing anything, make an inventory. Open your website in a fresh browser, open the developer tools, and list every third-party request: analytics, pixels, heatmaps, embedded widgets, fonts, chat bubbles. For each one, note what it collects, whether it sets cookies or uses local storage, where the data goes, and how long it is kept. Most restaurant websites turn out to have three to six trackers, and at least one of them is usually a surprise — a social media embed added years ago, a booking widget that loads its own analytics, a font service that logs IP addresses. The inventory takes twenty minutes and it is the single most useful step in this whole article, because you cannot fix what you have not listed. Re-audit twice a year: websites accrete scripts, and a plugin update can quietly add a pixel.
What a valid banner looks like
Valid consent under GDPR has four qualities: it must be freely given, specific, informed and unambiguous. Translated into banner design, that means the visitor must make a real choice, must be able to choose analytics separately from other purposes, must understand what they are agreeing to, and must signal agreement with a clear positive action. A banner that says "by using this site you agree" fails every one of those tests. So does a banner with a pre-ticked box, a banner with no reject button, and a banner that loads the tracking scripts before the visitor has answered.
The most fined mistake in European cookie enforcement is also the simplest: making it easy to accept and hard to decline. The French regulator CNIL fined Google €150 million and Facebook €60 million in 2022 specifically because their consent flows made it easy to accept all cookies and hard to refuse them. The pattern is familiar to anyone who has used the internet: a big bright "Accept all" button and a grey "Manage preferences" link that leads through three screens to a reject option. Regulators now treat that asymmetry as a violation in itself. Your banner needs a reject button that is as visible and as easy to reach as the accept button — same size, same level, one click.
The mechanics: nothing fires before consent
The technical rule is as important as the visual one: non-essential cookies and scripts must not load before consent is given. Not at the same moment as the banner appears, not a second later, not while the visitor is still reading. The banner must appear first, and the analytics script must wait. This is the failure that automated compliance checks catch most often, and it is invisible to the owner: the banner can look perfect while the tracking fires underneath it. The way to verify it is to open your site in a fresh browser with the network tab open and watch what loads before you click anything. Only your consent tool itself should be making requests at that point. If Google Analytics fires before the click, the setup is wrong regardless of what the banner says.
Consent must also be as easy to withdraw as it is to give. That means a visible way to change the choice later — usually a small "Cookie settings" link in the footer that reopens the banner. And consent should be recorded: your consent tool should log the choice, the time and the version of the banner text, so that you can show what a visitor agreed to if anyone ever asks. Most reputable consent tools do this automatically. If yours does not, that is a reason to switch.
How much data a banner costs
Here is the part nobody likes to hear: a lawful banner costs you data. How much depends on your audience and on the banner design, but the published figures cluster in a consistent range. Various studies and vendor reports put the share of visitors who decline analytics cookies at roughly 30–60% in European markets, and some analyses put the overall data loss from consent banners at 20–40% of measured traffic. The exact number for your restaurant will depend on how privacy-conscious your guests are — Nordic audiences tend to be more privacy-aware than average — and on whether your reject button is genuinely as easy to find as your accept button. A banner that hides the reject option will show a higher acceptance rate, but that acceptance is not valid consent, and it is exactly the pattern regulators fine.
The honest way to think about this is that consent-based analytics gives you a sample, not a census. If your real traffic is 10,000 visits a month and 40% decline, your analytics will show around 6,000 visits. That does not make the data useless. Trends still work: if measured visits rise 20% month on month, real visits almost certainly rose by a similar share. Comparisons still work: a page that outperforms another page among consenting visitors almost certainly outperforms it among everyone. What stops working is absolute numbers treated as facts — "we had exactly 6,214 visitors" — and any metric that depends on counting every visitor, such as a precise conversion rate. Read the numbers as direction and proportion, not as gospel, and they remain genuinely useful.
Fact: the banner trade-off in one line
A lawful banner costs you roughly a third to a half of your measured traffic. A banner that hides the reject button costs you nothing in data — and risks a fine. There is no version of this trade-off where you keep all the data and stay compliant with cookie-based analytics. The only way to keep the data is to change the analytics.
Google Analytics done properly
Google Analytics 4 can be used in a GDPR-compliant way, but not in its default setup. The default installation is built for Google's convenience, not for European compliance, and it needs several changes before it belongs on a restaurant website that serves guests in Finland, Sweden or Norway. None of the changes are difficult; all of them are easy to forget.
First, consent gating: GA4 must not fire before the visitor consents, full stop. Use a consent management tool that blocks the GA4 tag until consent is given, and test it in a fresh browser the way a visitor would experience it — banner visible, no clicks yet, network tab open. Second, IP anonymisation: GA4 anonymises IP addresses by default in the sense that it does not store the full address, but verify the setting rather than assuming it, and confirm that no User ID or Google Signals feature is linking activity across devices unless you have a specific reason and separate consent for it. Third, advertising and demographic features: switch them off unless you have separately consented them, because they expand the data collection far beyond what a restaurant needs to know which pages guests read. Fourth, data retention: set it to the minimum you actually use — two months is enough for most restaurants, fourteen months is the longest GA4 allows — because keeping data you never look at is a liability, not an asset.
The paperwork: DPAs and privacy notices
Under GDPR Article 28, you need a data processing agreement (DPA) with Google before using GA4. Google provides one as part of its standard terms, and accepting it is usually a matter of ticking the right box in your Google account settings — but it needs to be done deliberately, not assumed. The same applies to every other tool that processes visitor data on your behalf: your booking system, your email tool, your consent management platform. Each one needs a DPA, and each one needs a line in your privacy policy explaining what it collects, why, how long it is kept, and where the data goes.
The privacy policy itself deserves more care than most restaurants give it. It should be linked from the footer of every page, written in plain language, and specific to your site: which tools run, what each one collects, the lawful basis, the retention period, and how a visitor can object or ask for their data to be deleted. A copied template that lists tools you do not use is worse than useless, because it misleads visitors and shows a regulator that nobody actually reviewed the document. If your website was built by an agency, ask them to confirm in writing which tools are installed and what the privacy policy covers. On a PowerfulWebsite site, the consent-gated GA4 setup and the privacy notice are part of the build, not an add-on.
If a cookie persists beyond a session, shares data with a third party, or tracks behaviour, it almost certainly requires consent. When in doubt, ask.
Cookieless analytics: the alternative
There is a second way to measure a restaurant website, and for many small restaurants it is the better one. Cookieless analytics tools — Plausible, Fathom, and Matomo in its cookieless mode are the best-known examples — count visitors without storing anything on their devices. The usual method is to hash the IP address and browser details together with the site address and a salt that changes every day, count the visit, and discard the raw data. The same person is recognised within a day and not after it. Nothing is stored on the device, so the ePrivacy consent rule is usually not triggered, and no banner is needed for the analytics itself.
What you gain is complete data: every visitor counted, because there is nothing to decline. For a restaurant that was losing 40% of its measured traffic to consent refusals, that is a large improvement in accuracy, and it comes without the banner that many owners dislike on design grounds too. What you lose is cross-day memory: the same person tomorrow is a new visitor, so you cannot measure returning visitors over time, and you cannot build the multi-day attribution that cookie-based tools offer. For most restaurants, that is a small price. The questions a restaurant actually needs answered — which pages get read, where visitors come from, which campaigns brought bookings — do not require recognising the same person across days. If you need deeper analysis later, you can add consent-based analytics for the subset of visitors who agree, and use the cookieless tool as the baseline.
| Feature | GA4 behind consent | Cookieless analytics |
|---|---|---|
| Uses cookies | Yes | No |
| Cookie banner needed | Yes | Usually no, for analytics |
| Share of traffic measured | Typically 40–70% | Close to 100% |
| Returning visitors over days | Yes | No |
| Cost (typical) | Free | From around €9–€15/month |
| Data hosting | US (Data Privacy Framework) | EU options available |
| Setup effort | Moderate (consent gating) | Low (one script) |
| Best for | Deep analysis, ad campaigns | Small restaurants that want simple, complete numbers |
What cookieless does not solve
It is important to be precise about what cookieless analytics does and does not do. It removes the need for a banner for the analytics itself. It does not remove the GDPR. The IP address is still processed, in memory, to make the hash, and that is processing of personal data, which needs a lawful basis — usually legitimate interest, documented in a short assessment — and a line in your privacy notice. It also does not cover anything else on your site: if you also run a Meta pixel, a booking widget with its own tracking, or an embedded video player, those still need consent. Switching analytics is not a magic eraser for the rest of the inventory. And a final caution: a cookieless tool that fingerprints the device in the browser, collecting detailed device characteristics to identify visitors without cookies, can still fall under the ePrivacy rule. The exemption depends on the tool genuinely collecting little, not on the label it puts on its marketing page.
Regulators have begun to recognise this category explicitly. France's CNIL allows audience-measurement trackers without consent under strict conditions: used only to measure the site's own audience, producing anonymous statistics, not combined with other data or shared for other purposes, with limits such as a 13-month tracker lifetime, and with visitors told and able to object. The UK's Data (Use and Access) Act 2025 added an exception for storage used only to collect statistics about how a service is used, to improve it, with clear information and a simple opt-out; it took effect in February 2026. The European Commission's Digital Omnibus proposal of November 2025 would allow first-party audience measurement without consent across the EU, but it had not been adopted as of late 2026. The direction of travel is clear, even if the law has not fully arrived: measurement that respects privacy is being treated differently from tracking that follows people around.
The Nordic picture
For a restaurant in Finland, Sweden or Norway, the practical picture is a little different from the generic European advice, and it is worth spelling out. Finland implements the cookie rule through Traficom, and Finnish enforcement has been pragmatic: the regulator's published guidance focuses on clear information, genuine choice, and no tracking before consent, rather than on prescribing a particular banner design. Sweden's regulator has taken a similar approach, with an emphasis on the visitor being able to understand and control what happens. Norway, through the EEA, applies rules that are closely aligned with the EU's, and the Norwegian Data Protection Authority has published practical guidance for small businesses that is unusually readable.
Two Nordic specifics matter. First, language: your banner and privacy notice should be in the language your guests actually read. A Finnish restaurant whose guests are mostly Finnish-speaking should have a Finnish banner, not an English one copied from a template. A restaurant in a tourist area may need two languages. A banner guests cannot understand is not informed consent, whatever the button says. Second, the booking and ordering systems Nordic restaurants commonly use — the various table-booking platforms and the delivery apps — each bring their own tracking, and their consent handling is their responsibility only up to a point: if the widget sits on your website, your visitors experience it as part of your site, and your inventory should list it. Check what your booking provider loads on your pages, and ask them in writing how consent is handled.
Fact: the Finnish angle
In Finland, the cookie rule sits in the Act on Electronic Communications Services and is enforced by Traficom, while the GDPR is enforced by the Data Protection Ombudsman. A restaurant website needs to satisfy both — but for most small restaurants, the practical checklist is the same in Helsinki, Stockholm and Oslo: inventory your trackers, gate the non-essential ones behind real consent, and write a privacy notice that describes what you actually do.
A practical checklist
If you take one thing from this article, take the checklist. Work through it once, and repeat the audit twice a year. It takes an afternoon the first time and under an hour after that.
- Inventory. List every tracker, pixel and third-party script on your site, what it collects, whether it sets cookies, and where the data goes.
- Classify. Mark each one strictly necessary or non-essential. When in doubt, treat it as non-essential.
- Gate. Make sure no non-essential script loads before consent. Test in a fresh browser with the network tab open.
- Fix the banner. Accept and reject equally visible, equally easy, one click each. No pre-ticked boxes. A cookie-settings link in the footer to change the choice later.
- Configure defensively. In GA4: IP anonymisation on, advertising features off unless separately consented, retention at the minimum you use, no user IDs or form data leaking into events.
- Paper it. A DPA with each provider, a privacy policy that lists the tools you actually use, and an entry in your records of processing.
- Consider cookieless. If you only need simple numbers — visits, sources, top pages, bookings — a cookieless tool may give you better data with no banner for analytics.
- Re-audit twice a year. Websites accrete scripts. Ten minutes in developer tools, twice a year, catches the plugin update that quietly added a pixel.
That is the whole job. It is not glamorous, and nobody will ever compliment your restaurant on its consent banner. But it is the difference between measuring your website with confidence and measuring it on a foundation that could be challenged — by a regulator, by a guest, or by your own realisation, two years from now, that half your data was never real. Measurement is only useful if you can trust it, and trust starts with the banner.
If you would rather not think about any of this, that is a legitimate choice too — and it is one of the reasons restaurants hire a website partner instead of managing the details themselves. On a PowerfulWebsite site, the consent-gated analytics setup, the banner and the privacy notice are part of the build: the build itself is free, with plans from €59/mo (Starter) to €239/mo (Restaurant, including the ordering system), plus a one-time €25 domain handling fee. Either way, the decision is yours — but it should be a decision, not an accident of whatever your last web designer installed by default.
For the other half of this topic — what to do with the numbers once you can trust them — see our Google Analytics setup guide for restaurants and our GDPR-safe guide to building an email list from zero, which covers consent for marketing emails, the other place where restaurants most often get the rules wrong.
Frequently asked questions
Does a restaurant website need a cookie banner under GDPR?
Yes, if your website sets non-essential cookies — which includes Google Analytics in its default setup. Analytics cookies are not strictly necessary for the site to work, so under the ePrivacy Directive you need the visitor's consent before they are set. If you switch to cookieless analytics that stores nothing on the visitor's device, a banner may not be needed, but you still need a privacy notice and a lawful basis under GDPR.
What is the difference between GDPR and the cookie law?
They are two different laws that answer two different questions. The ePrivacy Directive — the cookie law — asks whether you store or read information on the visitor's device; if yes, you generally need consent. The GDPR asks whether you process personal data, such as IP addresses, and on what lawful basis. A cookie banner deals with the first question; your privacy notice and lawful basis deal with the second. You need to satisfy both.
How much website data do you lose when visitors decline cookies?
Typically 30–60% of visitors decline analytics cookies once a proper banner is shown, so consent-based analytics undercounts your real traffic by roughly a third to a half. The exact figure depends on your audience and how the banner is designed. This does not make the data useless — trends and comparisons still work — but absolute visitor counts should be read as a sample, not a census.
Is Google Analytics GDPR compliant?
Google Analytics 4 can be used in a GDPR-compliant way, but not in its default setup. You need consent before it loads, IP anonymisation on, advertising and demographic features off unless separately consented, a short data retention period, and a data processing agreement with Google. Several EU regulators have also raised concerns about data transfers to the US, which is why some restaurants choose a European-hosted or cookieless alternative.
What is cookieless analytics and is it legal without a banner?
Cookieless analytics counts visitors without storing anything on their device — typically by hashing the IP address and browser details in memory and discarding them. Because nothing is stored on the device, the ePrivacy consent rule is usually not triggered, so no banner is needed for the analytics itself. You still process personal data (the IP address), so you still need a lawful basis — usually legitimate interest — and a line in your privacy notice. France's CNIL has published conditions for this, and the UK added a statistics exception in 2026.
Can a small restaurant be fined for getting cookies wrong?
Fines under GDPR can reach €20 million or 4% of global turnover, but regulators in practice focus on large and repeat offenders, and the biggest cookie fines — such as the €150 million CNIL fine against Google — targeted companies that made declining deliberately hard. For a small restaurant, the realistic risks are a complaint, a warning, and an order to fix the banner. Getting the basics right — no tracking before consent, an equally easy reject button, and an honest privacy notice — covers almost all of the practical risk.
Want a website that turns visitors into table bookings?
PowerfulWebsite builds your restaurant website free — you only pay from €59/mo. Everything included: domain, hosting, maintenance and updates.
See the packages