convergine/craft-cookie-buddy 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

convergine/craft-cookie-buddy

Composer 安装命令:

composer require convergine/craft-cookie-buddy

包简介

Cookie Buddy is a CraftCMS 4 and 5 plugin for managing cookie consent and privacy preferences, with support for Google Consent Mode v2.

README 文档

README

Screenshot

A CraftCMS 4 & 5 plugin for simple and effective cookie management. Supports Google Consent Mode v2 parameters, ensuring compliance by sending consent data to Google when users accept cookies. Easily manage cookie preferences while improving data tracking transparency.

Features

  • Cookie Consent Popup Easily enable a cookie consent popup for your CraftCMS 4 or 5 site. Inform users about cookie usage and allow them to make informed choices.

  • Google Consent Mode v2 Support Automatically send consent signals to Google Analytics based on user preferences—crucial for privacy compliance and accurate data tracking.

  • Fully Customizable UI Customize the popup title, description, layout (box or banner), position (e.g. bottom-right), footer links, and button styling to match your brand.

  • Granular Preferences Control Provide individual descriptions for required, performance, and targeting cookies. Help users understand what each cookie category does.

  • User-Friendly Setup Configure everything through a clean, intuitive settings panel inside the CraftCMS control panel. No coding required.

Requirements

  • Craft CMS 4.0.0/5.0.0 or later
  • PHP 8.0.2 or later
  • Google Analytics integration in place (custom code or through other plugin)

Installation

You can install this plugin from the Plugin Store or with Composer.

From the Plugin Store

  1. Go to the Plugin Store in your project’s Control Panel.
  2. Search for Cookie Buddy”.
  3. Click on the “Install” button in the plugin's modal window.

With Composer

Open your terminal and run the following commands:

# Navigate to your project directory
cd /path/to/my-project.test

# Require the plugin via Composer
composer require convergine/craft-cookie-buddy

# Install the plugin via Craft CLI
./craft plugin/install craft-cookie-buddy

Configuration

After installation, navigate to the plugin settings and enable the popup/google options as well as configure the look & feel of the consent window.

If enabling passing consent information to Google - make sure that your site already has Google Analytics integration code in place, as our plugin does not

For resetting cookies, you can add a <button> with the ID cookiebuddy-reset and class cc-hidden anywhere in your template. For example:

<button id="cookiebuddy-reset" class="cc-hidden">Clear Cookies</button>

Roadmap

  • Design Customization Options: Ability to further modify the look and feel of the consent popups.

  • Translations Support: Enable option to translate the popups contents to all languages enabled in Craft instance.

  • Multi-Site Controls: Choose which multi-site to display the consent on.

  • Design Themes: Add pre-made design themes for popups.

Support

For any issues or questions, you can reach us by email at info@convergine.com or by opening an issue on GitHub.

Credits

Portions of the cookie consent functionality are based on the work of Orest Bida, © 2020–present, and used under the MIT License.

convergine/craft-cookie-buddy 适用场景与选型建议

convergine/craft-cookie-buddy 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 65 次下载、GitHub Stars 达 1, 最近一次更新时间为 2025 年 05 月 06 日, 在 PHP 生态内属于活跃度较高的组件。

它主要适用于以下技术方向: 「privacy」 「craftcms」 「cookie-consent」 「gdpr」 「craftcms-plugin」 「user-consent」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。

我们在过去多个企业项目中使用过 convergine/craft-cookie-buddy 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。

围绕 convergine/craft-cookie-buddy 我们能提供哪些服务?
定制开发 / 二次开发

基于 convergine/craft-cookie-buddy 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。

BUG 修复 & 性能优化

线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。

项目外包 & 长期维护

承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。

yvsm@zunyunkeji.com QQ:316430983 微信:yvsm316 西安尊云信息科技 · 专注 PHP / Go / 分布式系统研发

统计信息

  • 总下载量: 65
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 29
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 1
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: proprietary
  • 更新时间: 2025-05-06