When I started developing and blogging on Matrixread, I was exploring to add more features and user-friendly experience. Then I got to know about the Cookie Consent and GDPR Compliance. Initially, I was searching for some plugins for WordPress, and there were a good amount of open-source plugins. But, I felt a plugin was too much for a simple blogging site like mine where I barely use any tracking scripts, actually, I use only Google Analytics.
The 1 KB Cookie Consent
I started Googling stuff like, “Light-weight Cookie Notification”, etc, and then I found this, “I made a 1 KB alternative to Cookie Notice WordPress Plugin” by Gijo Varghese. Works on both Mobile and Desktop.
I changed some colors and gave smooth corners, works well on both mobile and desktop, here’s the codepen.
Note: All the code shared above and discussions are applicable to all kinds of websites.
Actual Working Cookie Consent
There are many options to become GDPR compliant, we can create and even host our own analytic software. At present, most of the websites and analytics are not GDPR compliant, maybe in a while, we’ll see privacy friendly analytics and websites. Until then it’s our duty to protect our data.