Do website surveys need cookie consent? It depends on what the tool stores
“I only need anonymous answers, so I don’t need cookie consent, right?” Often close, but the reason matters. What the ePrivacy rules actually cover, what common survey tools keep in the browser, and when it is worth waiting for consent.
The Tack team··8 min read
Short answer
Not because of the question itself. The consent rule in Article 5(3) of the ePrivacy Directive, and in Czechia § 89(3) of the Electronic Communications Act (opt-in since 2022), is about storing or reading information on the visitor’s device, not about showing a question. It covers localStorage and sessionStorage just like cookies, and it applies whether or not the data is personal. The exception is storage that is strictly necessary for a service the visitor explicitly asked for.
So the answer depends on what your survey tool stores. Many tools keep a visitor ID for a year or more, which is hard to call strictly necessary. Tack sets no cookies and, without consent, keeps no ID across visits, only a note that this browser already saw a Pin. When you use the Visit number trigger or identify users, or your data protection officer says so, turn on “Show only after consent” and call window.tack.consent() from your cookie banner.
On this page
What the consent rule actually covers
The “cookie law” is Article 5(3) of the ePrivacy Directive. It allows the storing of information, or access to information already stored, in a user’s device only with their consent, after clear information about the purpose (Directive 2002/58/EC). Each member state writes it into its own law. In Czechia it is § 89(3) of Act No. 127/2005 Coll. on electronic communications (zákon o elektronických komunikacích), which has required prior consent (opt-in) since 1 January 2022 (ÚOOÚ).
Four things follow from the wording and from the regulators’ guidance:
- It is about the device, not the survey. Asking a question on a page is not regulated by this rule. What the script stores in the browser, or reads and sends from it, is.
- Not just cookies. The European Data Protection Board says the rule covers “similar technologies” too and names local storage next to cookies; storage has no minimum duration, so sessionStorage counts as well (EDPB Guidelines 2/2023, version 2.0 of October 2024). The Czech regulator says the same about local storage (ÚOOÚ).
- Anonymous does not take you out of scope. The rule applies to any information, whether or not it is personal data (EDPB 2/2023, citing the Court of Justice).
- In scope does not mean consent is needed. There are two exemptions: storage only for transmitting a communication, and storage strictly necessary for a service the user explicitly requested. The EDPB reads the scope broadly, including information a script sends from the browser, and reminds that each case still has to be checked against these exemptions.
Which exemption fits is the hard part. The EU’s data protection advisers set out how they read it in 2012: a session ID that keeps track of a form someone is filling in is exempt, while analytics cookies are not, because the site works without them (Article 29 Working Party, Opinion 04/2012). The French regulator lists, among trackers exempt from consent, those that store the visitor’s choice about cookies (CNIL).
What on-site survey tools keep in the browser
Most survey tools need to remember two things: who the visitor is, so answers from one person stay together, and which surveys they already saw, so nobody is asked twice. How they do it differs, and that is what decides the consent question. As of November 2026, from each vendor’s own documentation:
| Tool | What it keeps in the browser | How long |
|---|---|---|
| Hotjar | Cookie _hjSessionUser_{site_id} with a user ID, so later visits count as the same user; _hjSession_{site_id} for the session; _hjDonePolls and _hjMinimizedPolls with survey IDs; plus local and session storage items | User ID and survey cookies 365 days, session 30 minutes |
| Survicate | Survey data in local storage, which persists between sessions; an option moves it to session storage | Between sessions; with the option, only the session |
| Refiner | A random visitor ID (refiner_cookie_id) and a first-seen timestamp in local storage; the same as cookies if storage is blocked | No stated expiry; 365 days as cookies |
| Tack | No cookies. For the visit: an ID and page count in session storage. Across visits: only when each Pin was last seen, closed or answered | Visit data until the tab closes; the Pin note until cleared |
To be fair to the others: Hotjar tells site owners to ask their own legal counsel how to classify its cookies and points to consent tools that block its script until the visitor agrees, and its cookies are set on the top-level domain, shared across subdomains (Hotjar). Survicate offers a setting, disableSensitiveDataPersistence, that keeps attributes, answers and events only in session storage, on plans that include its JavaScript SDK; with it, an event-triggered survey meant to be answered once per user can show again in a new tab (Survicate). Refiner says it stores no personal information such as name or email locally, and lets you choose session storage (Refiner).
A random visitor ID that lasts a year is a typical analytics identifier. It is hard to argue that the visitor explicitly asked for it, so with such a tool most sites put the survey script behind their cookie banner.
How Tack works without consent, and why we think that holds up
Tack was designed so that the default, without consent, stays as small as we could make it. A Pin still shows; it just knows less about the visitor:
- No cookies, no fingerprinting. Text typed outside the answer fields is never recorded.
- An ID only for the visit. The visitor ID lives in sessionStorage (
tack:svid) and is gone when the tab closes. Every visit counts as the first, and the sampling share is drawn again on each visit. - One note per Pin across visits. The only thing kept in localStorage is when the visitor last saw, closed or answered each Pin (
tack:pin:<id>), so it does not ask again during the cooldown. It holds a timestamp, no ID, and the script only reads it inside the browser; it is never sent to Tack.
Why we think the Pin note is defensible without consent: it has the same job as the record of a cookie-banner choice, which every banner keeps without asking first and which the CNIL lists as exempt. Both exist so a visitor is not asked the same thing again after they answered or said no. The note identifies no one, and the EDPB says that information used only inside the device is not “accessed” as long as it does not leave it. The per-visit ID that groups answers from one visit resembles the session IDs for form input that the Article 29 Working Party treated as exempt.
This is reasoning, not a ruling. No regulator has published a decision on survey cooldowns. The Working Party was cautious about remembering preferences for longer than a session without telling people, and the CNIL requires consent for ad frequency capping (CNIL FAQ), which is a different purpose but a similar mechanism. The site owner decides how to read it, and Tack lets you choose the stricter path. What Tack stores, and for whom, is in its privacy policy.
When to ask for consent anyway, and how
Wait for consent when any of these apply:
- You use the Visit number trigger. Counting visits needs an ID kept across visits, which Tack stores only after consent. Without it every visit is the first, so a Pin set to show from the third visit never shows. The NPS for returning users template counts on it for anonymous visitors; without consent it asks only signed-in users.
- You identify signed-in users. With
window.tack.identify(id)answers are tied to an account. Your app probably already covers this in its terms and privacy policy, but check it. - Your data protection officer or lawyer reads the rules strictly. Their call beats any blog post, this one included.
Then two steps:
- In the Pin settings, turn on Show only after consent. The Pin then waits until your site says the visitor agreed.
- Call
window.tack.consent()from your consent manager’s callback when the visitor accepts. Tack then keeps an anonymous ID and a visit count (tack:vid,tack:visits) and remembers the consent astack:consent, and the Visit number trigger works.
Every consent manager has some “accepted” callback. The example uses Cookiebot’s CookiebotOnAccept event, which fires when the visitor accepts and again on later visits if they accepted before (Cookiebot). Put Tack in whichever category you list it under; here it is statistics.
<script>
// Tells Tack the visitor agreed. Works before and after the Tack script has loaded.
function tackConsent() {
window.tack = window.tack || { q: [] };
if (window.tack.consent) window.tack.consent();
else window.tack.q.push(['consent', []]);
}
// Call it from your consent manager's "accepted" callback. Cookiebot, for example,
// fires CookiebotOnAccept when the visitor accepts, and again on later visits.
window.addEventListener('CookiebotOnAccept', function () {
if (Cookiebot.consent.statistics) tackConsent();
});
</script>If the visitor later declines, remove what consent allowed. Cookiebot fires CookiebotOnDecline on a decline and on later visits after one:
window.addEventListener('CookiebotOnDecline', function () {
['tack:consent', 'tack:vid', 'tack:visits'].forEach(function (key) {
localStorage.removeItem(key);
});
});Subdomains. localStorage belongs to each (sub)domain separately, so consent given on example.com does not reach the storage of app.example.com. Load your consent manager on the subdomain too, or read the consent cookie it set on the parent domain, and call tack.consent() there as well. In Tack a subdomain is also its own site under Settings → Sites and install.
If you want nothing from Tack to run before consent, let your consent manager load the snippet only after the visitor accepts. Even with “Show only after consent”, the script loads its settings and reports which page paths it runs on, linked to no visitor.
GDPR is a separate question
ePrivacy decides whether you may store things in the browser. GDPR decides what you may do with personal data, and survey answers are data you collect (Regulation (EU) 2016/679). Skipping the banner does not skip GDPR.
- You are the controller. You decide what to ask and why. Tack is your processor under its Terms of service and processes answers only on your instructions.
- Tell visitors. Mention on-site surveys in your privacy policy: what you ask, why, who processes it, how long you keep it. Art. 13 GDPR lists what to say.
- Watch open-text answers. A multiple-choice answer from an anonymous visit is rarely personal data. An open text field can contain a name, an email address or a health detail. Say in the question that you do not need contact details, and delete answers that contain them if you do not need them.
- Ask only what you need. Do not collect sensitive data through a survey.
Tack hosts data in the EU and stores IP addresses only as a hash, only to prevent abuse; details are in the privacy policy. Tests are different from Pins: there people agree in the test intro, and nothing is recorded before.
A checklist for site owners
| Check | What to do |
|---|---|
| What the survey tool stores | Open the browser’s developer tools, Application tab, and look at cookies, local storage and session storage after a survey shows |
| A cross-visit visitor ID | If the tool keeps one, put it behind consent, or switch it off if the tool allows |
| Triggers that need history | Visit number or “returning visitor” conditions need consent in Tack; use a page, time or event condition instead if you do not ask for it |
| Your consent banner | Call window.tack.consent() from its accept callback and turn on “Show only after consent” where you want to wait |
| Subdomains | Repeat the consent call on every subdomain that runs the snippet |
| Privacy policy | Mention surveys, the purpose, Tack as processor and how long you keep answers |
| Open-text answers | Ask people not to leave contact details and delete personal data you do not need |
| Withdrawal | When a visitor declines later, remove tack:consent, tack:vid and tack:visits |
FAQ
Do I need cookie consent for an anonymous survey on my website?
The consent rule (Art. 5(3) of the ePrivacy Directive, in Czechia § 89(3) of the Electronic Communications Act) is about storing or reading information on the visitor’s device, not about asking a question. So it depends on what the survey tool stores. A tool that keeps a visitor ID for a year usually belongs behind your cookie banner. Tack sets no cookies and, without consent, keeps only a note per Pin that the browser already saw it. Whether that is enough for you is your decision, or your data protection officer’s.
Does localStorage need consent like cookies?
Yes, the same rule applies. The EDPB Guidelines 2/2023 say Article 5(3) covers similar technologies too, name local storage next to cookies and set no minimum duration, so sessionStorage counts as well. The same exemptions apply too: storage strictly necessary for a service the user explicitly requested needs no consent.
Does the Visit number trigger work without consent?
No. Without consent Tack keeps no visitor ID across visits, so every visit counts as the first. Call window.tack.consent() from your cookie banner when the visitor agrees; Tack then keeps an anonymous ID and a visit count and the trigger works.
Visitors accept cookies on example.com. Does that reach app.example.com?
Not on its own. localStorage belongs to each subdomain separately, so call window.tack.consent() on the subdomain as well, from your consent manager running there or after reading the consent cookie it set on the parent domain.
Are survey answers personal data under GDPR?
Often not for a multiple-choice answer from an anonymous visit, but open-text answers can contain names, email addresses or other personal details, and answers tied to a signed-in user are personal data. You are the controller: mention surveys in your privacy policy and keep only what you need.
Sources
- Directive 2002/58/EC (ePrivacy), consolidated text, Article 5(3)
- EDPB: Guidelines 2/2023 on the technical scope of Art. 5(3) of the ePrivacy Directive
- Article 29 Working Party: Opinion 04/2012 on Cookie Consent Exemption
- CNIL: Cookies et traceurs, comment mettre mon site web en conformité
- CNIL: Questions and answers on cookies and other trackers
- Act No. 127/2005 Coll. on electronic communications, § 89(3)
- ÚOOÚ: Cookies (questions and answers)
- ÚOOÚ: Practice in the area of cookies (2024 seminar)
- Regulation (EU) 2016/679 (GDPR)
- Hotjar: Cookies set by the Hotjar Tracking Code
- Survicate: Disable sensitive user data persistence
- Refiner: Local storage and cookies
- Cookiebot: Developer documentation (events and consent object)
- Tack: Privacy policy