承接 kingfisherdirect/magento2-cookieconsent 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

kingfisherdirect/magento2-cookieconsent

最新稳定版本:v0.2.0

Composer 安装命令:

composer require kingfisherdirect/magento2-cookieconsent

包简介

README 文档

README

This Magento 2 module integrates the popular CookieConsent script into your Magento store, allowing you to comply with cookie consent regulations and enhance user privacy.

Important

Installation and using this module requires programming knowledge. This is nowhere near a module you'd expect for Magento 2. All configuration happens programmatically and there is no admin configuration at all!

Installation

composer require kingfisherdirect/magento2-cookieconsent
bin/magento setup:upgrade

Configuration

Note

This module requires Configuration / General / Web / Defalt Cookie Settings / Cookie Restriction mode to be disabled

Once module is installed you'll have to configure it with the services your website uses.

In order to do so, copy the config file into the theme dedicated to your website only.

cp vendor/kingfisherdirect/magento2-cookie-consent/view/frontend/web/js/cookieconsent.config.js app/design/YourCompany/YourTheme/KingfisherDirect_CookieConsent/web/js/

Then follow Configuration Reference to adjust configuration to make banner match your needs.

Making script respecting the choice made in banner is something that needs to be done manually and carefully. This is on per-script/service basis.

Google gtag

This module includes small change for Google gtag, since it's included by default in Magento and is commonly used. By default the consent is sent to denied as per consent mode documentation

gtag('consent', 'default', {
    'ad_storage': 'denied',
    'ad_user_data': 'denied',
    'ad_personalization': 'denied',
    'analytics_storage': 'denied',
    'wait_for_update': 500,
});

统计信息

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

GitHub 信息

  • Stars: 1
  • Watchers: 2
  • Forks: 0
  • 开发语言: JavaScript

其他信息

  • 授权协议: MIT
  • 更新时间: 2024-03-11