How to add a cookie consent notification in Blogger?

Have you ever seen such types of notifications while browsing sites from your PC, laptop, or mobile??

Ever wondered why you see this??

Or

why is it important to use these kinds of popup notifications being a website or blog owner?

So, let's start exploring the answers to your questions.



According to the European Union (EU) laws, website owners have to give EU visitors information about cookies used on the website. What kind of data is collected and how it is used. In many cases, these laws also require websites to obtain consent from visitors.

It is considered a crime there if websites do not provide such information or do not take the user's consent. So it very important to have such popup cookie consent notifications.

As a preventive measure, this rule is followed all over the world. And it is the outcome of this rule only that we come across such notifications.

Now, lets now start learning how to do this.

How to add a cookie consent notification in Blogger?

  • Log in to your Blogger account.
  • Click to "layout" in the left menu.
  • Click to "Add a gadget".
  • Choose "HTML/javascipt" gadget
  • Paste the following code and then click to "save".
  • You can place this gadget anywhere.
<link rel="stylesheet" type="text/css" href="//cdnjs.cloudflare.com/ajax/libs/cookieconsent2/3.0.3/cookieconsent.min.css" />
<script src="//cdnjs.cloudflare.com/ajax/libs/cookieconsent2/3.0.3/cookieconsent.min.js"></script>
<script>
window.addEventListener("load", function(){
window.cookieconsent.initialise({
  "palette": {
    "popup": {
      "background": "#252e39"
    },
    "button": {
      "background": "#14a7d0"
    }
  },
  "theme": "edgeless",
  "position": "bottom-right"
})});
</script>




This will display a pop-up cookie consent notification at the lower right corner.







If you want to customize this pop-up cookie consent notification and want to apply your own cookie consent notification changes like changing the text, position, type, link URL, etc you can do that easily.

Without coding knowledge, you can do this with Osano, one of the most popular cookie consent management software. Osano serves more than 750,000 websites across the web. It is the most trusted cookie consent manager. which can help you out in generating your codes and placing them in a very easy way.


How to use a cookie consent code generator?


  • Go to the link osano
  • Log in for free.
  • Start customization.
  • Choose a position like banner bottom, banner top, floating right or left, etc
  • Choose a layout from block, wire, classic, edgeless.
  • Choose a theme.
  • Edit link URL: you can add a link to your cookie policy page if you have.If you don't have then leave it to use the default link.
  • You can customize the popup cookie consent notification text message and colour.
  • Copy the code generated as per your settings.


For more information, you can read support.Google



Hope you have successfully set up your own popup cookie consent notification for your website or blog.if you have any problem let me know in the comment section or you can contact me




You Might Also Like

0 comments

recent posts

Contact Form

Name

Email *

Message *