maisondunet/module-gtm-cookie-consent

一个简单的magento cookie同意模块。它依赖于新的GTM同意功能。

1.0.9 2024-05-22 07:34 UTC

This package is auto-updated.

Last update: 2024-09-22 08:24:18 UTC


README

本模块是68publishers的cookie-consent的包装,用于通过Google Tag Manager轻松管理cookie同意

  • ✅ 简单配置
  • ✅ 五种由Google标准化的可配置存储
  • ✅ 在同意时触发自定义GTM事件的可能性

与GTM集成

此模块利用了Google Tag Manager的新同意功能(有关更多信息,请参阅GTM同意文档

在GTM中默认未启用同意功能,因此您需要在Google Tag Manager仪表板中手动启用该功能。(请参阅GTM文档

安装

要安装Magento 2 GTM Cookie同意,只需运行以下命令

composer require maisondunet/module-gtm-cookie-consent

要启用模块

bin/magento module:enable Maisondunet_CookieConsent

模块配置

模块配置位于

商店 > 配置 > 一般 > Cookie同意

全局选项

插件选项

自动清除选项

存储选项

存储描述请参阅GTM文档

高级选项

此功能允许管理员在用户同意时触发自定义GTM事件。

例如