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.

TackTackThe 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
  1. What the rule covers
  2. What survey tools store
  3. Tack without consent
  4. When to ask anyway
  5. GDPR is a separate question
  6. Checklist
  7. FAQ
  8. Sources
01

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).

02

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:

ToolWhat it keeps in the browserHow long
HotjarCookie _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 itemsUser ID and survey cookies 365 days, session 30 minutes
SurvicateSurvey data in local storage, which persists between sessions; an option moves it to session storageBetween sessions; with the option, only the session
RefinerA random visitor ID (refiner_cookie_id) and a first-seen timestamp in local storage; the same as cookies if storage is blockedNo stated expiry; 365 days as cookies
TackNo cookies. For the visit: an ID and page count in session storage. Across visits: only when each Pin was last seen, closed or answeredVisit data until the tab closes; the Pin note until cleared
What each tool’s script stores on the visitor’s device by default, as documented by the vendor, November 2026.

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.

04

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:

  1. In the Pin settings, turn on Show only after consent. The Pin then waits until your site says the visitor agreed.
  2. 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 as tack: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.

05

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.

06

A checklist for site owners

CheckWhat to do
What the survey tool storesOpen the browser’s developer tools, Application tab, and look at cookies, local storage and session storage after a survey shows
A cross-visit visitor IDIf the tool keeps one, put it behind consent, or switch it off if the tool allows
Triggers that need historyVisit 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 bannerCall window.tack.consent() from its accept callback and turn on “Show only after consent” where you want to wait
SubdomainsRepeat the consent call on every subdomain that runs the snippet
Privacy policyMention surveys, the purpose, Tack as processor and how long you keep answers
Open-text answersAsk people not to leave contact details and delete personal data you do not need
WithdrawalWhen a visitor declines later, remove tack:consent, tack:vid and tack:visits
Not legal advice. A starting point to go through with whoever answers for privacy at your company.
07

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

Templates for this article

All templates
Pin

Why are you not continuing?

On pricing and checkout, when people are about to leave: what holds them back.

What it answers: What to change on pricing or checkout so more people continue.

2 questions
Pin

NPS for returning users

Returning visitors (with consent) or signed-in users, after 30 seconds, a fifth of them, once in 90 days.

What it answers: How loyalty develops over time and why.

2 questionsNPS

More to read

Before you make it for real, try it on people.

Create an account in a minute. All it takes is your e-mail, no credit card. You get 1 credit to try it right away.

Create a free account

Already have an account? Sign in