As a website owner located in the European Union (EU) or dealing with users from the EU countries, you need to make sure that your website is compliant with current rules and regulations.
To give people control over how their data is used and to protect “fundamental rights and freedoms of natural persons”, the General Data Protection Regulation (GDPR) sets out strict requirements on data handling procedures, transparency, documentation and obtaining user consent. This also applies to using cookies on your website.
There are various types of cookie consent messages being used on websites. Some solutions - like Cookiebot - offers standard templates that you can use as they are or customize to your liking. You can see these here. Google has also put together some examples that are suitable if you use Google Analytics or Google AdSense.
There are 2 main ways of implementing cookie consent on your website: By making use of a Wordpress plugin or by adding a cookie consent script directly to your website.
One of the easiest ways to implement cookie consent on your website is by making use of a Wordpress plugin. You can find and install cookie consent plugins in the plugin menu point in the admin area of your Wordpress site. Be sure to look for the Cookiebot plugin which is fully compliant with both GDPR and the EU ePrivacy Directive.