Skip to content

Take consent from user to allow cookies in your webpage

License

Notifications You must be signed in to change notification settings

webriddler/cookie-consent.gihub.io

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Cookies Consent

Add Consent form in your website.

Paste the following <script> tag in the body section of your html template.

<script async type="text/javascript" src="https://cdn.jsdelivr.net/gh/dev3058/cookie-consent@[latest-version]/dist/script.js"></script>

Note: Don't forget to replace `[latest-version]` with current commit hash.

Do you know?

As per the GDPR and ePrivacy Directive, a website must ask its users' consent to use cookies that are not necessary for accessing the website's functionality. These cookies need consent because they collect user data for their purposes. According to the law, collecting data without users' consent is unlawful.