Bringing your WordPress site into compliance with the European Privacy Regulation (GDPR) is a crucial step to ensure transparency and legality in managing user data. One of the essential tools in this process is the cookie banner, which is mandatory for all websites that use third-party cookies, such as analytics tools or advertising platforms.
With Keliweb, you can manage everything easily and in full compliance thanks to the integration with iubenda services, which can be purchased directly from our website.
What is a Cookie Banner (and Why It’s Necessary)
A cookie banner is a notice that appears the first time a user visits your website. Its purpose is to inform users about the use of cookies and to request explicit consent before activating non-essential cookies, such as profiling, retargeting, or advertising tracking cookies.
A GDPR-compliant cookie banner:
-
Blocks cookies until consent is given
-
Allows users to accept, refuse, or customize their preferences
-
Links to an up-to-date cookie policy
-
Stores user choices for future visits
Step-by-Step Guide: Adding a GDPR Cookie Banner on WordPress
1. Activate the iubenda Cookie Solution
Go to the iubenda page on Keliweb, select the plan that best suits your needs, and activate the Cookie Solution service. After configuring the cookies you want to manage (e.g., Google Analytics, Meta Pixel, Hotjar, etc.), iubenda will generate a script to insert into your website.
Log in to your iubenda dashboard, select the relevant project, and click Add a cookie banner under Privacy Controls and Cookie Solution to start the configuration.
2. Integrate the Code on WordPress
You have three options to insert the cookie banner code:
Option 1: Using the iubenda Plugin
- Go to Plugins > Add New and search for "iubenda."
- Install and activate the official plugin.
- Enter the required codes (Cookie Solution and Policy, if active).
- Customize the settings (language, position, behavior).
Option 2: Using a Generic Plugin
With a plugin like Insert Headers and Footers, you can manually insert the iubenda script in the <head> section of your site without modifying the theme code.
Option 3: Manual Insertion into the Theme
For advanced users, it is possible to paste the code directly into the header.php file of a child theme, just before the </head> tag. This method is less flexible and harder to update compared to using a plugin.
3. Verify Preventive Cookie Blocking
It is essential that non-essential cookies are blocked until the user gives valid consent. With iubenda, blocking occurs automatically if the configuration is correct.
You can check the banner behavior in incognito mode or with browser extensions such as Google Tag Assistant.
4. Insert the Cookie Policy
iubenda also generates a customized and always updated cookie policy, which should be linked in the site footer or directly within the banner.
- Go to Documents in your iubenda dashboard.
- Select Cookie Policy.
- Copy the script and paste it on a page of your WordPress site, or insert it into an HTML widget.
Hosting + Cookie Banner Solution with Keliweb
By choosing a WordPress hosting plan, you ensure high performance, full compatibility with GDPR plugins, and technical support for integrating the iubenda cookie policy.
Our team is available to help you configure your website in a compliant, secure, and SEO-optimized way.