Without wasting anytime let's get straight to the Main Point. In-order to add a cookie consent notification bar in your Blog, you need to complete 2 processes which are given below. Follow them and be patient.
# | PROCESS # 1 |
---|---|
1 | Go into your Theme's EDIT HTML |
2 | Search </head> |
3 | Now Copy & Paste the below code before </head> |
<link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/cookieconsent@3/build/cookieconsent.min.css" />
# | PROCESS # 2 |
---|---|
4 | Now stay there and Search </body> |
5 | After finding it, Copy the below code & Paste it before </body> |
<script src="https://cdn.jsdelivr.net/npm/cookieconsent@3/build/cookieconsent.min.js" data-cfasync="false"></script>
<script>
window.cookieconsent.initialise({
"palette": {
"popup": {
"background": "#000"
},
"button": {
"background": "#f1d600"
}
},
"position": "bottom-right",
"content": {
"message": "This website uses cookies to ensure you get the best experience.",
"href": "https://policies.google.com/technologies/cookies?hl=en-US"
}
});
</script>
Step #6: Just Save it.
HOW TO CHECK THAT IT WORKED OR NOT?
1. Visit your Website from your Current Browser2. or Visit your Website from your Browser's incognito mode ‧ (RECOMMENDED)