GDPR Cookie Consent (emdash-privacy)

EmDash 的 GDPR Cookie 同意:带主题的明暗双模式横幅(德语/英语),支持 Google Consent Mode v2 和 GPC,由 c15t 驱动。同意证明存储在你自己的 D1 数据库中。

插件

GDPR Cookie Consent (emdash-privacy)

EmDash 的 GDPR Cookie 同意:带主题的明暗双模式横幅(德语/英语),支持 Google Consent Mode v2 和 GPC,由 c15t 驱动。同意证明存储在你自己的 D1 数据库中。

  • 分类: 安全
  • 状态: 可用
  • 版本: 0.1.0
  • 价格: 未知
  • 来源: npm 软件包
  • 安装方式: npm 原生集成
  • 核实日期: 2026-11-01

EmDash 的 GDPR Cookie 同意:带主题的明暗双模式横幅(德语/英语),支持 Google Consent Mode v2 和 GPC,由 c15t 驱动。同意证明存储在你自己的 D1 数据库中。

安装

从 npm 安装该软件包:

npm install emdash-privacy

在 Astro 配置中注册该插件:

// astro.config.mjs
import { privacyPlugin } from "emdash-privacy";

emdash({
  plugins: [privacyPlugin()],
});

详细信息