maisondunet/module-gtm-cookie-consent

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

1.0.9 2024-05-22 07:34 UTC

This package is auto-updated.

Last update: 2024-07-22 07:56:53 UTC


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 :