PHPackages                             team23/module-simplecookie - 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. team23/module-simplecookie

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

team23/module-simplecookie
==========================

TEAM23 SimpleCookie

1.0.3(3y ago)065GPL-3.0LessPHP ~8.1

Since Apr 29Pushed 1y ago2 watchersCompare

[ Source](https://github.com/team23/magento-module-simplecookie)[ Packagist](https://packagist.org/packages/team23/module-simplecookie)[ Docs](https://www.team23.de/)[ RSS](/packages/team23-module-simplecookie/feed)WikiDiscussions master Synced 1mo ago

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

TEAM23 SimpleCookie
===================

[](#team23-simplecookie)

SimpleCookie extension for Magento 2 by Team23

This module shows a modal window in which the visitor has to choose between the cookie purposes that will be set when using the shop. In order to access the website, the customer must at least accept the "essential" cookies. The visitors choice itself will be saved in a cookie, which has a default lifetime of 30 days, but can be set in the settings.

Configuration &amp; use
-----------------------

[](#configuration--use)

### Visitors options:

[](#visitors-options)

- 'Essential': all Magento 2 essential cookies
- 'Marketing': Google Analytics code (Magento\_GoogleAnalytics) -&gt; the code will be unset analogously to Magento2 CookieRestrictionMode (see [Magento 2 Cookie Restriction Mode](https://docs.magento.com/m2/ce/user_guide/stores/compliance-cookie-restriction-mode.html))

### Cookie configuration options:

[](#cookie-configuration-options)

- Information messages: for each purpose the message can be set or removed
- Cookie Lifetime: the default lifetime the settings will be saved

### Magento 2 Widgets

[](#magento-2-widgets)

There are two Magento 2 widgets:

- `cookie-opt-out` - allows opt-out entirely, this will remove the settings cookie and therefore the autoopening modal will shows again
- `cookie-configuration` - allows changing the configuration options

Important Notes
---------------

[](#important-notes)

This is a very simple implementation and is probably not enough to fulfill every GDPR/EU-ePrivacy rule entirely.
Only the default Magento 2 Google Analytics module is currently supported

Developing custom add-ons
-------------------------

[](#developing-custom-add-ons)

It is possible to reuse the Cookie that stores the visitors settings.
Therefore one can use the `simpleCookieHelper` jquery widget and its public methods defined in `Team23_SimpleCookie/js/simple-cookie`.

Installation via Composer
-------------------------

[](#installation-via-composer)

- Add satis.team23.de composer repository in your composer.json

```
composer config repositories.team23 composer https://satis.team23.de/
```

- Require team23/module-simplecookie

```
composer require team23/module-simplecookie ^dev-master
```

Troubleshooting:
----------------

[](#troubleshooting)

- > The analytics-js source is still not visible/visible in inspector after acceptance changes

    The modal settings will be saved immediately. However, the insertion or removal of the corresponding script tag within the DOM will only take effect after one refresh or site change.
- > The analytics-js source is not visible at all, independently of the changes in the modal settings.

    Make sure you have enabled Google Analytics in the Magento 2 settings: Stores -&gt; Configuration -&gt; Sales -&gt; Google API -&gt; Google Analytics
    Also make sure you have cleared the caches.

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance27

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity68

Established project with proven stability

 Bus Factor1

Top contributor holds 90% 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 ~312 days

Total

4

Last Release

1270d ago

PHP version history (3 changes)1.0.0PHP ~7.2

1.0.1PHP ~7.4|~8.1

1.0.3PHP ~8.1

### Community

Maintainers

![](https://www.gravatar.com/avatar/ce34ef5862574f47aad7affd7af09fd2e199def1e905577dbfba06542ce122fa?d=identicon)[team23](/maintainers/team23)

---

Top Contributors

[![BenOchocki](https://avatars.githubusercontent.com/u/146002771?v=4)](https://github.com/BenOchocki "BenOchocki (9 commits)")[![Emanuel-23](https://avatars.githubusercontent.com/u/48509424?v=4)](https://github.com/Emanuel-23 "Emanuel-23 (1 commits)")

---

Tags

cookiegdprmagento 2

### Embed Badge

![Health badge](/badges/team23-module-simplecookie/health.svg)

```
[![Health](https://phpackages.com/badges/team23-module-simplecookie/health.svg)](https://phpackages.com/packages/team23-module-simplecookie)
```

###  Alternatives

[statikbe/laravel-cookie-consent

Cookie consent modal for EU

213396.7k](/packages/statikbe-laravel-cookie-consent)[codingfreaks/cf-cookiemanager

Manage cookies, scripts, and GDPR compliance on your Typo3 website with CodingFreaks Typo3 Cookie Manager. Customize cookie banners, streamline workflow, and enhance user experience. Ensure GDPR compliance and take control of cookie management with our Typo3 cookie management extension. Visit the official Typo3 Documentation page to learn more.

1625.8k](/packages/codingfreaks-cf-cookiemanager)[albertborsos/yii2-gdpr-cookie-consent

GDPR compatible Cookie Consent widget allows the user to choose which kind of cookies they want to accept.

1124.3k1](/packages/albertborsos-yii2-gdpr-cookie-consent)[bramdeleeuw/cookieconsent

GDPR compliant cookie bar and consent checker

1511.5k2](/packages/bramdeleeuw-cookieconsent)

PHPackages © 2026

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