Cookieless analytics and the GDPR cookie banner

Guide · Updated 26 November 2026

TL;DR

You need a cookie banner when a script stores or reads information on the device for a purpose that is not strictly necessary. The Plausible alternatives list is the place to compare hosts whose default script writes nothing. Ads, replay, localStorage, and a user id are a separate decision. This page is general information, not legal advice.

Plausible's data policy, updated November 2026, says its script stores nothing. Umami's FAQ says its tracker uses no cookies, and that a notice still depends on your other scripts. Prices below repeat checks already published on this site.

License
$59 once
Refund
7-day no-questions refund
Stack
Next.js 16, shadcn/ui, Recharts, Postgres, Drizzle, Clerk, optional Stripe

On this page

What does cookieless analytics actually mean?

Cookieless means the script writes nothing on the device and does not rebuild a durable id from a fingerprint.

A cookie is a name and value the browser stores and sends back. localStorage, sessionStorage, IndexedDB, and the cache are the same kind of store for this question. A script that skips document.cookie and then saves a visitor id in localStorage has moved the id, not removed it.

Plausible's data policy, updated November 2026, says the script sets no cookies and writes nothing to local storage or the cache. The daily visitor id is hash(daily_salt + website_domain + ip_address + user_agent). Plausible rotates and deletes the salt every 24 hours. It does not store the raw IP address or the raw User-Agent string.

That hash answers "was this browser here today?" for one site. It does not follow the same person to another site, another device, or the next day. Plausible still stores event rows and a session id that groups those rows into a visit. The dashboard shows aggregates.

The script reads a localStorage flag named plausible_ignore when someone has set it to skip their own visits. Plausible says the script never writes that flag and does not send it. Visitors who never set the flag have nothing for that read to find.

The request still carries the page URL, the referrer, and, like any HTTP request, the IP address and the User-Agent. Plausible derives browser, operating system, device type, and city-level location from those headers, then drops the raw values. Scroll depth and engagement time go out with the pageview. None of that is a cookie. It is still data about a visit.

Umami's public tracker, checked for this guide, reads umami.disabled from localStorage. That key is the opt-out the exclude-my-visits doc tells a site owner to set in the console. The same check found no write of a visitor id.

How do ePrivacy and the GDPR split this question?

ePrivacy governs storage and reads on the device. The GDPR governs personal data, and it needs a lawful basis.

Article 5(3) of Directive 2002/58/EC, as amended by Directive 2009/136/EC, covers two acts. One is storing information on the terminal equipment. The other is gaining access to information already stored there. Consent is the default. Two narrow exits exist: storage or access used only to carry a communication, and storage or access that is strictly necessary to provide a service the person asked for.

Member states write that rule into national law, and they do not treat analytics the same way. The cookie banner is the usual way to ask for that consent. A privacy policy explains the processing. It does not replace the consent step when Article 5(3) applies.

The GDPR (Regulation 2016/679) Article 6 lists the lawful bases for processing personal data. Consent is one. Contract, legal obligation, vital interests, a public task, and legitimate interests are the others. Legitimate interests need a balancing test, and the person can object.

A common reading keeps the two rules stacked. Legitimate interests can be the GDPR basis for the statistics. Article 5(3) can still require consent for the storage or the read, unless an exemption applies. Ask counsel before you rely on that split for a live site.

A dynamic IP address can be personal data. In Breyer (C-582/14) the Court of Justice treated a dynamic IP that way for a site operator. The operator had legal means to identify the person with extra data the access provider held. Hashing and discarding the raw IP is minimization. You still choose an Article 6 basis when personal data remains.

France's audience-measurement exemption

CNIL publishes an exemption for some audience measurement under Article 82 of the French Data Protection Act. The page "Cookies : solutions pour les outils de mesure d'audience", updated 4 July 2025, is the one to read. It is a French rule. It is not a single EU switch.

CNIL says the trackers stay inside the exemption when they meet both limits:

  • The purpose stays limited to audience measurement for that publisher: performance, navigation problems, technical or layout changes, server capacity, and which content was opened.
  • The output is anonymous statistics.

CNIL says the exemption does not cover trackers that do either of these:

  • Cross the data with other processing, or send non-anonymous data to third parties.
  • Follow the person across apps or sites. A shared id, used to deduplicate or to measure reach across sites, is out.

The same page recommends, rather than stating a hard ceiling in the directive:

  • Tell people about the trackers, for example in the privacy notice.
  • Keep tracker lifetime to a period that still allows a comparison over time, such as 13 months, and do not extend it on each new visit.
  • Keep the information collected through the trackers for 25 months at most.
  • Review those periods and cut them to what you still need.

A processor may serve several publishers when each publisher's data is collected, processed, and stored on its own, and the trackers are independent. CNIL's measuring-traffic page groups Google Analytics with tools whose vendors reuse the data for their own account. That reuse sits outside the exemption unless the tool can be configured to stop it. Watch transfers outside the EU as a separate step.

CNIL also says audience measurement remains personal-data processing, so the GDPR still applies to it. The UK PECR and German TDDDG are different national texts. This page does not restate the ICO or a German authority. Read the authority that covers your visitors.

Do you need a cookie banner for Plausible or Umami?

Plausible says no banner is required for its own script. Umami says the tracker uses no cookies, and that your other services can still require a notice.

Plausible's data policy says: by using Plausible, you do not need cookie banners for analytics or consent for tracking. That is the vendor's legal position, last updated November 2026. Copying it into your notice is your decision. The policy also says visitor data for the hosted product stays in the EU.

Umami's current FAQ answers "Do I need to display a cookie notice?" with two facts. The web tracker does not use cookies. Whether the website needs a notice depends on the other services and on applicable requirements. The security page, updated 22 October 2026, adds that the standard tracker does not collect names or email addresses and does not use the data for advertising.

An older Umami doc answered the notice question with a flat no. Prefer the current FAQ. It leaves room for the rest of the page.

Both claims stop at that product's script. Add a Meta pixel, a Google Ads tag, session replay, or umami.identify() with an account id, and you are outside the paragraph you just quoted. The Next.js install guide for Plausible and Umami shows next/script, the event calls, and the first-party rewrite. It is the setup page. This page is the storage question.

If you are still choosing a host, start with the Plausible alternatives list of free and hosted options. The Umami vs Plausible comparison is the head-to-head on price, hosting, and privacy. The Umami alternatives page is the longer list. The Fathom Analytics alternatives page covers the hosted short-dashboard case. The Simple Analytics alternatives page is the list for a hosted cookieless tool that does not publish a self-host download.

When does a banner still apply?

A banner still applies when any script stores or reads device data for a purpose the visitor did not request, and no exemption covers that script.

These are the usual reasons a cookieless analytics tag is not the end of the banner:

  • Ad pixels. Meta, Google Ads, LinkedIn, and similar tags store or read identifiers and often match people across sites. Article 5(3) is aimed at that storage.
  • Session replay and heatmaps.Umami's security page says replay and heatmaps are optional and that replay needs an extra script. PostHog records session replay as its own product, with cookieless mode as a setting you turn on. A replay script is not the pageview snippet.
  • Cross-site identifiers. One id shared across sites, including a third-party cookie or a shared localStorage key, is the case CNIL excludes from the French exemption.
  • User ids and emails. A Plausible property or an Umami distinct id that holds an email or an account id is personal data you chose to send. The cookieless pageview sentence no longer describes the hit.
  • localStorage visitor ids. Data Lighthouse writes datalighthouse_visitor_id. That write is device storage even though the key is not a cookie.
  • Embedded third-party scripts. A video player, a chat widget, or a font loader can set its own cookies after your analytics script has been swapped for a cookieless one.
  • Matomo's default cookies and GA4's _ga cookies. Both products document first-party cookies in the default setup. Turning them off is a configuration, not the default.
  • A fingerprint built to last. Combining device traits so you can recognize the same person weeks later is a durable id. A daily salt that is deleted is a different design. Describe the one you run.

Server logs sit on the other side of the storage rule. If you never write to the device and only read the request your server already received, Article 5(3) may not be the trigger. The log can still hold an IP address. That is a GDPR question: lawful basis, minimization, and how long you keep the row.

How do Plausible, Fathom, Umami, Simple Analytics, Matomo, and GA4 differ?

Each block below is one product: what the vendor says about storage, who it fits, the trade-off, and the price already recorded on this site.

Plausible

Verdict: Plausible's data policy, updated November 2026, says the script writes nothing on the device and that a cookie banner is not required for Plausible analytics.

  • Best for: Pageview stats whose script does not keep a visitor id on the device.
  • Storage: No cookie write, no localStorage write, and no cache write. The daily visitor id is hash(daily_salt + website_domain + ip_address + user_agent). Plausible deletes the salt every 24 hours and does not store the raw IP address or the raw User-Agent. The script reads a localStorage flag named plausible_ignore only when someone has set it to skip their own visits. Plausible says it does not send that flag.
  • Trade-off: The policy describes Plausible's script. A second script on the same page can still store data. Community Edition leaves funnels, user journeys, and ecommerce revenue on Cloud.
  • Price: On 23 November 2026 the 10k monthly pageview step showed Starter at $9/month, Growth at $14/month, and Business at $19/month. Community Edition has no license fee. You pay for the server.

Plausible data policy

Fathom Analytics

Verdict: Hosted Fathom's pricing page says no cookie banner is required. This site recorded that line on 23 November 2026.

  • Best for: A hosted dashboard for many sites, with the vendor running the servers.
  • Storage: The pricing-page line does not print a hash formula, so this guide does not invent one. Treat the banner sentence as Fathom's claim about the hosted product. The Lite page does not repeat that sentence.
  • Trade-off: There is no $0 hosted plan. Fathom Lite is a separate MIT download with a smaller report set, and support is not included.
  • Price: Hosted plans start at $15/month for up to 100,000 monthly pageviews and 50 sites, on the 23 November 2026 check.

Fathom pricing

Umami

Verdict: Umami's FAQ says the web tracker does not use cookies, and that a cookie notice depends on your other services and on the rules that apply.

  • Best for: Cookie-free pageviews you self-host, or Cloud Hobby at $0.
  • Storage: The security page, updated 22 October 2026, says the standard tracker does not use cookies and does not track people across websites. The public tracker source checked for this guide reads localStorage key umami.disabled, which is an opt-out a site owner sets, and it does not write a visitor id. Distinct ids, session replay, and heatmaps are optional. Replay uses an extra script and is off by default.
  • Trade-off: Self-hosted rows stay until you delete them. An identify call or a replay script is a different privacy choice than the standard pageview.
  • Price: Cloud prices on this site were read 25 November 2026. Hobby is $0 for 100,000 events, one website, and six months. Pro is $20/month. Business is $200/month. Self-hosting has no license fee.

Umami FAQ

Simple Analytics

Verdict: The pricing page says no cookies, no consent banners, and no personal data.

  • Best for: A hosted EU counter when you do not want to run a server.
  • Storage: This guide repeats the pricing-page claim and does not add a hash formula that page did not print. The same pricing research says website data is stored in the EU, with primary infrastructure in the Netherlands.
  • Trade-off: The pages this site read do not list a self-host edition. The Free plan keeps 30 days, shows a badge, and excludes events and the API.
  • Price: On the pricing data this site already records, Simple starts at $15/month for up to 20,000 pageviews plus events. Free is $0.

Simple Analytics pricing

Matomo

Verdict: Cookies stay on until you disable them. Calling disableCookies does not close the consent question in every country.

  • Best for: A full suite on your server when you will configure the tracker for the exemption you intend to use.
  • Storage: The cookie FAQ shows _paq.push(['disableCookies']) before trackPageView. JavaScript tracking continues. config_id is a hash of the operating system, browser, plugins, IP address, and language. Matomo says the hash lasts at most 24 hours, rotates daily, and differs per website. With IP anonymization on, the hash uses the anonymized IP. Matomo describes that hash as a short visit key.
  • Trade-off: Matomo's consent FAQ says many European ePrivacy rules still cover the JavaScript tracker. For Germany, that FAQ points to log analytics or the HTTP Tracking API as the server-side path. It recommends treating the JavaScript tracker as needing consent until an authority says otherwise.
  • Price: On-Premise Community is free. The Cloud price recorded on 23 November 2026 was USD 26 per month excluding tax.

Matomo cookieless FAQ

Google Analytics 4

Verdict: The default tags set first-party cookies. Consent Mode changes what those tags do after you have a consent state. You still collect that state.

  • Best for: A team that already reports in Google and will run a consent banner.
  • Storage: Google's cookie help lists _ga for 2 years and _ga_<container-id> for 2 years. When analytics_storage is denied, Google's consent-mode reference says the tag does not read or write analytics cookies. In the advanced setup the tag still sends cookieless pings. Those pings can include the user agent, the screen resolution, and the IP address. Basic mode blocks the tags until consent. A user_id you attach is still sent.
  • Trade-off: Google hosts the property. Linking Google Ads adds more cookies. CNIL's measuring-traffic page groups Google Analytics with tools whose vendors reuse data for their own account, which sits outside the French exemption unless that reuse is turned off.
  • Price: Google's Analytics product page says the tools are free of charge. An Analytics 360 price is not quoted here.

GA4 Consent Mode reference

Matomo documents a separate path for the French exemption. Follow Matomo's own CNIL configuration notes if France is the authority you are using. Do not assume disableCookies alone meets that page.

What should you check before you remove the banner?

Remove the banner after every script is accounted for and any remaining personal data has a GDPR basis you can name.

  1. List every script, embed, chat widget, and tag manager on the page.
  2. For each one, note whether it writes a cookie, localStorage, sessionStorage, or a similar store.
  3. Note whether it reads a store it did not need for a service the visitor asked for.
  4. Confirm the analytics script does not send an email, an account id, or a full URL with a token.
  5. If a vendor reuses the data for its own account, or sends it outside the EU, treat that as a separate decision.
  6. If you rely on a national exemption, match that authority's conditions and name the measurement in the privacy notice.
  7. If you keep server logs or a hashed IP, pick a GDPR lawful basis for any personal data that remains.
  8. Write the real configuration in the notice. Leave the vendor slogan out of that sentence.

The GDPR analytics checker is a short self-assessment of cookies, consent, IP handling, retention, and the privacy notice. The score is a prompt to read the gaps. It is not a compliance certificate.

How do you load analytics in Next.js without extra identifiers?

Load the cookieless file with next/script, keep ids out of the URL and the payload, and load ad or replay scripts only after a consent flag you already collected.

strategy="afterInteractive" loads the file after hydration. beforeInteractivebelongs in the root layout and is what the install guide uses for Plausible's inline queue. lazyOnload waits until the browser is idle. The strategy picks a time. It does not change what the file writes.

The working Plausible tag is the per-site file at plausible.io/js/pa-XXXXX.js plus plausible.init(). Umami needs data-website-id on script.js. Both layouts, the route-change notes, and the rewrites are in the privacy-friendly analytics guide. Copy that install. Then apply the storage rules on this page.

A first-party proxy changes the host the browser calls. Plausible's proxy guides map /js/script.js to the pa- file and /api/event to https://plausible.io/api/event, then pass endpoint: "/api/event" to plausible.init. Umami's bypass notes map a path such as /stats.js to the Cloud script. The payload is the same payload. If the script writes nothing, the proxy writes nothing. If you later add a tag that sets a cookie, the rewrite does not exempt that cookie.

Self-hosting the collector moves the database to a server you operate. Umami on Postgres, or Plausible Community Edition, means the event rows sit with you. You still describe the script's storage, the retention, and the purpose. Running the server does not turn a localStorage id into a strictly necessary cookie.

Keep identifiers out of the hit:

  • Do not put an email or an account id in the script URL or the query string.
  • Plausible drops query keys other than ref, source, and the utm_ campaign keys. The path can still contain an email if you put one there.
  • Umami's data-exclude-search="true" drops the query string, which is where tokens usually leak.
  • Do not mint a UUID, store it in localStorage, and send it on every pageview if the goal is a cookieless setup.

The component below is a loading sketch. It assumes you already have a boolean for analytics storage. It does not render a banner, set a default of denied, or implement Consent Mode. The Google tag stays out of the root layout until that flag is true. The Plausible or Umami file can sit in the layout when you have decided its storage matches the rule you are using.

components/analytics-scripts.tsx
"use client"

import Script from "next/script"

type AnalyticsScriptsProps = {
  analyticsStorageGranted: boolean
}

export function AnalyticsScripts({ analyticsStorageGranted }: AnalyticsScriptsProps) {
  return (
    <>
      <Script src="/js/script.js" strategy="afterInteractive" />
      {analyticsStorageGranted ? (
        <Script
          src="https://www.googletagmanager.com/gtag/js?id=G-XXXX"
          strategy="afterInteractive"
        />
      ) : null}
    </>
  )
}
Event payload without an account id
// Pageview props stay free of emails and account ids.
window.plausible?.("Signup", { props: { plan: "pro" } })

// A visitor id in localStorage is device storage.
// window.localStorage.setItem("datalighthouse_visitor_id", crypto.randomUUID())

A middleware cookie used only to count visits is still storage on the device. Put that cookie through the same checklist as a script.

When does a dashboard template change the storage model?

Data Lighthouse writes a visitor id to localStorage, so the template tracker is not a cookieless script.

TrackingComponent reads datalighthouse_visitor_id. When the key is missing it creates a UUID and writes it back. That write survives a reload. A daily salt that is deleted does not. If a banner is required for that storage, this template does not remove the requirement.

The product is a Next.js template you host. The license is $59 once. The pricing page also shows $99 as a compare-at price. Optional Stripe cards show revenue for 7, 14, or 30 days from succeeded charges. Refunds are not subtracted. MRR counts subscriptions with status active, normalized to one month. ARR is that MRR times 12. Revenue per visitor uses distinct visitors in Postgres for the same window. The overview does not compute churn.

Use Plausible, Umami, Fathom, or Simple Analytics when the job is a cookieless pageview script and the vendor's storage claim matches your notice. Use the template when the job is traffic plus Stripe revenue inside an app you deploy, and you accept the localStorage id. It does not import a Plausible or Umami archive.

The live demo renders sample data. It does not call Stripe.Pricing is the license page.

7-day no-questions refund. If the template is not a fit, request it within 7 days through the purchase contact on the contact page.

Cookie banner questions

Short answers on Plausible, Umami, Matomo, GA4 Consent Mode, and the template. General information, not legal advice.

Do I need a cookie banner for Plausible?

Plausible's data policy, updated November 2026, says the script stores nothing on the device and that you do not need a cookie banner for Plausible analytics. That sentence covers Plausible's script. It leaves out a Meta pixel, a replay tool, or a visitor id in localStorage on the same page. This is general information, not legal advice.

Does Umami need cookie consent?

Umami's FAQ says the web tracker does not use cookies, and that a cookie notice depends on the other services you use and on the rules that apply. The security page, updated 22 October 2026, says the standard tracker does not use cookies or track people across websites. Distinct ids, session replay, and heatmaps are optional. Turn those on and read the notice again.

Is Plausible GDPR compliant without consent?

Plausible says the product meets GDPR, CCPA, and PECR and that you do not need consent for its analytics. Compliance belongs to the processing you actually run. If a hit still contains personal data, Article 6 of the GDPR still needs a lawful basis. Plausible's policy says it does not store the raw IP address or the raw User-Agent. Ask counsel before you paste the slogan into a privacy notice.

What does cookieless analytics mean?

Cookieless means the script writes no cookie and no substitute id in localStorage, sessionStorage, or the cache. It also means the script does not fingerprint the browser to rebuild a durable id. Skipping document.cookie while keeping a visitor id in localStorage is a different setup. The HTTP request can still carry the IP address, the User-Agent, the URL, and the referrer.

Does hashing the IP address remove the need for a lawful basis?

Hashing is a minimization step. Plausible's data policy builds a daily id with hash(daily_salt + website_domain + ip_address + user_agent) and deletes the salt every 24 hours. The Court of Justice in Breyer (C-582/14) treated a dynamic IP address as personal data for a website operator in some cases. You still pick an Article 6 basis when personal data remains in the processing.

When do I still need a banner if analytics sets no cookies?

Look at every other script. Ad pixels, session replay, heatmaps, cross-site ids, and a user id stored on the device are separate storage. A video embed or a chat widget can set its own cookies. Matomo's FAQ says that in some countries the JavaScript tracker stays in scope after disableCookies. This is general information, not legal advice.

Does Matomo cookieless mode remove consent?

Cookies stay on until you call disableCookies before trackPageView. JavaScript tracking still runs. Matomo's FAQ says many European ePrivacy rules still require consent for that tracking unless an exemption applies. For Germany, the same FAQ points to server-side log analytics or the HTTP Tracking API. It recommends treating the JavaScript tracker as needing consent until an authority says otherwise.

Does GA4 Consent Mode replace a cookie banner?

Consent Mode tells Google tags what to do with a consent state you already have. With analytics_storage denied, Google's reference says the tag does not read or write analytics cookies. Advanced mode still sends cookieless pings, which can include the user agent, the screen resolution, and the IP address. Basic mode blocks the tags until consent. A user_id you set is still sent. The banner, where the law requires one, is how you collect the state.

Does a Next.js proxy change the consent analysis?

A rewrite that serves /js/script.js from your domain changes the hostname. It does not change whether the script writes storage. next/script strategy afterInteractive only chooses when the file loads. Self-hosting the collector makes you the operator of the database. Device storage is still device storage.

Does the Data Lighthouse template need a cookie banner?

The template tracker writes a visitor id to localStorage under the key datalighthouse_visitor_id. That is device storage, so the template is not a cookieless script. Whether that storage needs a banner depends on your visitors and on your other scripts. The license is $59 once. The sample dashboard is at https://datalighthouse.dev/demo and pricing is at https://datalighthouse.dev/pricing. This is not legal advice.

Sources