Customise Blogger Cookies Notification Bar
Blogger automatically adds a cookies notification bar if your blog is created over blogger.com. This cookie notification bar is only shown if your blog is viewed in European countries.
This bar comes up as a follow-up GDPR which stands for General Data Protection Regulation and is Data Protection Law in the EU, which comes into account from May 2018.
The name of the GDPR is used to give citizens of control over their personal data and change the approach of organizations across the world towards data privacy. The GDPR provides much stronger rules than existing laws and is much more restrictive than the "EU Cookies Law".
So it is compulsory for visitors from Europe to confirm that the data can be collected there must be a clear privacy policy showing what data is going to be stored, how it is going to be used and provide the user right to withdraw the consent to use of personal data if required.
As I have told you that this blogger cookies notification bar only shows in European countries but if you want to see this cookies notification bar in your country if it is not in the European Nation then Go To your blog address and add ?gl=[countrycode] code after the URL of your blog in the URL Search Bar. Now your complete URL will look like this https://example.blogspot.com?gl=nl.
You can customize the message shown in the cookies notification bar, its link which is to be opened when user clicks on it enter text of buttons shown in that notification bar.
Demo of blogger cookies notification bar:
If you are willing to see the demo of this blogger cookies notification bar I am going to show you the demo.
The Blogger cookie notification bar looks something like the one below. If you want to customize the text or message shown in that cookie notification bar use the following steps to do that.
To customise this cookies notification bar:
- Go to Blogger Dashboard
- Go to Theme/Template Section
- Click Edit HTML
- Now search for </head>
- Save Theme/Template
Copy the code provided below and paste it just above the closing head tag ( </head> ).
<script type="text/javascript">
cookieOptions = {
msg: "This site uses cookies from Google to deliver its services, to personalise ads and to analyse traffic. Information about your use of this site is shared with Google. By using this site, you agree to its use of cookies.",
link: "https://www.blogger.com/go/blogspot-cookies",
close: "Okay!",
learn: "Learn More" };
</script>
This is complete information about the variables used in this cookies notification bar with their descriptions respectively.
Variable | Description |
---|---|
msg | Specify the text to be shown as a message for this variable. |
link | This variable holds the link to be opened when the user clicks on Learn More Button on the cookies notification bar. |
close | This will be the text of close button. |
learn | This variable contains the text to be shown for the learning more button. |
To Disable or remove this Cookie Notification Bar:
If you want to remove this cookies notification bar from your blogger blog if you don't want to show anything in this cookies notification bar use the following code instead of the above code.
<script type="text/javascript">
cookieOptions = {};
</script>
To change the location of the cookies notification bar:
By default the location of this cookies notification bar is at the top of the page but if you want to change or customize the location of this cookies notification bar to the bottom you can use the code which is provided below.
<style>
.cookie-choices-info {position: fixed; top: auto !important; bottom: 0px !important;}
</style>
From where this information is collected:
This information is collected from Google Blogger help web page if you want to read more about it go to this link. https://support.google.com/blogger/answer/6253244?hl=en
Conclusion:
So I hope that you are able to remove or customize the blogger cookies notification bar after reading this article I hope that this article will be helpful for you.
Be The First To Comment