WordPress GDPR Compliance Without a Plugin

If your WordPress site has visitors from the European Union, the General Data Protection Regulation, known as GDPR, applies to you even if your business is based somewhere else. The law covers any site that collects personal data from people in the EU, and that includes a simple blog with comments, a contact form, or Google Analytics.
Many site owners assume they need an expensive GDPR plugin to comply, but WordPress core already includes useful privacy tools, and the rest of compliance is a set of manual steps you can do yourself. This guide explains how to make a WordPress site GDPR compliant without a dedicated GDPR plugin. This is general guidance to help you understand the process, not legal advice. If your site handles sensitive data or you are unsure about your legal basis, talk to a qualified lawyer in your country.
What does GDPR actually require from a small site?
GDPR is a privacy law, not a plugin checklist. It says you must have a lawful reason to collect personal data, you must tell people what you collect and why, you must collect only what you need, you must keep it secure, you must delete it when you no longer need it, and you must respect people rights over their own data. For a small site, the lawful basis is usually consent or legitimate interest. Consent means the person agrees before you collect data, for example by ticking a checkbox on a contact form. Legitimate interest means you have a genuine reason to process data that does not override the person privacy, for example using a security log to block attacks. Decide your lawful basis for each type of data and write it down.
Start with a data inventory
Before you change any settings, list every place your site collects personal data. Open a simple spreadsheet and go through your site page by page. Most small sites collect data in only a few places, but each one matters.
- Comments: name, email, website URL, IP address, and browser details stored with each comment.
- Contact forms: name, email, message content, and often an IP address in the form plugin logs.
- Registration and login: username, email, password hash, and login timestamps.
- Analytics: IP address, device details, pages visited, and a cookie identifier if you use Google Analytics.
- Embeds: YouTube videos, Google Maps, and social media feeds that set cookies or send IP addresses to third parties.
- Newsletters and e-commerce: email addresses, order details, billing addresses, and purchase history.
- Security and backup tools: IP addresses in security logs, and full site copies in backups that may include personal data.
For each item, note what data it collects, why you need it, where it is stored, how long you keep it, and who else can see it. A contact form message might be deleted after 90 days once the enquiry is answered. Writing this down forces you to spot data you collect without a good reason, and that is often the first thing to remove.
Create a proper Privacy Policy page
Go to Settings, then Privacy in your WordPress dashboard. WordPress offers a Privacy Policy page generator with suggested text that covers the data WordPress itself collects, including comments, media, and user accounts. Use that suggested text as a starting point, then edit it to describe your own forms, analytics, embeds, and third party services. Select the finished page as your Privacy Policy page, and link to it from your footer and from every form that collects personal data.
Use the Export and Erase Personal Data tools
Under Tools, then Export Personal Data and Erase Personal Data, WordPress lets you respond to user requests. When someone asks for a copy of their data, enter their email address, confirm the request through the email WordPress sends them, and download a file with the personal data WordPress and your compatible plugins hold about them. When someone asks to be forgotten, use the Erase Personal Data tool the same way. WordPress will remove or anonymize their comments and account details and show you a report of what was removed. Test the process with a test account before a real request arrives. WordPress official privacy documentation at wordpress.org privacy documentation explains these core tools in detail.
Turn on the comment cookie consent checkbox
When visitors leave a comment, WordPress can show a checkbox that says Save my name, email, and website in this browser for the next time I comment. Check that your theme displays it, because some custom comment forms hide it. If it is missing, add it back.
Audit what your plugins and theme collect
WordPress core is only part of the picture. Your theme and plugins often collect more data than core does, and they do it quietly. A contact form plugin may store every submission in your database. A security plugin may log IP addresses for months. A social sharing plugin may load tracking scripts from third parties. Remove plugins you no longer use, and replace plugins that collect more than you need with simpler alternatives. Domain and hosting choices matter too. Your registrar may publish your personal contact details in the public WHOIS database unless you use domain privacy protection. Our guide to domain privacy protection explains how to hide those details. Our web hosting guide explains what to look for in a host, including data location and security practices that support GDPR compliance.
Cookie consent without a plugin
Cookies are the part of GDPR that most visitors actually see, because of the cookie banner. The rule in the EU is that you need consent before setting non essential cookies, such as analytics and marketing cookies. Essential cookies that keep a site working, such as a login session or a shopping cart, do not need consent. The simplest no plugin approach is to avoid non essential cookies until the visitor agrees: load your analytics script only after consent, and block third party embeds until consent is given. Here is a minimal example.
<div id="vtg-cookie-banner" style="display:none; position:fixed; bottom:0; left:0; right:0; padding:16px; background:#111; color:#fff;">
<p>We use cookies to understand visits. You can accept or decline analytics cookies.</p>
<button id="vtg-cookie-accept">Accept</button>
<button id="vtg-cookie-decline">Decline</button>
</div>
<script>
(function() {
var choice = localStorage.getItem('vtg_cookie_choice');
if (!choice) {
document.getElementById('vtg-cookie-banner').style.display = 'block';
}
if (choice === 'accepted') {
loadAnalytics();
}
document.getElementById('vtg-cookie-accept').addEventListener('click', function() {
localStorage.setItem('vtg_cookie_choice', 'accepted');
document.getElementById('vtg-cookie-banner').style.display = 'none';
loadAnalytics();
});
document.getElementById('vtg-cookie-decline').addEventListener('click', function() {
localStorage.setItem('vtg_cookie_choice', 'declined');
document.getElementById('vtg-cookie-banner').style.display = 'none';
});
function loadAnalytics() {
var s = document.createElement('script');
s.src = 'https://www.googletagmanager.com/gtag/js?id=G-XXXXXXXXXX';
s.async = true;
document.head.appendChild(s);
}
})();
</script>
This example is intentionally simple. A production banner should also offer a way to change the choice later, usually a small Cookie settings link in the footer that clears the stored choice and shows the banner again. If your site uses many tracking tools, a dedicated consent plugin may still be easier, but for a small site with one analytics tool, this manual approach is clear and fast.
Switch to cookieless analytics or anonymize IPs
Another way to reduce cookie risk is to reduce the data you collect. Cookieless analytics tools such as Plausible, Fathom, or the self hosted version of Matomo do not use cookies and do not store full IP addresses. They still tell you which pages are popular, which is enough for most small sites, and switching to one often removes the need for a complex cookie banner. If you keep Google Analytics, anonymize IP addresses and shorten data retention. In Google Analytics 4, IP anonymization is enabled by default, but verify it and set data retention to the shortest period that meets your needs, such as 2 months or 14 months. Google provides official guidance at developers.google.com Analytics IP anonymization guidance. For embeds, use YouTube privacy enhanced mode or a thumbnail that only loads the video when clicked.
Data retention and security basics
GDPR says you should keep personal data only as long as you need it. Delete old form entries and spam comments, and set analytics retention to a short period. Set backups to rotate so old copies do not keep personal data forever. Security is part of GDPR too. Use strong passwords and two factor authentication for every admin account, keep WordPress, themes, and plugins updated, use HTTPS on every page, protect your forms against spam and abuse: our guide to adding Google reCAPTCHA to WordPress without a plugin shows how to add that protection with code.
Handling access and deletion requests
Under GDPR, people have the right to ask what data you hold about them, to ask you to correct it, to ask you to delete it, and to ask you to stop using it for marketing. Add a clear contact email to your privacy policy, such as privacy@yoursite.com, and say that requests should be sent there. When a request arrives, verify the identity of the requester before you share or delete anything. WordPress core already sends a confirmation email for export and erase requests, so use that flow. Respond within one month.
Your GDPR compliance checklist
- Complete a data inventory that lists every form, plugin, embed, and analytics tool that collects personal data.
- Write or update your Privacy Policy page using the WordPress generator as a starting point, and link it from your footer and forms.
- Confirm the comment cookie consent checkbox is visible on your comment form.
- Add a cookie consent banner that blocks analytics until the visitor accepts, or switch to a cookieless analytics tool.
- Anonymize IPs in analytics, shorten data retention, and turn off advertising features you do not use.
- Use privacy enhanced mode or click to play images for YouTube and other embeds.
- Enable domain privacy protection so your personal details are not public in WHOIS.
- Set retention rules for form entries, comments, logs, and backups, and delete data on schedule.
- Test the Export Personal Data and Erase Personal Data tools with a test account.
- Publish a clear privacy contact email and a simple process for access and deletion requests.
Work through this checklist once, then review it every six months or whenever you add a new plugin, form, or third party service. GDPR compliance is not a one time task. It is a habit of knowing what data you collect, why you collect it, and when you delete it.
Frequently Asked Questions
Can WordPress be GDPR compliant without a plugin?
Yes, for a small site. WordPress core includes a Privacy Policy generator and Export and Erase Personal Data tools, and you can handle cookie consent, analytics settings, and retention rules manually. A plugin can help with complex sites, but it is not required to comply.
Do I need a cookie banner if I use Google Analytics?
Yes, in most cases. Google Analytics sets non essential cookies, so you need consent before loading it for visitors in the EU. You can load analytics only after consent with a simple banner, or switch to a cookieless analytics tool.
How long should I keep contact form entries?
Keep them only as long as you need them to answer the enquiry, usually 30 to 90 days. After that, delete them. If you need a record for legal or tax reasons, keep the minimum details required and note that reason in your data inventory.
What should I do when someone asks me to delete their data?
Verify their identity, then use Tools, then Erase Personal Data in WordPress to remove or anonymize their core data. Delete their data from your plugins, email lists, and other systems too, respond within one month, and keep a log of the request.
Last updated: November 2026.



