Free Lightweight Cookie Notice Script for Websites with Themes
Getting started with CookieNotice.js is very simple. There is no registration or sign up required in order to use it. Go to the main website here and then download the bundle. Right now there are 3 methods to install this script on your websites.
- Server it Internally: The main script file is available to download. You can just put it on your server and add its path in the respective HTML files where you wish to display the cookie notice.
- Serve it from External Source: If you want, then you can opt to serve the script from an external source, say a free CDN. Or, you can use the script link that Cookie Notice website provides.
- Install the Bundle Package: In the other two methods, you have to install the code in 3 different parts of the HTML. If you don’t want to do that, then you can just embed the bundle instead in the footer. This is just one liner method to install Cookie Notice script.
Depending on what methods, you choose, you can just get on with it. I have a WordPress website so I decided to install it via the 3rd method, that is by embedding the bundle file. So, if you also have WordPress, then open “footer.php” from theme editor and add the following line just before the closing of </body> tag.
Now, just save the changes and then visit the homepage. You will see the newly added Cookie Notice badge at the bottom of the website. You can see it in action in the first screenshot that I added in the beginning.
This is how you can use this simple lightweight script on any website. The above guide will help you install it on any kind of website. Just follow the steps carefully and in the end up, you will end up having a simple, beautiful cookie notice that will not disrupt the webpage design as well user flow journey.