Open MikeFoden opened 1 year ago
hi, a cookie marked as is_functional
always will be downloaded.
so using the example:
items:
- title: Google Anaytics (functional)
description: This code gives us insight into the number of people that visit our website, where they are from and what they are clicking on.
is_functional: true
script_file: ga.js
- title: Crisp chat
description: This code gives users the option to chat directly with us through a chat box in the bottom right corner.
is_functional: false
script_file: crisp.js
will load ga.js
but not crisp.js
. crisp.js
will only be loaded if approved.
So afaik it works as intended
Based on https://hugocodex.org/add-ons/cookie-consent/#manage-consent linking to the
main/layouts/partials/consent.html
file, I've noticed the following:consent-settings
cookie is storedI've tried this using the example provided (with a
ga.js
in mystatic/js
folder) and it is loaded every time.