Skip to content

Latest commit

 

History

History
31 lines (22 loc) · 1.07 KB

File metadata and controls

31 lines (22 loc) · 1.07 KB

Build Status Downloads

🍪 EasyCookies 🍪

A customizable cookie consent banner library for websites.

EasyCookies

Usage

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>