Skip to content

GMX9/gmx-cookie-consent

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GDPRCOOKIE JS LIBRARY V1.0.1 Awesome

A free Cookie Consent JS Library built according to the RGPD Data Policy.

How to use

Load this in your header:

<!-- COOKIE CONSENT -->
<link rel="stylesheet" type="text/css" href="cookie-consent.css" />
<script src="cookie-consent.js"></script>
<script>
// Fill the variables with your info    
let cookie_consent = new CookieConsent("Your privacy message","Accept","Decline","Privacy Policy Text","#link-to-policy");


if(cookie_consent.getStatus() == true){
   // Consent Given, load all tracking below
   
}else{
   // Consent Denied, you can't track the user
        
}    
</script>

<!-- COOKIE CONSENT -->

About

Cookie Consent JS Library

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published