webiny-integration-cookie-policy
v1.9.6
Published
Renders a simple cookie policy info banner. Powered by Cookie Consent (https://cookieconsent.insites.com/).
Downloads
6
Readme
webiny-integration-cookie-policy
Renders a simple cookie policy info banner. Powered by Cookie Consent (https://cookieconsent.insites.com/).
Installation
yarn add webiny-integration-cookie policy
Setup
To setup, you must register a set of plugins. For more information on plugins, please visit Webiny documentation.
API
import cookiePolicyPlugins from "webiny-integration-cookie-policy/plugins/api"
import { registerPlugins } from "webiny-plugins";
registerPlugins(cookiePolicyPlugins);
Exposes necessary GraphQL fields for updating integration settings.
Admin
import cookiePolicyPlugins from "webiny-integration-cookie-policy/plugins/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-integration-cookie-policy/plugins/render"
import { registerPlugins } from "webiny-plugins";
registerPlugins(cookiePolicyPlugins);
Renders cookie policy banner. Use in your public website.