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

ActiveNeos-package[Utility &amp; Helpers](/categories/utility)

kaufmanndigital/cookieconsent
=============================

A ready-to-run Neos CMS Package, that adds Cookie Consent to your Neos-Site

1.5.3(6y ago)1413.8k—0%4MITHTML

Since Apr 9Pushed 6y ago2 watchersCompare

[ Source](https://github.com/KaufmannDigital/KaufmannDigital.CookieConsent)[ Packagist](https://packagist.org/packages/kaufmanndigital/cookieconsent)[ Docs](https://www.kaufmann.digital)[ RSS](/packages/kaufmanndigital-cookieconsent/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (1)Versions (21)Used By (0)

KaufmannDigital.CookieConsent
=============================

[](#kaufmanndigitalcookieconsent)

A ready-to-run package, that integrates [Cookie Consent](https://cookieconsent.insites.com/) into your [Neos CMS](https://www.neos.io) site.

We have created a new package with many more functions, inline maintenance and even easier configuration. 🎉
Have a look at [KaufmannDigital.GDPR.CookieConsent](https://github.com/KaufmannDigital/KaufmannDigital.GDPR.CookieConsent).

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

[](#installation)

The easiest way to install is via composer:

```
composer require kaufmanndigital/cookieconsent
```

Afterwards, you should see the Cookie Hint on your page.

To configure the policy-link, you have the following two options:

- Add the NodeType-Mixin `KaufmannDigital.CookieConsent:PolicyPageMixin` to your Home-NodeType (if you have a specific NodeType for home):

    ```
      'Your.Package:Document.Home':
        superTypes:
          'Neos.Neos:Document': true
          'KaufmannDigital.CookieConsent:PolicyPageMixin': true
          ...
    ```

    After that, simply select the policy page in your Neos backend.
- Or use this snippet in your `Settings.yaml`:

    ```
      KaufmannDigital:
        CookieConsent:
          #Global configuration of PolicyPage
          policyPageNode: 'c7a91aa8-fbac-4c24-8326-102eb7307180' #UUID of global page you want to link

          #Configuration per site for multisite installations
          #Replace site1/site2 with your sitename (/sites/sitename/node-a2ufd/.../)
          policyPageNodes:
            site1: 'c7a91aa8-fbac-4c24-8326-102eb7307180' #UUID of policy-page for /sites/site1
            site2: '454d85b6-289b-11e9-b210-d663bd873d93' #UUID of policy-page for /sites/site2
    ```

*Congratulations, you added Cookie Consent to your Neos CMS page. That was easy, right?*

Changing the text
-----------------

[](#changing-the-text)

The content inside Cookie Consent is managed via translations. If you want to change it, copy the `Packages/Application/KaufmannDigital.CookieConsent/Resources/Private/Translations` folder into your Site-Package and add this configuration to `Settings.yaml`:

```
KaufmannDigital:
  CookieConsent:
    translations:
      package: 'Vendor.Package'
      source: 'Main'
```

From now, the translation from your package (in this example "Vendor.Package") will be used.

Translations for German and English are provided by this package. We are happy to get translations for your language via Pull-Request.

Changing layout &amp; colors
----------------------------

[](#changing-layout--colors)

You can also change colors and position. To do so, you have to add this snippet to `Settings.yaml`:

```
KaufmannDigital:
  CookieConsent:
    position: 'bottom' # bottom, bottom-left, bottom-right, top, top-left or top-right
    theme: 'block' # block, classic, or edgeless
    layout: 'basic' # basic, basic-close or basic-header
    palette:
      popup:
        background: '#000' #like in css
        text: 'white' #like in css
      button:
        background: 'rgb(255, 0, 0)' #like in css
        text: '#fff' #like in css
```

You don't have to override all values. Just pick what you want to change. More configuration-options can be found at [cookieconsent.insites.com](https://cookieconsent.insites.com)

Using Opt-In or Opt-Out
-----------------------

[](#using-opt-in-or-opt-out)

In order to use Opt-In or Opt-Out functionality, you have to activate it in Settings:

```
KaufmannDigital:
  CookieConsent:
    type: 'opt-in' #Or 'opt-out' (depending on what you want to do)
```

Afterwards, you can listen to the `kd-cookieconsent` event in JavaScript to en-/disable cookies:

```
document.addEventListener("kd-cookieconsent", function (e) {
    if (e.detail === 'enable-cookies') {
        //Enable your cookies here
        //For Google Analytics:
        window['ga-disable-UA-'] = false;
    } else if (e.detail === 'disable-cookies') {
        //Disable your cookies here
        //For Google Analytics:
        window['ga-disable-UA-'] = true;
    }
});
```

Compile JS &amp; CSS into your own files
----------------------------------------

[](#compile-js--css-into-your-own-files)

If you don't want this Package to include it's own JS and CSS, you can disable it with in `Settings.yaml`:

```
KaufmannDigital:
  CookieConsent:
    includeJavaScript: false
    includeCss: false
```

If you do so, you have to include JS &amp; CSS of Cookie Consent in your files. [Instructions can be found here](https://github.com/insites/cookieconsent/#installation)

FAQs
----

[](#faqs)

- Cookie Consent isn't shown in Backend.
    - It's a feature, not a bug ;-)

Known Bugs
----------

[](#known-bugs)

Known Bugs are submitted as issue. Please have a look at it, before you supply a bug you found. You did a bugfix? Great! Please submit it as PR to share it with other users.

Planned Features
----------------

[](#planned-features)

Planned functions are also created as issues and marked as such. You have another idea? Or would you like to help with the implementation? Gladly! Simply create new issues or PRs.

Maintainer
----------

[](#maintainer)

This package is maintained by [Kaufmann Digital](https://www.kaufmann.digital). Feel free to send us your questions or requests to

License
-------

[](#license)

Licensed under MIT, see [LICENSE](LICENSE)

###  Health Score

39

—

LowBetter than 86% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity32

Limited adoption so far

Community16

Small or concentrated contributor base

Maturity72

Established project with proven stability

 Bus Factor1

Top contributor holds 88.1% 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 ~42 days

Recently: every ~106 days

Total

19

Last Release

2192d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/1ec6c2ae665e40ee04396a70c824f37be27b5f98330b66c18256ebd21dfb52b5?d=identicon)[kaufmanndigital](/maintainers/kaufmanndigital)

---

Top Contributors

[![Nikdro](https://avatars.githubusercontent.com/u/9807101?v=4)](https://github.com/Nikdro "Nikdro (37 commits)")[![grebaldi](https://avatars.githubusercontent.com/u/2522299?v=4)](https://github.com/grebaldi "grebaldi (2 commits)")[![Benjamin-K](https://avatars.githubusercontent.com/u/3098031?v=4)](https://github.com/Benjamin-K "Benjamin-K (1 commits)")[![ComiR](https://avatars.githubusercontent.com/u/11410095?v=4)](https://github.com/ComiR "ComiR (1 commits)")[![simonschaufi](https://avatars.githubusercontent.com/u/941794?v=4)](https://github.com/simonschaufi "simonschaufi (1 commits)")

---

Tags

cookieinsitesneoscms

### Embed Badge

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

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

###  Alternatives

[sitegeist/monocle

An living-styleguide for Neos that is based on the actual fusion-code

45315.9k10](/packages/sitegeist-monocle)[sitegeist/kaleidoscope

Responsive-images for Neos

29352.4k10](/packages/sitegeist-kaleidoscope)[flowpack/listable

Tiny extension for listing things

35209.0k7](/packages/flowpack-listable)[kaufmanndigital/gdpr-cookieconsent

A ready-to-run package, that integrates an advanced cookie consent banner into your Neos CMS site.

2540.7k](/packages/kaufmanndigital-gdpr-cookieconsent)[neos/seo

SEO configuration and tools for Neos

13990.5k24](/packages/neos-seo)[shel/neos-colorpicker

A plugin for Neos CMS which provides a colorpicker editor

1494.4k6](/packages/shel-neos-colorpicker)

PHPackages © 2026

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