maisondunet / module-gtm-cookie-consent
A simple cookie consent module for magento. It relies on new GTM consent functionality.
Installs: 1 777
Dependents: 0
Suggesters: 0
Security: 0
Stars: 7
Watchers: 3
Forks: 4
Open Issues: 1
Type:magento2-module
Requires
- php: >=7.4
- magento/framework: >=103.0.0
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
Plugin Options
Auto Clear Option
Storage Options
Storages descritpions are described in GTM documentation
Advanced Options
This functionality allow the administrator to tigger custom GTM event on user consent.
ie :