@webiny/app-cookie-policy
v5.2.1
Published
Renders a simple cookie policy info banner on your website.
Downloads
25
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 { plugins } from "@webiny/plugins";
import cookiePolicyPlugins from "@webiny/app-cookie-policy/admin";
plugins.register(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 { plugins } from "@webiny/plugins";
import cookiePolicyPlugins from "@webiny/app-cookie-policy/render"
plugins.register(cookiePolicyPlugins);
Renders cookie policy banner. Use in your public website.