πŸ”΅
WordPress

Setting up a WordPress AVG cookie law plugin

πŸ“… 9 October 2026 ✏️ 9 October 2026 ⏱ 5 min leestijd

Learn how to set up a GDPR-compliant WordPress cookie plugin, with step-by-step guide, settings, and FAQs.

A WordPress website that places cookies must comply with the GDPR and cookie law. You arrange this with a cookie banner plugin that asks for consent before non-essential cookies are placed. In this article you’ll read which plugin you can use, how to set it up, and what to watch out for so visitors really get a free choice.

What the GDPR requires from your cookie banner

The GDPR and telecommunications law require that you ask visitors in advance and specifically for consent for cookies that are not strictly necessary, such as analytical and marketing cookies. Functional cookies needed to make the site work, such as a shopping cart, don’t fall under this. It’s important that the reject button is as prominent as the accept button, that no boxes are pre-checked, and that scripts only load after the visitor has given consent.

In addition, you must clearly explain to visitors which cookies you use and for what purpose, and they must be able to change their choice later.

VisitorCookie banneraccept/rejectScripts loadonly with consent

Which cookie plugin do you choose

Several popular plugins are available in the WordPress plugin directory, such as Complianz, CookieYes, and Cookie Notice & Compliance. They all work according to the same principle: a banner that blocks scripts until the visitor has made a choice. When choosing, pay attention to whether the plugin can automatically scan and block scripts, whether it supports multiple languages, and whether it keeps a consent log. The latter is useful if you ever need to prove that you comply with the rules.

πŸ’‘ Tip: Choose a plugin that automatically detects and blocks scripts, so you don’t have to manually adjust every Google Analytics or advertising code.

Step-by-step plan: installing and configuring the plugin

Below is a general step-by-step plan that works for most cookie plugins.

1

Install the plugin

Go to Plugins > Add New in WordPress, search for the desired cookie plugin, and click install and activate.

2

Go through the wizard

Most plugins start with a configuration wizard where you set the language, cookie categories, and appearance of the banner.

3

Have scripts scanned

Let the plugin scan your site for cookies and scripts, and check that they’re automatically placed in the correct category (necessary, functional, analytical, marketing).

4

Check blocking

Open your site in an incognito window and use the browser console or developer tools to check that scripts like Google Analytics only load after consent.

5

Link the cookie statement

Make sure the banner links to an up-to-date cookie statement and that visitors can change their choice later, for example via a link in the footer.

Avoiding common mistakes

A common mistake is that the reject button is hidden behind an extra click, while accepting can be done with a single click: this is not allowed. It also happens that scripts load before the visitor has made a choice, for example because a tracking pixel is placed loosely in the theme header and isn’t blocked via the plugin. Therefore, always manually check with the browser console that no scripts load prematurely.

Also pay attention to your hosting environment: caching can cause visitors to see an old, expired version of the cookie banner. On a server with properly functioning caching settings, such as with web hosting using LiteSpeed and Plesk, you can set caching exceptions for the cookie banner so it always stays up to date. If you work with your own domain and accompanying business email for contact forms on your site, also mention in your cookie statement which data you process with it.

Frequently asked questions

Does every website need a cookie banner?

Only if you place non-essential cookies, such as analytical or marketing cookies. If you only use functional cookies, a banner is often not required, but informing visitors via your cookie statement is still necessary.

Can I use Google Analytics without consent?

Only if you configure Google Analytics in a privacy-friendly way, for example by anonymizing IP addresses and not sharing data with Google. Default settings do require consent.

Does a free cookie plugin work as well as a paid one?

Free versions often offer basic functionality, such as a banner and blocking. Paid versions usually add extensive scans, multilingual support, and consent logging.

Does a cookie banner affect my site’s loading speed?

A well-configured plugin has minimal impact. Make sure you configure caching correctly, so the banner doesn’t become outdated or slow down the site.

Can I switch to Tandata without losing my cookie settings?

Yes, when migrating via switching to Tandata, your WordPress installation and plugin configuration remain intact, including your cookie banner settings.

Conclusion

A GDPR-proof cookie banner requires explicit, free consent before non-essential cookies load. Choose a reliable plugin, carefully go through the configuration wizard, check the script blocking, and ensure your cookie statement is up to date. This way, you comply with the law and maintain your visitors’ trust.

View web hosting β†’

Was dit artikel nuttig?