volto-cookiebot: Volto add-on
npm install @codesyntax/volto-cookiebotAn addon to integrate Cookiebot in a Volto site
Add @codesyntax/volto-cookiebot to your project dependencies and to the addons list.
Set your cookiebot project id in the volto settings:
``jsx
const applyConfig = (config) => {
config.settings = {
...config.settings,
cookiebotDomainGroupId: 'xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx',
};
return config;
};
export default applyConfig;
`
Cookiebot will be added to your site using the appExtras` mechanism of Volto.
This addon also provides a Block that renders the cookie declaration page that is created automatically by Cookiebot. You can add it wherever your site needs to have the cookie declaration page.