This page includes the information needed to get the Qookies.js plugin as well as the Cookies.fo consent banner configured.
The Quick Start section shows how to get the appropriate plugins configured. In order to use the Cookies.fo consent banner, an API key is required.
The Qookies plugin consists of three script files:
The scripts should be included in the above order, whereas the Qookies.js script should be
the first
script in the <head>. The other remaining scripts can be added anywhere but should be
kept in a above order
<html>
<head>
<script src="https://cookies.fo/qookies/v1.1/latest.js"></script>
<script src="https://cookies.fo/api/v2/config?api_key=[YOUR_API_KEY]"></script>
<script defer src="https://cookies.fo/api/v2/consent?api_key=[YOUR_API_KEY]"></script>
<!-- rest of page -->
</head>
<!-- your body -->
</html>
Qookies
The Qookies.js plugin exposes a global Qookies object, which serves as an entry-point to query
or
control
the cookie consent.
There are (as of version 1.1+) four cookie categories:
To check the consent value for a category, simply check the value of the corresponding category in the Qookies
object:
Qookies.preferencesQookies.statisticsQookies.marketing