A consent log, also called a consent record, is a durable, timestamped record of each consent decision a person makes about cookies, tracking or other data processing, stored so that the organization can demonstrate that valid consent existed at the moment processing began. In privacy law and in the field of cookies & consent, it is the evidence layer behind every consent banner: the banner collects the choice, and the log proves it.
The obligation comes from the accountability principle. Under the GDPR, a controller that relies on consent must be able to show that the data subject consented, and regulators applying the ePrivacy Directive expect the same proof for non-essential cookies. Without a log, a consent banner is only a user interface with no evidentiary value.
What a consent log records
A consent log records who consented, when, to what, and how, in enough detail to reconstruct the decision later. Each entry is usually written by the consent management platform (CMP) at the moment a visitor clicks accept, reject or saves granular preferences, and again whenever the choice is changed or withdrawn.
The table below lists the fields that a defensible consent record typically contains and the question each field answers during an audit.
| Field | Example value | Why it matters |
|---|---|---|
| Consent identifier | Random UUID stored in a cookie | Links the record to the browser without naming the person |
| Timestamp | UTC date and time to the second | Shows consent preceded the first tracking call |
| Purposes and vendors | Analytics yes, advertising no | Proves the scope of what was accepted |
| Banner version | Text and design release 4.2 | Shows what information the user actually saw |
| Action taken | Accept all, reject all, custom save | Distinguishes active choice from inaction |
| Policy version | Cookie policy dated 1 March | Ties consent to the disclosed purposes |
| Technical context | Truncated IP, user agent, page URL | Supports authenticity without full identification |
| Consent signal | TC string or GPC flag | Records what was passed on to vendors |
The banner version field is often neglected, yet it is decisive. Consent is only informed if the person saw accurate information, so the log must point to an archived copy of the exact wording, button layout and vendor list that was displayed when the choice was made.
How consent logging works in practice
Consent logging follows a write-once event model: every interaction generates a new record rather than overwriting the old one, so the history of a single visitor forms an append-only trail. A typical flow has four steps.
- The CMP displays the banner and blocks non-essential scripts until a choice exists.
- The visitor acts, and the CMP stores the choice locally in a first-party cookie or local storage.
- The CMP sends a server-side log entry with the consent identifier, timestamp, purposes and banner version.
- Tags and vendors read the stored choice, for example an IAB TCF string, and fire only where consent allows.
The local copy and the server copy serve different purposes. The browser copy enforces the choice on later page views, while the server-side record is the evidence that survives when the user clears cookies. Relying on the browser copy alone is a common gap, because a deleted cookie also deletes the only proof.
Consent log compared with related records
A consent log is narrower than general audit logging and different from the policy documents that describe consent. The comparison below separates it from records that are often confused with it.
| Record | Main content | Primary purpose |
|---|---|---|
| Consent log | Individual consent events with scope and time | Proving valid consent per person |
| Cookie policy | Description of cookies, purposes and retention | Informing users before they choose |
| Records of processing activities | Processing operations at organizational level | Article 30 GDPR documentation |
| TC string | Encoded consent signal for vendors | Transmitting choices in the ad chain |
| Application audit log | System events and administrator actions | Security and change traceability |
The key distinction is granularity. Records of processing describe what an organization does in general, whereas a consent log documents each person’s individual choice. A TC string may be stored inside the log, but the string alone does not show which banner text produced it.
Design requirements for a defensible log
A defensible consent log must be complete, tamper-evident, minimal and retained for a justified period. These properties determine whether a regulator or court will accept the log as credible evidence rather than as a self-serving claim.
- Integrity: append-only storage, hashing or write-once buckets prevent silent edits after the fact.
- Data minimization: pseudonymous identifiers and truncated IP addresses avoid turning the log into a tracking database.
- Withdrawal capture: a withdrawal must be logged as clearly as the original consent, because withdrawal must be as easy as giving consent.
- Synchronization: the timestamp source should be consistent so that logged consent can be compared with tag firing times.
Retention needs a stated rationale. Many organizations keep records for the lifetime of the consent plus a limitation period, often expressed as several years, but no single figure applies everywhere. The decision table below summarizes common choices.
| Situation | Recommended choice | Reason |
|---|---|---|
| High-traffic public website | Pseudonymous ID with truncated IP | Proof without building a profile |
| Logged-in account area | Link consent to the account ID | Choice must follow the user across devices |
| Banner text updated | Archive the old version and request renewed consent | Earlier consent covered different information |
| Global Privacy Control received | Log the signal as an opt-out event | Shows the signal was honored |
| Consent expires after 12 months | Log expiry and the new prompt | Shows renewal followed policy |
Common weaknesses and audit findings
Most consent log failures are not missing logs but logs that prove the wrong thing. Supervisory authorities have repeatedly found records showing that a banner appeared, without evidence that the user acted or that tracking waited for that action.
| Symptom | Cause | Fix |
|---|---|---|
| Consent logged before any click | Scroll or page view treated as consent | Log only affirmative actions |
| No record after cookie deletion | Choice kept only in the browser | Add server-side logging |
| Cannot show banner wording | Versions not archived | Store each banner release with an ID |
| Rejections missing | Only acceptances logged | Log every outcome, including reject all |
| Log reveals full IP and history | Excessive context captured | Truncate and pseudonymize fields |
A further risk is logging rejections inconsistently. If only acceptances are stored, consent rate figures become unreliable, and the organization cannot show that a reject all button worked. Complete logs also support a quality review of consent fatigue and dark pattern complaints.
The simple explanation
A consent log is a receipt for a privacy choice. When a website asks whether it may use cookies and you click a button, the site writes down what you chose, when you chose it and what the question looked like at that moment.
Later, if anyone asks whether the site had permission to track you, the site can show that receipt. No receipt means no proof, and without proof the site is treated as if it never asked. The log also records when you change your mind, so your newer choice always wins.
How it is used in practice
An online retailer receives a complaint from a customer who says advertising cookies were set without permission. The data protection officer searches the consent log for the consent identifier stored in the customer’s browser and finds three entries: an accept all on 4 February, a custom save on 10 May that disabled advertising, and no later change.
The officer then compares the log with tag firing records and discovers that one advertising script still loaded after 10 May because it had been added outside the CMP. The log therefore did two jobs: it proved the original consent was valid, and it exposed the misconfigured tag. The retailer removed the script, informed the customer and documented the correction, closing the complaint without a regulatory escalation.