Cookie 栏位

Cookie 是在您访问网站时发送到您设备上的小文本文件。它们由您的浏览器处理和存储,包含您的访问信息,如登录数据、位置、语言等。Cookie 主要有两种类型:

  • 必要 cookie,确保网站正常运行;

  • 非必要或可选 cookie,用于分析您的行为或显示广告。

Example of a cookies bar with the popup layout.

数据保护法(如`GDPR <https://gdpr.eu>`_)要求通知用户有关数据收集及其方法和目的的信息。Cookies 条形码通常用于以用户友好和透明的方式履行这一义务。它们在用户首次访问时立即显示,告知用户网站使用 Cookie,并让用户决定是否要在其设备上存储非必要的 Cookie。

配置

要在您的 Odoo 网站上启用 cookie 栏,请访问 网站 ‣ 配置 并在 隐私 部分启用 Cookies 栏位

您可以 自定义 Cookie 栏位外观 和 :ref:` 编辑相关 Cookie 政策页面的内容 <cookies-bar/policy>`。

定制化

要调整 cookie 栏的显示方式,请单击 编辑,然后在面板底部的 不可见元素 中选择 Cookies 栏 构建块。使用编辑面板中 自定义 选项卡的选项对其进行自定义。有三种 布局 可用:

  • Discrete: thin bar

  • Classic: banner

  • Popup: you can change the popup’s Position to the Top, Middle, or Bottom of the screen.

您还可以:

  • 修改 cookie 栏的 大小 参数;

  • 启用 背景 功能,当屏幕上显示 cookie 栏时,背景中的页面将变灰;

  • further customize the appearance of the cookies bar using Block and/or Column customization options, which are available after clicking anywhere in the building block.

要编辑 cookie 栏的内容(即同意信息),请直接点击构建模块。

Odoo Website's edit panel to customize the cookies bar.