Easy Way to get Cookie Consent for your Website

Before going through the process how to add Cookie Consent in your Website, let us first familiar with What is Cookies? What is Cookie Consent? What is the law Behind it? Cookie Consent is compulsory for your Business/Website?


Cookies is a piece of data or you can say a term for a packet of data that a computer receives, then sends back without altering or changing it. They can store data in your browser and enable a site to ‘remember’ bits of information about your pages or visits.

Many websites are using it, so that they can provide you the content according to your search preferences.

Cookie Consent

The Cookie Law is a piece of privacy legislation that requires websites to get consent from visitors/customers to store or retrieve bit of information on a device like computer, smartphones or tablet.

Cookie Law

All websites owned in the EU or targeted towards EU citizens, are now expected to comply with the law and that law is “You must notify your site’s visitors of your use of cookies and obtain their explicit consent before you place or access cookies on their devices.”

Cookie Consent is compulsory for your Business/Website?

If you own a website, then you should need to make sure it complies with the law.

How to add Cookie Consent Notice/Popup/ Acceptance note to your Website

It is very simple to add the Cookie Consent to your website. Just go through the step by step process and you are done!!

Steps to add (Code of Cookie Consent).

  1. Open your website admin panel.
  2. Go to your Main page code.
  3. Place the code given below just before the tag </head>

Copy Code:

<link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/cookieconsent@3/build/cookieconsent.min.css" />
 <script src="https://cdn.jsdelivr.net/npm/cookieconsent@3/build/cookieconsent.min.js"></script>
 window.addEventListener("load", function(){
   "palette": {
     "popup": {
       "background": "#000"
     "button": {
       "background": "#f1d600"

If you want to do modify the code so that it look according to your personalize text and other stuffs, then you can do that also

Copy Code:

<link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/cookieconsent@3/build/cookieconsent.min.css" />
 <script src="https://cdn.jsdelivr.net/npm/cookieconsent@3/build/cookieconsent.min.js"></script>
 window.addEventListener("load", function(){
   "palette": {
     "popup": {
       "background": "#64386b",
       "text": "#ffcdfd"
     "button": {
       "background": "#f8a8ff",
       "text": "#3f0045"
   "theme": "edgeless",
   "position": "top",
   "content": {
     "message": "Your Text stating things",
     "dismiss": "OK",
     "link": "Link",
     "href": "feedknock.com"

Background: Change your background according to your choice by replacing any colour code 64386b

Text: You can choose your kind text by replacing the value ffcdfd

You can also change the colour and text for button on the same way

Theme: You can change the theme design by replacing edgeless

Position: You can change the position of your Popup/notice by replacing top

Content: You can change content by replacing message, dismiss button, link text along with link i.e href in the last section content.

For WordPress User you can also add plugins for that. Few plugins are listed below

  • GDPR Cookie Consent
  • GDPR Cookie Consent Banner
  • Cookie Notice for GDPR
  • Cookie Notice by dFactory
  • Cookie Consent
  • EU Cookie Law

For Blogspot user. You can follow the given listed process

  1. Login to your Blogger dashboard
  2. Click Layout > Add a gadget > Choose HTML/JavaScript
  3. Paste the code which is already mentioned in our website
  4. Save It
  5. You may keep the gadget anywhere you want
  6. Save Arrangement & Visit your Blog to Confirm.

All Done!! Now your website is ready to show the Cookie Consent. Let me know still you have any doubts in comment section down below. Thanks for visiting.

Also Check out our Gadget Section

Sharing is Caring

Brajesh Kumar Singh

Brajesh Kumar Singh is the Founder of FeedKnock.com. He love to Write About the Technology, Lifestyle, Fashion and other stuffs. Currently He is working with many Brands to boost Marketing and Handling Digital Marketing Activities. Brajesh has completed his B.Tech from B. P. Poddar Institute of Management and Technology. He is also Helping many NGO's. Little more description about Brajesh Can be found Below Entrepreneur •Social Media Evangelist • Social Media Outreach #Strategist •Digital Marketer •Founder at @ApnaContest @trickdefined @FeedKnock

You May Also Like

23 thoughts on “Easy Way to get Cookie Consent for your Website

  1. I was suggested this web site by my cousin. I am not positive whether this put up is written through
    him as no one else recognise such designated about my difficulty.
    You are amazing! Thank you!

  2. Good post. I learn something new and challenging on blogs I
    stumbleupon every day. It will always be exciting to read articles from
    other writers and use something from other web

  3. Hi, Neat post. There’s an issue along with your site in web explorer, could check
    this? IE nonetheless is the market chief and a good component of other folks will miss your great
    writing due to this problem.

  4. Great post. I was checking continuously this blog and I’m inspired!

    Extremely helpful information particularly the final section :
    ) I take care of such information a lot. I used to be seeking this particular information for a very long
    time. Thank you and good luck.

  5. This is really interesting, You are a very skilled blogger.
    I have joined your feed and look forward to seeking more of
    your magnificent post. Also, I’ve shared your site in my
    social networks!

  6. Everything is very open with a really clear clarification of the issues.
    It was truly informative. Your site is very useful.
    Thank you for sharing!

  7. So whoever you are, whherever you happen to be from, whatsoever
    your sityuation are. Thus, gemstone buyiny aand
    selling ccan also bee promising in gemstone forums.
    But the methods forecasted with the experts ensure too measure its
    level by analyzing the on-line conversion rate of sales and the increase of
    visitors iin your internet site.

  8. naturally like your web-site however you need to test
    the spelling on several of your posts. Many of them are rife
    with spelling problems and I find it very troublesome to inform the truth however I will certainly come back again.

  9. Pingback: URL
  10. What’s Going down i am new to this, I stumbled upon this I’ve found It absolutely useful and
    it has aided me out loads. I am hoping to give a contribution & help different users like its helped me.
    Good job.

  11. Generally I do not read post on blogs, however I would like to say that this write-up very pressured
    me to try and do it! Your writing taste has been amazed
    me. Thank you, very nice post.

  12. Thanks a bunch for sharing this with all of us you actually recognize
    what you’re talking about! Bookmarked. Please also consult with
    my website =). We may have a hyperlink change arrangement among us

  13. When someone writes an post he/she maintains the thought of a user in his/her mind that how a user can understand it.
    So that’s why this post is outstdanding. Thanks!

  14. Excellent post. Keep posting such kind of info on your
    blog. Im really impressed by your blog.
    Hi there, You’ve done a fantastic job. I will certainly
    digg it and in my view suggest to my friends. I’m sure they will be benefited
    from this web site.

Leave a Reply