A tiny script you can include in your site that creates a cookie consent popup the first time a user visits it.
There are to ways to use this script:
- Using a CDN
- Hosting the file yourself
In order to use cookie-consent via a cdn, include one of the flolowing <script>
tags at the bottom of <body>
element in your HTML page:
<script src="https://cdn.jsdelivr.net/gh/edazpotato/cookie-consent@latest/cookie-consent.js"></script>
In order to host cookie-consent yourself:
- download the latest release from
the packages pagefrom this repo - upload the file to your web server
- reference it at the bottom of your
<body>
tag like this:
<script src="/path/to/file/cookie-consent.js"></script>