Skip to content

uanacy/EasyCookies

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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/[email protected]/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>

About

A customizable cookie consent banner library for websites.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 49.3%
  • TypeScript 41.1%
  • HTML 9.6%