Code BLACKGO: cookie banner free for a year. Create an account →

Publications / Website audit

How to document cookie consent and how long to keep the proof

The GDPR requires the controller to be able to demonstrate consent, but does not say how long to keep the proof. What a consent log entry should contain, how to set the retention period and how to answer a question about a specific consent.

Author: Robert.S Published: 6 min read

How to document cookie consent and how long to keep the proof

The controller must be able to demonstrate that the visitor gave consent (Article 7(1) GDPR). The law does not say how long such proof should be kept. The storage limitation principle applies (Article 5(1)(e) GDPR): you keep data for as long as it is needed for the purpose. So you set the period yourself – below is what it depends on and what the proof itself should contain.

In its Guidelines 05/2020 on consent (paragraph 108), the European Data Protection Board states that the controller should be able to show how and when consent was obtained and what information the visitor was given at the time. A mere statement that the website was configured correctly is not enough. For cookie consent this means the following set of data:

What to recordWhyField in the consetgo log
Whendate and time of the decisionDate (UTC)
Whose decisiona link to the browser without a nameVisitor ID (from the consent_id cookie)
What decisionconsent, refusal, choice, withdrawalAction: accept all, reject all, custom choice, withdrawal, renewal, form
For whatscope of consentCategories: necessary, functional, analytics, marketing – yes / no
What content they sawwhether consent was informedContent version (e.g. v7) with a snapshot of the texts, categories and services
Wherecontext of the decisionwebsite URL, language, source (banner, form)

Each entry gets a unique identifier (Consent ID). The module records an entry only when the visitor makes a decision, not on every page view.

Content versions – without them the proof is incomplete

Consent relates to specific banner content and a specific list of services. If after a year you change the texts or add an advertising pixel, you need to know what someone who consented earlier saw.

In consetgo, every save that changes the texts, the categories or the list of active services creates a new content version. The module stores a copy of it: the texts in all languages, the category descriptions and the services with their providers. You can browse the versions in the Versions tab, and every log entry shows the number of its version. Changing only the colours or the position of the banner does not create a new version. With the option “Ask again after content or service list changes” switched on, visitors will see the banner again and consent to the new content.

How much data is too much

The obligation to demonstrate consent must not lead to collecting excessive data (Guidelines 05/2020, paragraph 106). Proof of cookie consent usually does not need a name or a full IP address. Settings in consetgo (Settings tab, Consent log group):

  • IP address – “Salted hash (recommended)”, “Truncated” or “Do not store”. Default: a hash with the installation's salt.
  • Store User-Agent – information about the browser; you can switch it off.
  • Do not log repeats of the same state – the same visitor with the same decision within a short time does not create further entries.

The log is on your server, in the module folder. consetgo.com does not see or process it.

How long to keep the log

In Guidelines 05/2020 (paragraph 107), the EDPB describes two periods:

  1. As long as you rely on consent – you must be able to demonstrate it. With consent valid for 180 days, the proof is needed for at least that long.
  2. After consent expires or is withdrawn – you keep the proof no longer than necessary to comply with a legal obligation or for the establishment, exercise or defence of legal claims (Article 17(3)(b) and (e) GDPR).

The specific period depends on how long consent is valid on your website, within what time someone can lodge a complaint or bring a claim in your country, and whether you have your own document retention rules. Set the period with the person responsible for data protection, write down the reasoning (this is part of accountability under Article 5(2) GDPR) and describe it in your privacy policy.

In consetgo you set this in the Consent log group: Retention (months) – from 1 to 120, default 24 – and compression of older files (by default after 2 months). The module automatically deletes log files older than the retention period once a day. 24 months is the module's default setting, not a deadline set by law. Retention should not be shorter than “Consent validity (days)” in the Consent group.

  1. Open the Consent log tab and set the date range.
  2. Search by Consent ID or Visitor ID. Visitors can find their identifier in the consent_id cookie in their browser.
  3. Click Open next to the entry – you will see the proof: the event, the scope of consent, the banner content in the version that person saw and the services disclosed in that version.
  4. Click Print / save as PDF. You can download a list of many entries with the Export CSV button.

Consents collected in forms, e.g. when signing up for a newsletter, can be added to the same log with the Consent.logFormConsent() function – the entry gets the action “form” and the data you pass to it.

Checklist

  • The log records the date, the decision, the scope of categories and the content version number.
  • Every change to the texts or the list of services creates a new version, and old versions remain available.
  • IP stored as a hash or not at all; no data you do not need.
  • Retention period set, justified in writing and not shorter than the consent validity.
  • You know how to find an entry by its identifier and print the proof.
  • Withdrawal of consent is also recorded in the log – more in the article Withdrawing cookie consent.

You can see the consent log, the printable proof and the Versions tab in the panel demo. The laws we refer to: GDPR and EDPB guidelines. This article is not legal advice.

Questions and answers

How long do you have to keep proof of cookie consent?

The law does not set a single period. You keep the proof as long as you rely on consent, and after it expires or is withdrawn – only as long as it is needed for a legal obligation or to defend against claims (EDPB Guidelines 05/2020). Set the period yourself, write down the reasoning and set it in the tool.

Do I have to record the IP address in the consent log?

There is no such requirement. The proof has to show that consent was given, and it should not collect more data than necessary. In consetgo you can store a salted hash of the IP, a truncated address or not store it at all.

Is it enough to show that the banner was configured correctly?

According to EDPB Guidelines 05/2020, merely referring to a correct website configuration is not enough. You need a record of the specific decision and of the content the visitor saw at the time.

Read also

Why reported conversions dropped after implementing a cookie banner

Why reported conversions dropped after implementing a cookie banner

Website audit

After a banner is implemented, GA4 and Google Ads show fewer visits and conversions. Usually this is the result of refusals, not a drop in sales. How to tell a change in measurement from a configuration error and what to check.

· 4 min read