Skip to content

Latest commit

 

History

History
28 lines (19 loc) · 816 Bytes

README.md

File metadata and controls

28 lines (19 loc) · 816 Bytes

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 -->