A customizable cookie consent banner library for websites.
Add this code to your html <head>
tag:
<script src="https://cdn.jsdelivr.net/gh/EasyCookies/EasyCookies@0.0.2/easyCookies.min.js"></script>
Then initialize the banner by adding the following code to you html <body>
tag:
<script>
window.easyCookiesBanner = new EasyCookies.Banner({
scripts: {
gtag: '<your_google_analytics_tag>'
}
});
window.easyCookiesBanner.init();
</script>