### [How to Find and Keep Proof of Cookie Consent in WordPress](https://wpconsent.com/how-to-prove-record-a-visitor-gave-cookie-consent-wordpress/)

**Published:** December 1, 2026
**Author:** Alvin Collin

**Content:**

Short Answer

To prove a visitor gave cookie consent, you need a record saved when they clicked. It should show what they chose, when, and the banner they saw. In WordPress, WPConsent’s Consent Logs store all three on paid plans. Logging must have been on when the visitor clicked, and the record must not have been deleted since.

Key Takeaways

- Evidence of consent needs to be recorded when the visitor makes their choice. You can’t recreate a missing record afterwards.
- Each WPConsent record shows the choice and the time. Where one was saved, it also holds a snapshot of the banner the visitor saw.
- Visitors have no consent ID to quote, so you find them by username or by IP address and date.
- A consent record shows a choice, not whether your tracking scripts waited for it.

You may need to show what a visitor agreed to after a privacy complaint or legal demand. Or a visitor may ask what cookie consent information you’ve stored about them.

You know your cookie banner appeared, but can you show what that particular visitor chose, and when? That depends on whether your site saved a consent record at the time.

In this guide, we’ll show you how to find that record with WPConsent, what it contains, and what it can’t prove. We’ll also show you how to keep it from being deleted before you need it.

---

Use the table of contents below to navigate this article.

- [What Counts as Proof of Cookie Consent?](#aioseo-what-counts-as-proof-of-cookie-consent)
- [How to Prove a Visitor Gave Cookie Consent in WordPress](#aioseo-how-to-prove-a-visitor-gave-cookie-consent-in-wordpress)
    - [If You've Received a Letter, Do This First](#aioseo-if-youve-received-a-letter-do-this-first)
    - [Step 1: Check Your Consent Log Settings](#aioseo-step-1-check-your-consent-log-settings)
    - [Step 2: Find the Visitor's Record](#aioseo-step-2-find-the-visitors-record)
    - [Step 3: Read What the Record Shows](#aioseo-step-3-read-what-the-record-shows)
    - [Step 4: Export the Records for Your Lawyer](#aioseo-step-4-export-the-records-for-your-lawyer)
- [What Can't a Consent Record Prove?](#aioseo-what-cant-a-consent-record-prove)
- [Keep Your Consent Proof Long Enough to Use It](#aioseo-keep-your-consent-proof-long-enough-to-use-it)
- [FAQs: Proof of Cookie Consent](#aioseo-faqs-proof-of-cookie-consent)
- [Final Thoughts on Proving Cookie Consent](#aioseo-final-thoughts-on-proving-cookie-consent)

---

## What Counts as Proof of Cookie Consent?

In the EU and the UK, [ePrivacy rules (PECR in the UK)](https://wpconsent.com/cookie-consent-wordpress-requirements-by-country/) generally require [consent before a site sets non-essential cookies](https://wpconsent.com/what-is-cookie-consent-wordpress-guide-beginner/). Since February 2026, the UK has allowed [some low-risk uses](https://ico.org.uk/for-organisations/direct-marketing-and-privacy-and-electronic-communications/guidance-on-the-use-of-storage-and-access-technologies/what-are-the-exceptions/) without consent, like certain analytics, but only under strict conditions.

Where consent is needed, [Article 7(1) of the GDPR](https://gdpr-info.eu/art-7-gdpr/) puts the burden on you. You “shall be able to demonstrate” that the person consented.

The law doesn’t say how. But a useful record answers the questions below.

| Question | What the record should show |
|---|---|
| What did the visitor choose? | Each cookie category, accepted or declined |
| When did they choose it? | The date and time |
| Who made the choice? | A username, or a guest’s shortened IP address |
| How were they asked? | The banner they saw: wording, buttons, options |
| Did they change their mind? | Any later change or withdrawal |

[Under the GDPR](https://wpconsent.com/gdpr-compliance/), an earlier acceptance doesn’t cover anything after it’s withdrawn.

A record like this is evidence of a visitor’s choice. It doesn’t prove the consent was valid on its own.

Your banner also has to give a clear, informed choice, and your scripts have to respect it.

US laws work differently, and they vary by state.

[Under the CCPA](https://wpconsent.com/ccpa-compliance/), for example, covered businesses must let people opt out of the sale or sharing of their data.

Those [opt-outs](https://wpconsent.com/how-to-implement-global-privacy-control-support-in-wordpress/) are separate from cookie consent records.

With WPConsent’s Do Not Sell addon ([Plus plan and up](https://wpconsent.com/pricing/)), they’re kept in their own log under **WPConsent » Do Not Sell**.

Now let’s find a record on your own site.

---

## How to Prove a Visitor Gave Cookie Consent in WordPress

WPConsent is self-hosted, so it keeps these records on your own WordPress site, in a feature called [Consent Logs](https://wpconsent.com/user-consent-logs/).

Consent Logs come with every [paid WPConsent plan](https://wpconsent.com/pricing/). [The free version](https://wpconsent.com/wpconsent-free-vs-pro/) shows your banner and blocks scripts, but it doesn’t save a record for each visitor.

New to WPConsent? Once you’re on a paid plan, [install it](https://wpconsent.com/docs/how-to-install-the-wpconsent-plugin/), [turn on your banner](https://wpconsent.com/how-to-add-a-cookie-consent-banner-on-your-wordpress-website/), then switch on Consent Logs as shown in Step 1. Your records start from that day, so they’ll be ready for the next request.

Our [detailed WPConsent review](https://wpconsent.com/wpconsent-review/) covers everything else the plugin offers.

### If You’ve Received a Letter, Do This First

Protect your records before you look through them. Do these five things in this order.

1. **Stop records from being deleted.** Go to **WPConsent » Settings** and scroll down to **Consent Logs**. If **Automatic Cleanup** is on, switch it off and click **Save Changes**. Write down the date and time you did. It’s the one setting to touch, because it protects your records rather than changing them.
2. **Export every record you have.** Go to **WPConsent » Consent Logs** and open the **Export** tab. Set **From** to the date of your oldest record, on the last page of the list. Set **To** to today, then click **Export**. Large logs export in batches of 1,000, so leave the tab open until the download starts. Keep this file unchanged as your original copy.
3. **Keep the letter.**
4. **Don’t change anything else on your site.** That includes your banner, your other settings, and your tracking tools. Changes now alter the setup the letter is about.
5. **Contact a lawyer promptly.** Ask how they want the records preserved and provided. Then stop here until they ask you to look further.

We explain what these letters usually claim in our guide to [CIPA demand letters](https://wpconsent.com/cipa-demand-letters-in-california-wordpress-site/).

No letter? Start with Step 1 below.

### Step 1: Check Your Consent Log Settings

Go to **WPConsent » Settings** and scroll down to **Consent Logs**.

Our [Consent Logs documentation](https://wpconsent.com/docs/consent-logs-records-of-consent/) covers every setting on this screen.

The **Consent Logs** toggle saves a record each time a visitor makes a choice. It should be on.

WPConsent ships with it off, so your records start on the day it was switched on.

Right below sits **Automatic Cleanup**. It deletes old records weekly, and you can’t bring deleted records back.

Check out both settings in the screenshot below.

![WPConsent settings with the Consent Logs toggle switched on and the Automatic Cleanup toggle switched off](https://wpconsent.com/wp-content/uploads/2026/11/wpconsent-settings-consent-logs-toggle.png)*Consent Logs on, Automatic Cleanup off.*

Automatic Cleanup is off by default. If yours is on, switch it off for now and click **Save Changes**.

Next, see how far back your records go. Open **WPConsent » Consent Logs** and click the last-page arrow. The oldest row is your earliest saved record.

The toggle only shows today’s setting. To know whether logging was on during a visit, check the dates. A gap usually means it was off for that stretch. Missing older records may have been removed by cleanup.

One more place in your dashboard deletes records: the **Clear Consent Logs** panel under **WPConsent » Tools » Database**.

Its **All time** option wipes every record at once, and there’s no undo. Leave it alone.

You’ll know it by the **Delete Logs** button, shown below.

![WPConsent Tools Database screen with the Clear Consent Logs panel and its Delete Logs button](https://wpconsent.com/wp-content/uploads/2026/03/tools-database-tab.png)*The Clear Consent Logs panel under WPConsent » Tools » Database.*

### Step 2: Find the Visitor’s Record

You’ll search the log whenever you need one visitor’s record. That might be for a privacy complaint, a visitor asking what you’ve stored about them, or your lawyer.

Received a letter? Wait until your lawyer asks before you search. Checks you run on your own may have to be handed to the other side.

Go to **WPConsent » Consent Logs**, where you’ll see every record your site has saved, listed newest first. Dates are shown in your site’s time zone, the one set under **Settings » General**.

There is no consent ID here for a visitor to give you.

So you’ll find them by who they were and when they visited. The two controls you’ll use sit above the table, as you can see below.

![WPConsent Consent Logs table with the Filter by date range field and the IP Search box above it](https://wpconsent.com/wp-content/uploads/2026/11/wpconsent-consent-logs-table.png)*Filter by date range and IP Search sit above the list of records.*

#### If They Had an Account on Your Site

The **User** column shows the username of anyone logged in when they made their choice. Everyone else shows as **Guest**.

The search box only matches IP addresses, so use **Filter by date range** instead. Set it to when they visited, then read down the **User** column for their username.

The tighter the range, the less you’ll scroll.

#### If They Were a Guest

You’ll need two things: their IP address and roughly when they visited.

Guest records don’t store names or email addresses. For a customer, check their order. [WooCommerce](https://woocommerce.com/), for example, shows **Customer IP** at the top of each order’s edit screen.

Before you search, expect more than one match. WPConsent saves IP addresses with the last part set to 0. So everyone whose address starts with the same three numbers shares one stored address.

Type the address into **IP Search** and click **Search Logs**. You can type the full address, because the search ignores the last part.

We saw this on our own demo shop. One address brought back 40 of our 44 records.

Here’s what that looks like.

![WPConsent IP Search returning 40 items for one visitor address](https://wpconsent.com/wp-content/uploads/2026/11/wpconsent-consent-logs-ip-search.png)*One address search returned 40 records on our demo shop.*

To narrow it down, add the date filter. Set it to the day of the order or visit, then match the time in the **Date** column.

Even a single match doesn’t show who was using the device. It ties a choice to an address and a time. Other records, like an order timestamp, help place the person there.

No IP address, or one with colons in it (IPv6)? IP search only works with IPv4 addresses, the kind written as four numbers with dots. Use the date filter on its own.

You’ll see every guest from that window, and the log alone can’t tell you which one was this person. Note that in your reply, or pass it on to your lawyer.

#### If You Find Several Rows for One Person

WPConsent saves a new row every time a visitor makes or changes a choice.

The banner also asks again when consent expires, and that answer gets its own row too. You set how long consent lasts with **Consent Duration**, just above **Consent Logs** in **WPConsent » Settings**.

Check out the screenshot below to see where it sits.

![WPConsent settings with the Consent Duration field set to 30 days, just above the Consent Logs toggle](https://wpconsent.com/wp-content/uploads/2026/06/consent-duration-default-30-days.png)*Consent Duration sits just above Consent Logs.*

Which row counts depends on what you’re asked.

- **For their current choice,** read the newest row. An earlier acceptance stops counting once they change or withdraw it.
- **For one visit,** read the last row saved before that visit’s time. A row saved later can’t tell you what applied earlier.

No row at all means no choice was saved. The visitor may never have clicked the banner. Or logging was off, or cleanup removed the record, as covered in Step 1.

### Step 3: Read What the Record Shows

Each row answers the questions in the table above.

- **When:** the **Date** column shows when the choice was saved.
- **What:** **Consent Details** lists each cookie category as Accepted or Declined.

To see the individual services inside each category, like `google-analytics` or `facebook-pixel`, click **View Services**. Check out the screenshot below.

![WPConsent consent record with View Services open, listing each service as Accepted, and the Banner Context eye icon](https://wpconsent.com/wp-content/uploads/2026/11/wpconsent-consent-log-services.png)*View Services lists each service inside the categories. The eye icon opens Banner Context.*

Refusals are saved too. A row where a visitor declined marketing cookies is still a record of their choice.

- **Who:** the WordPress username or Guest, plus the shortened IP address and, where available, a country flag.
- **How:** click the eye icon in the **Banner Context** column. A window opens with the banner that visitor saw.

It shows the banner message, the language, your policy page, the button labels, and the categories you offered.

Here’s the snapshot from a guest on our demo coffee shop.

![WPConsent Banner Context window showing the banner message, language, policy page, buttons and categories a visitor saw](https://wpconsent.com/wp-content/uploads/2026/11/wpconsent-consent-log-banner-context.png)*Banner Context shows the banner exactly as it was saved with the record.*

The snapshot is saved with the record, so it shows the banner as it was when the visitor clicked. Later edits don’t change it.

We changed our demo shop’s banner wording while writing this guide. Records from before the change still show the old wording.

Some older records show **Not available** in this column because they were saved without a snapshot.

The rest of the row still holds the choice and the time.

For those rows, you may need another saved copy of your banner and privacy information from that period. Your current banner isn’t necessarily what the visitor saw.

### Step 4: Export the Records for Your Lawyer

Your lawyer will need these records outside your WordPress dashboard.

To get them, open the **Export** tab at the top of the Consent Logs page, then set a **From** date and a **To** date that cover the visit you need. Both dates are required.

Click **Export**. The CSV file downloads on its own once the progress bar reaches 100%.

The screenshot below shows the Export tab with a date range filled in.

![WPConsent Export Consent Logs tab with From and To dates filled in and the Export button](https://wpconsent.com/wp-content/uploads/2026/11/wpconsent-consent-logs-export.png)*Set both dates, then click Export.*

⚠️ The export covers everyone

The file holds every visitor in that date range, not just the one you’re looking for. You can’t export one person’s records on their own. So keep the range tight, and let your lawyer decide what goes out to anyone else.

The file also carries each row’s banner message, language, and policy page address. It doesn’t include the country.

When you open it, note that the **User ID** column shows “Guest” for guests and a number for logged-in visitors. That number is their user ID in WordPress, not their username.

If you got a letter and your lawyer asked for this export, you now have two files.

The full-range export you made first is your original copy, so keep it unchanged. This tighter file is the one your lawyer works from.

Both are copies of your consent records, not a backup of your whole site or a record of everything that happened during a visit.

---

## What Can’t a Consent Record Prove?

A consent record shows what a visitor chose. It leaves four things out.

**It doesn’t show what your scripts did.** The log has no record of whether a tracking script loaded before or after that choice.

In the CIPA demand letters we’ve covered, that timing is usually what the claim is about.

Nothing you run today can show what happened during a visit weeks ago. So if you’ve received a letter, leave your setup as it is and let your lawyer direct that check.

**It doesn’t name a guest.** A guest record ties a choice to a network and a moment, not to a named person.

Your lawyer may pair it with other records, like an order, that place that person on your site at that time.

**It doesn’t cover the time before logging was on.**

**It doesn’t prove the consent was valid.** A record can show that someone clicked **Accept All**, but under the GDPR, consent also has to be freely given, specific, and informed. The ICO’s guidance, for example, says pre-ticked boxes don’t count as valid consent, even when a record exists.

Once your lawyer says it’s appropriate to look at your current setup, [WPConsent’s cookie scanner](https://wpconsent.com/how-to-find-which-cookies-your-wordpress-site-is-using/) (**WPConsent » Scanner**) shows the trackers it detects.

You can then check that each non-essential tracking script waits for the visitor’s consent. Our [cookie compliance audit guide](https://wpconsent.com/cookie-compliance-audit-wordpress/) walks through that check.

---

## Keep Your Consent Proof Long Enough to Use It

A record only helps if it still exists when someone asks for it.

Received a letter? Skip this section until your lawyer says otherwise.

The GDPR doesn’t prescribe one fixed retention period for consent records, but [the UK’s ICO recommends](https://ico.org.uk/for-organisations/uk-gdpr-guidance-and-resources/lawful-basis/consent/how-should-we-obtain-record-and-manage-consent/) keeping the evidence for as long as you’re still relying on that consent.

So keep records at least as long as you rely on that consent, and say how long in your privacy policy.

Then set it under [Automatic Cleanup](https://wpconsent.com/wpconsent-1-1-8-your-consent-logs-clean-themselves-up-now/) in **WPConsent » Settings**. Switching it on shows a **Delete logs older than:** dropdown with four options: 3 months, 6 months, 1 year, and 2 years.

It’s set to 1 year by default, as you can see below.

![WPConsent Automatic Cleanup switched on with the Delete logs older than dropdown set to 1 year](https://wpconsent.com/wp-content/uploads/2026/07/wpconsent-retention-period-select.png)*Pick how long to keep records from the Delete logs older than dropdown.*

The longest option is 2 years, which is a plugin setting rather than a legal limit. If you need records for longer, export them before cleanup deletes them and store the file securely.

Export first whenever you shorten the window. WPConsent gives the same advice when you switch cleanup on, as shown below.

![WPConsent warning that about 90 logs will be deleted on the next cleanup run and that this cannot be undone](https://wpconsent.com/wp-content/uploads/2026/07/wpconsent-cleanup-confirm-dialog.png)*WPConsent asks you to confirm before it turns cleanup on.*

Then run one quick test. Open your site in a private browser window, answer the banner, and check that a new row appears on the Consent Logs page.

---

## FAQs: Proof of Cookie Consent

### Do I need to keep a record when a visitor rejects cookies?

If Consent Logs is on, you’ll have one either way, because WPConsent saves refusals the same way it saves acceptances. Refusal records help show how visitors used the choice your banner gave them, not just who accepted.

### Is keeping consent records a legal requirement?

If you rely on consent, the GDPR says you must be able to demonstrate that it was given. Keeping a record of each consent interaction is one practical way to do that, and your lawyer can tell you what applies to your site.

### How long should I keep consent records?

There’s no fixed GDPR period. The UK’s ICO says to keep them for as long as you rely on that consent, so set your cleanup window to match and say so in your privacy policy.

### If someone asks me to erase their data, are their consent records deleted too?

No. WordPress’s built-in Erase Personal Data tool doesn’t touch WPConsent’s consent logs, and WPConsent has no option to delete a single record. The cleanup tools only delete by date. Don’t assume the records can simply be kept or deleted without considering the request. Ask your lawyer or data protection officer how to handle them.

---

## Final Thoughts on Proving Cookie Consent

You now know how to find a visitor’s consent record, read what it contains, and export it when needed. The important thing is to start recording those choices before someone asks for them.

Remember, a consent log only records choices. Your banner still has to hold tracking scripts back until visitors choose.

New to WPConsent? The free version gives you that banner and script blocking. 
[Get WPConsent for free](https://wordpress.org/plugins/wpconsent-cookies-banner-privacy-suite/).

Want a record of each choice, ready when someone asks? 
[See WPConsent Consent Logs](https://wpconsent.com/user-consent-logs/).

---

## Additional Resources

Three guides for the rest of your consent setup:

- **[GDPR vs CCPA: The Key Differences WordPress Site Owners Need to Know](https://wpconsent.com/gdpr-vs-ccpa-wordpress/)**: why EU consent and US opt-outs leave different records.
- **[How to Let Visitors Change Their Cookie Preferences in WordPress](https://wpconsent.com/how-to-let-visitors-change-cookie-preferences-wordpress/)**: give visitors an easy way to withdraw or change consent.
- **[Cookie Policy vs Privacy Policy](https://wpconsent.com/cookie-policy-vs-privacy-policy/)**: where to say how long you keep consent records.

---

*This article is for general information and does not constitute legal advice. For advice on your specific situation, consult a licensed attorney.*

*No tool, WPConsent included, can by itself guarantee compliance or prevent a lawsuit. Proper configuration and legal review of your specific site both matter.*

---

**Categories:** Informational

**Tags:** CCPA, consent logs, GDPR, import/export settings

---

