webiny-app-cookie-policy
v1.0.2
Published
Renders a simple cookie policy info banner on your site.
Downloads
2
Readme
webiny-app-cookie-policy
Renders a simple cookie policy info banner on your site. Powered by Cookie Consent (https://cookieconsent.insites.com/).
Use together with webiny-api-cookie-policy package.
Install
npm install --save webiny-app-cookie-policy
Or if you prefer yarn:
yarn add webiny-app-cookie-policy
Note: the webiny-api-cookie-policy is also required.
Setup
To setup, you must register a set of plugins. For more information on plugins, please visit Webiny documentation.
Admin
import cookiePolicyPlugins from "webiny-app-cookie-policy/admin"
import { registerPlugins } from "webiny-plugins";
registerPlugins(cookiePolicyPlugins);
Enables management of cookie policy settings, which can be accessed via Settings section in the main menu. Here you can edit things like banner position, colors and labels.
Site
import cookiePolicyPlugins from "webiny-app-cookie-policy/render"
import { registerPlugins } from "webiny-plugins";
registerPlugins(cookiePolicyPlugins);
Renders cookie policy banner. Use in your public website.