How do I install it?
Simply copy and paste the code snippet below into your website. The banner will automatically appear on page load and persist the users selection across subsequent sessions.
<script src="https://cookies.so/v1/basic/sdk.js"></script> <script> window.BetterCookies.init({ policyLink: '#', onInit: function () { }, onAccept: function () { }, }) </script>
Configuration
Option | Description |
---|---|
policyLink | If present, we will embed a link to your internal cookie or privacy policy. |
onInit | This callback will fire once the cookie banner has been initialised. |
onAccept | This callback will fire once the user has clicked on "accept". |
Advanced
Coming soon
Coming soon users will be able to opt-in to specific cookie groups (e.g. functional, marketing, statistics) so you will have more granular control over cookie consent.
You will also be able to track key metrics such:
- What type of cookies are being enabled
- How many users have opted-in
- How many users have opted-out
- How many users ignore the prompt