PHPackages                             maisondunet/module-gtm-cookie-consent - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. maisondunet/module-gtm-cookie-consent

ActiveMagento2-module[Utility &amp; Helpers](/categories/utility)

maisondunet/module-gtm-cookie-consent
=====================================

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

v1.1.0(1y ago)149.5k↑289.1%3[1 issues](https://github.com/MdnAgency/magento-cookie-consent/issues)OSL-3.0PHPPHP &gt;=7.4

Since Jan 30Pushed 1y ago4 watchersCompare

[ Source](https://github.com/MdnAgency/magento-cookie-consent)[ Packagist](https://packagist.org/packages/maisondunet/module-gtm-cookie-consent)[ Docs](https://github.com/MdnAgency/magento-cookie-consent)[ RSS](/packages/maisondunet-module-gtm-cookie-consent/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (1)Versions (14)Used By (0)

Simple Cookie Consent module for Magento built around new consent feature of GTM
================================================================================

[](#simple-cookie-consent-module-for-magento-built-around-new-consent-feature-of-gtm)

This module is a wrapper for [cookie-consent by 68publishers](https://github.com/68publishers/cookie-consent) 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
====================

[](#integration-with-gtm)

This module leverage the new consent functionality of Google Tag Manager (see [GTM Consent documentation](https://support.google.com/tagmanager/answer/10718549) 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](https://support.google.com/tagmanager/answer/10718549#consent-overview))

Installation
============

[](#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)

Module configuration is located at :

Stores &gt; Configuration &gt; General &gt; Cookie Consent

Global Options
--------------

[](#global-options)

FieldDescriptionEnable ModuleEnable / Disable the modulePlugin Options
--------------

[](#plugin-options)

FieldDescriptionCookie NameName of the cookie used to store user consentForce user consentBlock the UI until user actionManage page scriptManaged inline script (see [cookie-consent documentation](https://github.com/orestbida/cookieconsent#how-to-blockmanage-scripts)Auto Clear Option
-----------------

[](#auto-clear-option)

FieldDescriptionEnable ModuleAutomatically clear cookie when the user remove it consentStorage Options
---------------

[](#storage-options)

Storages descritpions are described in [GTM documentation](https://support.google.com/tagmanager/answer/10718549#consent-types)

FieldDescriptionEnable by DefaultThis storage is enable by defaultDisplay in widgetThis storage visible in setting popupRead onlyDeny the user to change the default valueAdvanced Options
----------------

[](#advanced-options)

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

ie :

Event NameStoragesOperatorResultfb\_pixel\_eventAds, AnalyticsAndGTM event "fb\_pixel\_event" is trigger when user give consent for Ads and Analytics storagesDevelopment
-----------

[](#development)

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

###  Health Score

40

—

FairBetter than 86% of packages

Maintenance43

Moderate activity, may be stable

Popularity36

Limited adoption so far

Community16

Small or concentrated contributor base

Maturity53

Maturing project, gaining track record

 Bus Factor2

2 contributors hold 50%+ of commits

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~74 days

Recently: every ~111 days

Total

12

Last Release

433d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/8d290cb41ca8c7b71b0f892056cbb181b68fd10a33db495b459e69c17a14dac9?d=identicon)[vberthet](/maintainers/vberthet)

---

Top Contributors

[![hgati](https://avatars.githubusercontent.com/u/6913728?v=4)](https://github.com/hgati "hgati (6 commits)")[![CamilleBochard](https://avatars.githubusercontent.com/u/101818645?v=4)](https://github.com/CamilleBochard "CamilleBochard (4 commits)")[![Aerue](https://avatars.githubusercontent.com/u/1088341?v=4)](https://github.com/Aerue "Aerue (2 commits)")[![vberthet](https://avatars.githubusercontent.com/u/1115715?v=4)](https://github.com/vberthet "vberthet (2 commits)")[![DevLoris](https://avatars.githubusercontent.com/u/14888671?v=4)](https://github.com/DevLoris "DevLoris (1 commits)")

---

Tags

cookie-consentgdprmagento2magento2-extensionmagento2-extension-freemagento2-modulemagento2-module-freemagentogdprmagento2cookie-consent

### Embed Badge

![Health badge](/badges/maisondunet-module-gtm-cookie-consent/health.svg)

```
[![Health](https://phpackages.com/badges/maisondunet-module-gtm-cookie-consent/health.svg)](https://phpackages.com/packages/maisondunet-module-gtm-cookie-consent)
```

###  Alternatives

[opengento/module-gdpr

Gdpr Compliance Module for Magento 2

14686.0k](/packages/opengento-module-gdpr)[run-as-root/magento2-prometheus-exporter

Magento2 Prometheus Exporter

68357.9k](/packages/run-as-root-magento2-prometheus-exporter)[myparcelnl/magento

A Magento 2 module that creates MyParcel labels

1860.2k](/packages/myparcelnl-magento)[baldwin/magento2-module-less-js-compiler

Allows Magento 2 to compile less files using the less nodejs compiler

2350.9k](/packages/baldwin-magento2-module-less-js-compiler)[mage-os/module-llm-txt

AI-powered LLMs.txt generation for Magento 2 / Mage-OS stores. Help AI systems understand your store with OpenAI-generated content.

234.0k](/packages/mage-os-module-llm-txt)[opengento/module-category-import-export

This module add the capability to import and export the categories from the back-office.

1310.9k2](/packages/opengento-module-category-import-export)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
