maisondunet/module-gtm-cookie-consent 问题修复 & 功能扩展

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

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

maisondunet/module-gtm-cookie-consent

Composer 安装命令:

composer require maisondunet/module-gtm-cookie-consent

包简介

A simple cookie consent module for magento. It relies on new GTM consent functionality.

README 文档

README

This module is a wrapper for cookie-consent by 68publishers for easy cookie consent management withGoogle Tag Manager

  • ✅ Easy configuration
  • ✅ Five configurable storages standardized by Google
  • ✅ Possibility to trigger custom GTM event on the consent

Integration with GTM

This module leverage the new consent functionality of Google Tag Manager (see GTM Consent documentation for more information)

The consent functionality isn't enabled by default in GTM therefore you need to manually enable that feature in your Google Tag Manager dashboard. (see GTM documentation)

Installation

To install the Magento 2 GTM Cookie consent, simply run the command below:

composer require maisondunet/module-gtm-cookie-consent

To enable the module:

bin/magento module:enable Maisondunet_CookieConsent

Module configuration

Module configuration is located at :

Stores > Configuration > General > Cookie Consent

Global Options

Field Description
Enable Module Enable / Disable the module

Plugin Options

Field Description
Cookie Name Name of the cookie used to store user consent
Force user consent Block the UI until user action
Manage page script Managed inline script (see cookie-consent documentation

Auto Clear Option

Field Description
Enable Module Automatically clear cookie when the user remove it consent

Storage Options

Storages descritpions are described in GTM documentation

Field Description
Enable by Default This storage is enable by default
Display in widget This storage visible in setting popup
Read only Deny the user to change the default value

Advanced Options

This functionality allow the administrator to tigger custom GTM event on user consent.

ie :

Event Name Storages Operator Result
fb_pixel_event Ads, Analytics And GTM event "fb_pixel_event" is trigger when user give consent for Ads and Analytics storages

Development

Since v1.1.0, this module use a fork of cookie-consent by 68publishers available at https://github.com/MdnAgency/gtm-cookie-consent This fork customizes the translation loader for easier integration with magento.

统计信息

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

GitHub 信息

  • Stars: 14
  • Watchers: 4
  • Forks: 3
  • 开发语言: PHP

其他信息

  • 授权协议: OSL-3.0
  • 更新时间: 2023-01-30

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固