• Categories
    • Tutorials
    • Beginners Guide
    • WordPress News
    • WordPress Security
    • Best WordPress Plugins
    • WordPress Themes
    • Product Reviews
    • WP Tips & Tricks
  • Guides
    • Start a Blog
    • Make a Website
    • WordPress Hosting
  • WordPress Hosting
    • A2 Hosting
    • HostGator
    • Bluehost
    • Cloudways
  • Managed Hosting
    • WPEngine
    • Rocket.net
    • WPX
    • Kinsta
  • Coupons
    • WPEngine
    • Flywheel
    • Cloudways
    • A2 Hosting
    • WPX Hosting
WordPress Tips & Tricks

How To Add A Cookie Consent Notification In WordPress

Last Updated on: November 2, 2018 Editorial Staff 2 Comments

How To Add A Cookie Consent Notification In WordPress

With the alarming rate of data breaches and hacks, people are now concerned about their online privacy more than anything else. As a result, the European Union introduced specific laws to protect user privacy. You might actually be breaking these laws without even knowing.

If you have a WordPress website or a blog, chances are you’re already utilizing cookies to collect user data and deliver certain features of your website. And, if you’re not showing a cookie consent notification on your website, you could get fined or get into some serious trouble.

Don’t worry. Setting up a cookie consent notification is quite easy. In this guide, we’ll walk you through the process, step by step. But first, let’s learn a little bit about the cookie law and why you need to show cookie consent notifications on your website.

What Is A Cookie Consent?

Not to be confused with the baked cookies you eat, an HTTP cookie or a browser cookie is a type of file that websites use to collect and remember user data. This file gets stored in your browser so that the website remembers who you are.

For example, when you login to Facebook, it stores a cookie in your browser to remember your email and password so that next time you can instantly login to the site.

WordPress websites and blogs also use cookies to store different types of data. Services like Google Analytics use cookies to track website visitors and collect data such as visitor location, device type, operating system, and more. The email opt-in popups also use cookies.

Even though this type of cookies seems harmless, you’re still collecting data from your visitors without them knowing. This is why the cookie consent was introduced as a way of notifying people that you are utilizing cookies on your website and give them the option to either keep browsing or leave the website.

cookie-consent

Here’s what a cookie consent should look like, according to the European Union.

The EU Cookie Law

Showing a cookie consent notification on your website is a good practice that will help build trust and loyalty with your audience. However, it’s now also required by law, especially if you have visitors coming to your website from Europe and the US.

The European Union introduced the EU legislation on cookies. This “requires prior informed consent for storage or for access to information stored on a user’s terminal equipment” – The ePrivacy directive – Article 5(3)

Basically, it means you need to inform and get user approval to use cookies. If you don’t comply with this law, you might get fined, in addition to losing the trust of your audience for putting their privacy at risk.

As you can imagine, showing a cookie consent notification is more than just about abiding the law. It’s also an important part of making your website trustworthy and a safe place for your visitors.

How To Write A Cookie Consent Message

The general idea of a cookie consent notification is to inform the user of the cookie use on your website and the way you use them. However, many websites also place buttons on the notification to let visitors either accept or refuse a site’s cookies.

Here’s a simple example message you can customize and use on your WordPress blog when showing a cookie consent notification.

We use third-party tools and services that utilize cookies. These tools help us deliver a better website browsing experience. By clicking on the “Accept” button or continuing to view our site, you consent to the use of cookies on our site.

To make it even more effective, you can write a cookie policy page and link to it from this notification to let users learn more about how you use cookies on your website.

How To Setup A Cookie Consent Notification

Thanks to plugins, setting up a cookie notification on your website is quite easy. We’re going to use the free Cookie Consent plugin to get this job done.

Step 1: Install The Cookie Consent Plugin

cookie-consent-plugin-1

Login to your WordPress admin dashboard and navigate to the Plugins >> Add New page.

Search for the Cookie Consent plugin and click the Install button. Then click the Activate button to enable the plugin.

Step 2: Customize Settings

cookie-consent-plugin-2

Once the installation is complete, go to Settings >> Cookie Consent page to customize the settings of the plugin.

From here, you can choose how the notification is shown to your visitors. You can let people close the notification on-click or set a timer to automatically close the notification.

You can also choose to exclude the notification from appearing in specific regions in the world. You’ll need to install the GeoIP Detect plugin to activate this feature.

cookie-consent-plugin-3

Over at the Styles tab, you can choose where the notification is displayed and customize its colors.

Step 3: Edit The Message

cookie-consent-plugin-4

Switch over to the Content tab to enter your custom cookie consent notification message.

You can also enter a Read More link to redirect users to a privacy policy page and include an Accept button as well. Or you can leave them blank if you just want to show a simple notification.

After making the changes, click the Save button.

The final result will look like this.

cookie-consent-plugin-5

Conclusion

In addition, you should also create a section in your website’s privacy policy page to describe how you’re using cookies and what kind of data you’re collecting. This is especially important if you’re utilizing third-party or native advertising. And it will help you avoid getting into trouble and make your website more GDPR-friendly.

+ Share
Disclosure

Editorial Staff

Related Posts

Back to all articles
  • WordPress’ Settings: A New User’s Checklist

    WordPress’ Settings: A New User’s Checklist

  • Introducing The Wp-Config.Php File For WordPress

    The wp-config.php File: Why It’s the Most Important File For WordPress

  • Best Black Friday Deals

    Black Friday and Cyber Monday Deals, Coupons, & Discounts for 2021

Coupons

View more deals
  • Recipe Card Blocks Coupon
    15% OFF

    Recipe Card Blocks Coupon

    Running a cooking or food website can be fun (and tasty) – but
    Get This Deal
  • WP 2FA Coupon
    20% OFF

    WP 2FA Coupon

    Security should be at the forefront of all site owner’s min
    Get This Deal
  • Themskingdom Coupon
    20% OFF

    ThemesKingdom Coupon

    First impressions count. As such, you’ll want a WordPress t
    Get This Deal
2 Comments Leave a Reply
  1. Anthony Joel says

    July 31, 2019 at 7:59 pm

    Wow! Another great epic article on Cookies disclosure. Honestly, I really enjoyed these articles thank you for such a wonderful write-up. But, wouldn’t it take effect if I make use of Jetpack automatically on my WordPress site?

    Reply
    • Chell says

      September 8, 2020 at 12:08 pm

      Thank you so much for commenting on this, Anthony!! I use jetpack and was dreading installing a plugin to do this.

      Reply

Leave a Reply Cancel reply

Full Disclosure This post may contain affiliate links, meaning that if you click on one of the links and purchase an item, we may receive a commission (at no additional cost to you). All opinions are our own and we do not accept payments for positive reviews.

THE BEST OF WPKUBE

Some of the best content we have published so far.

BEGINNER GUIDES & REVIEWS

18 Best Cheap WordPress Hosting Providers in 2023 (From $1.99)
210 Best WordPress Hosting Options for 2023 (Pros & Cons)
38 Best Managed WordPress Hosting Providers for 2023 Compared
45 Best WooCommerce Hosting Providers Compared in 2023 (All Budgets)
5Top 9 Landing Page Plugins for WordPress (2023)
69 Best List Building Plugins for WordPress In 2023
7How to Fix the 500 Internal Server Error on Your WordPress Website
8Thrive Themes Review: A Look At The Full Membership
9Beaver Builder Review: Is it The Best Page Builder Plugin for WordPress (2023)?
10OptimizePress Review: Create Landing Pages with Ease
11How to Make a Website: Complete Beginner’s Guide
12Top 22 Best Free Stock Photo Resources For Your Site
1317 of the Best Google Fonts for 2023 (And How to Use Them in WordPress)
14How to Start a Blog in 2022 (Step by Step Guide)
15How To Fix ‘503 Service Unavailable’ WordPress Error
1611 Best Contact Form Plugins for WordPress in 2023
17How to Add a Custom Logo to Your WordPress Site
18How to Fix Error Establishing a Database Connection in WordPress

WPEngine: 50% OFF Deal

Save 50% on one of the best managed hosting providers.

Get this Deal

Flywheel(our review)

Our Newsletter

Get awesome content delivered straight to your inbox.

Thank you!

You have successfully joined our subscriber list.

.
Featured In Forbes Huffpost Entrepreneur SEJ

About WPKube

WPKube is an online WordPress resource which focuses on WordPress tutorials, How-to’s, guides, plugins, news, and more. We aim to provide the most comprehensive beginner’s guides to anything about WordPress — from installing plugins, themes, automated installs and setups, to creating and setting up pages for your website.

We have over 500+ tutorials, guides, product reviews, tips, and tricks about WordPress. Founded by Devesh Sharma, the main goal of this site is to provide useful information on anything and everything WordPress.

Twitter Facebook

Useful Links

  • Behind the Scenes
  • Beginner Guides
  • WordPress Hosting
  • WooCommerce Themes
  • MeridianThemes
  • Exclusive WordPress Deals
View All Guides »

Reviews

  • WPEngine 33% OFF
  • Thrive Leads
  • Flywheel 33% OFF
  • Divi Theme 20% OFF
  • Thrive Architect
  • Elegant Themes
Reviews »

Deals

  • InMotion Hosting
  • LifterLMS Coupon
  • LiquidWeb Coupon
  • WPEngine Coupon
  • A2 Hosting
  • FloThemes
More Deals »
© Copyright 2023 WPKube ® All Rights Reserved.
  • Contact
  • Site Terms
  • Disclosure
  • Privacy Policy