Consent log

Also known as: consent record

On this page 7

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.

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.

FieldExample valueWhy it matters
Consent identifierRandom UUID stored in a cookieLinks the record to the browser without naming the person
TimestampUTC date and time to the secondShows consent preceded the first tracking call
Purposes and vendorsAnalytics yes, advertising noProves the scope of what was accepted
Banner versionText and design release 4.2Shows what information the user actually saw
Action takenAccept all, reject all, custom saveDistinguishes active choice from inaction
Policy versionCookie policy dated 1 MarchTies consent to the disclosed purposes
Technical contextTruncated IP, user agent, page URLSupports authenticity without full identification
Consent signalTC string or GPC flagRecords what was passed on to vendors
Typical fields of a consent record

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.

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.

  1. The CMP displays the banner and blocks non-essential scripts until a choice exists.
  2. The visitor acts, and the CMP stores the choice locally in a first-party cookie or local storage.
  3. The CMP sends a server-side log entry with the consent identifier, timestamp, purposes and banner version.
  4. 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.

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.

RecordMain contentPrimary purpose
Consent logIndividual consent events with scope and timeProving valid consent per person
Cookie policyDescription of cookies, purposes and retentionInforming users before they choose
Records of processing activitiesProcessing operations at organizational levelArticle 30 GDPR documentation
TC stringEncoded consent signal for vendorsTransmitting choices in the ad chain
Application audit logSystem events and administrator actionsSecurity and change traceability
Consent log and neighboring records

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.

SituationRecommended choiceReason
High-traffic public websitePseudonymous ID with truncated IPProof without building a profile
Logged-in account areaLink consent to the account IDChoice must follow the user across devices
Banner text updatedArchive the old version and request renewed consentEarlier consent covered different information
Global Privacy Control receivedLog the signal as an opt-out eventShows the signal was honored
Consent expires after 12 monthsLog expiry and the new promptShows renewal followed policy
Common design decisions for consent logging

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.

SymptomCauseFix
Consent logged before any clickScroll or page view treated as consentLog only affirmative actions
No record after cookie deletionChoice kept only in the browserAdd server-side logging
Cannot show banner wordingVersions not archivedStore each banner release with an ID
Rejections missingOnly acceptances loggedLog every outcome, including reject all
Log reveals full IP and historyExcessive context capturedTruncate and pseudonymize fields
Frequent consent log problems

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.