How to Activate Cookie Consent in Your WordPress Site

Posted on May 16th, 2022

Here is another essential feature of a website that helps you collect users’ information to provide them better overall user experience. Website owners can provide features like saving their credentials and information that they can use next time like primary visited pages, clicks, and similar data. But, in some European countries, there are some specific rules related to cookies and users’ privacy. Sometimes, it can be a problem for you to save the credentials because of the new laws. If you have a WordPress website or blog, setting up an authentication pop-up for a cookie is easy. But It’s more important to have enough knowledge about cookies before using them. So let’s understand some critical points of cookies first. 

What are the Cookies?

A cookie is a file stored within the user’s browser by websites. It holds the information about the user’s credentials and most visited pages. The data is stored in the file for later use. It is used to provide certain types of features on the website. The website owners regularly use cookies to save selected settings and related content. The pages you visit the most on a specific website will give you suggestions like other related topics or next to related articles. Sometimes, cookies can save your credentials for the next easy login feature.

On the other hand, we can say that it’s a browser memory that stores your past moments. The features provided by the cookies are beneficial, but hackers can use them in harmful ways. In this modern generation, People only allow cookies for trusted websites. So, firstly we have to earn the trust of users. Then You can easily add a Cookies consent or pop-up box on your websites. Google Analytics uses cookies to collect various types of data. The data like Locations, Device type, Operating system, and many more.

European Union Cookie Law

It’s good nature that we ask first before saving users’ data. Using this technique, we can build the trust and loyalty of a targeted audience. But the Cookie consent or Cookie pop-up is necessary if your visitor is coming from the United States and Europe. 

There is a specific law for the cookie in the European Union that “requires prior informed consent for storage or access to the information stored on user’s terminal equipment”. – Article 5(3)

Cookies on WordPress?

WordPress can generate two types of cookies using a default feature. 

  • Session Cookies, this cookie is used to save a user’s authentication details. It is set when a user login to the WordPress website and expires every 15 days. This cookie can also save the admin area settings. 
  • Comments Cookies, these cookies are set when a user leaves a comment on your blog. It can save the user’s name, Email and Website URL. So, it will be easy to enter it next time whenever the user what’s to leave a comment.

WordPress can save other information, which can be helpful to recognise the user or repeat visitors. And we also have some plugins that provide cookies and related features. Somewhere the cookie plugins can use WordPress generated cookies, but these plugins can also create their cookie files in the visitor’s browser. And additionally, some of the plugins also provide personalised cookie options to solve the EU Law issue. 

It’s easy to turn off the cookies using plugins, but why do we need to turn off the cookie? The answer is to ensure that Our website is compliant with different countries’ cookie laws. Some plugins can easily turn off the cookies without ignoring the plugin’s functionality.

  • OptinMonster, is one of the best Lead Generation plugins for WordPress. 
  • WPForms, is one of the best Form Plugins for WordPress.
  • Smash Balloon, is one of the best Social Media plugins for WordPress.
  • Monsterinsights, is one of the best Google Analytics plugins of WordPress.

Cookies and Privacy

As we discussed, Cookies can be a powerful tool to retrieve all the quality information of visitors. And we can use this data on third party software and tools too. But sometimes, this data can be used for harmful purposes. As per the cookies risks, countries and regional laws can attract complicated issues for website owners. Because not just in the EU, but different countries like Canada, Japan and the UK also have different laws for cookies, and we can solve these issues with permission requests. That’s why we see cookie pop-ups on many websites asking for the authorisation of the user to save the cookies.

So, here are some basic steps for website users to follow when using cookies on their website.

  • We should add a Privacy Policy page on our website. It’s a legal page required to comply with privacy and cookie laws in different countries.
  • Every website user who wishes to use cookies should add a cookie notification plugin to their website. This plugin allows you to ask your user for cookie save permissions. We will discuss the plugin installation and configuration tutorial in this article.
  • We should keep checking our website cookies and the plugins used. Whenever you choose a cookie plugin, first confirm that it has the options for cookie laws.

So, let’s start the tutorial to install one of the best Cookie plugins for WordPress websites. We will install and use a plugin and create a cookie consent with a step by step tutorial.

How to Install Cookie Consent plugin in WordPress

Step 1: Log in to the Admin Area of the WordPress website using Username and Password.

Step 2: Hover your mouse on the Plugins option, then click on the Add New option from the left sidebar, as shown in the image below.

Step 3: Click on the search bar, search for cookie consent, and find “Beautiful Cookie Consent Banner” with a cookie icon like the image below.

Step 4: Click on the Install Now button beside the cookie icon.

Step 5: Then, Click on the Activate button. We just installed the Cookie Consent plugin on our WordPress website.

How to Use Cookie Consent plugin in WordPress.

Note: Do not forget to click on the Save Changes button to save the changes. You will find the save changes button on the top of each section.

Step 1: Go to the Admin Area, and hover your mouse on the Settings option available on the sidebar. Then click on the last option as Cookie Consent Banner, as you can see below.

Step 2: On the Cookie Consent Banner’s settings page, you can see a Tab section at the top of the page. Click on the General option, as you can see in the below image.

Step 3: To Start using Cookie Consent on your website, Click on Enable Cookie Banner Checkbox. 

Step 4: To see the Preview of Cookie Consent on your admin area, click on the checkbox available as Preview Banner, as shown in the below image.

Step 5: Now, click on the Appearance Tab. This tab contains all the options for Customisations like ThemeBanner Position and Colour Options, as you can see in the below image.

Step 6: To change texts upon the banner, click on the Text Tab section.

Within this tab, you will find all the options related to text elements on the banner like Button textText of bannerLink textLink page etc. You can see the related options and Banner preview in the below image.

Step 7: The next tab is the Compliance & Behaviour tab, which is a very important tab. Click on that tab.

Within this tab, you will see the options to change the Compliance & Cookie TypeScroll and Timeout settings. You can see the preview and setting options in the below image. We choose 2 Button Compliance types within this example.

Step 8:  After completing the customisations. Hover the mouse on the Site name available on the top left side of the screen. Click on the Visit site option, as you can see in the below image.



As we learn, cookies save the user’s information and track the visitor’s history. You can find many different plugins for this single feature within the WordPress plugin directory. The plugin used in this article has more options like Block Services and Cookie Settings. Here you can set the Cookie name and Expiry. The reason behind choosing this plugin is this it is a simple plugin that is ready to use. We can easily customise the plugin and use the features on the go as we learn how to use the Cookie Consent plugin with several features and tab sections. We have unlimited possibilities for customisations.

Leave a Reply