PHPackages                             kingfisherdirect/magento2-cookieconsent - 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. kingfisherdirect/magento2-cookieconsent

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

kingfisherdirect/magento2-cookieconsent
=======================================

v0.2.0(1y ago)11.4k↓50%MITJavaScript

Since Mar 12Pushed 2mo ago2 watchersCompare

[ Source](https://github.com/kingfisherdirect/magento2-cookieconsent)[ Packagist](https://packagist.org/packages/kingfisherdirect/magento2-cookieconsent)[ RSS](/packages/kingfisherdirect-magento2-cookieconsent/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (2)DependenciesVersions (3)Used By (0)

Cookie Consent for Magento 2 Integration
========================================

[](#cookie-consent-for-magento-2-integration)

> This Magento 2 module integrates the popular [CookieConsent](https://github.com/orestbida/cookieconsent) script into your Magento store, allowing you to comply with cookie consent regulations and enhance user privacy.

Important

Installation and using this module requires programming knowledge. This is nowhere near a module you'd expect for Magento 2. All configuration happens programmatically and there is no admin configuration at all!

Installation
------------

[](#installation)

```
composer require kingfisherdirect/magento2-cookieconsent
```

```
bin/magento setup:upgrade
```

Configuration
-------------

[](#configuration)

Note

This module requires **Configuration / General / Web / Defalt Cookie Settings / Cookie Restriction mode** to be **disabled**

Once module is installed you'll have to configure it with the services your website uses.

In order to do so, copy the config file into the theme dedicated to your website only.

```
cp vendor/kingfisherdirect/magento2-cookie-consent/view/frontend/web/js/cookieconsent.config.js app/design/YourCompany/YourTheme/KingfisherDirect_CookieConsent/web/js/
```

Then follow [Configuration Reference](https://cookieconsent.orestbida.com/reference/configuration-reference.html) to adjust configuration to make banner match your needs.

Making script respecting the choice made in banner is something that needs to be done manually and carefully. This is on per-script/service basis.

Google gtag
-----------

[](#google-gtag)

This module includes small change for Google gtag, since it's included by default in Magento and is commonly used. By default the consent is sent to denied as per [consent mode documentation](https://developers.google.com/tag-platform/security/guides/consent?consentmode=advanced)

```
gtag('consent', 'default', {
    'ad_storage': 'denied',
    'ad_user_data': 'denied',
    'ad_personalization': 'denied',
    'analytics_storage': 'denied',
    'wait_for_update': 500,
});
```

###  Health Score

33

—

LowBetter than 75% of packages

Maintenance65

Regular maintenance activity

Popularity21

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity32

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

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 ~331 days

Total

2

Last Release

459d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/13ef32eef650c9bddea30c304036ba5bf091f051be75c05e0abb3aad6628a7e1?d=identicon)[lumnn](/maintainers/lumnn)

---

Top Contributors

[![lumnn](https://avatars.githubusercontent.com/u/2505114?v=4)](https://github.com/lumnn "lumnn (6 commits)")

### Embed Badge

![Health badge](/badges/kingfisherdirect-magento2-cookieconsent/health.svg)

```
[![Health](https://phpackages.com/badges/kingfisherdirect-magento2-cookieconsent/health.svg)](https://phpackages.com/packages/kingfisherdirect-magento2-cookieconsent)
```

###  Alternatives

[marcosh/lamphpda

A collection of functional programming data structures

12313.5k4](/packages/marcosh-lamphpda)[malarzm/collections

Various implementations of Doctrine's Collection interface

2368.1k](/packages/malarzm-collections)[nben/filament-record-nav

Next/Previous record navigation for Filament PHP

105.0k](/packages/nben-filament-record-nav)

PHPackages © 2026

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