PHPackages                             datareporter/module-webcare - 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. datareporter/module-webcare

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

datareporter/module-webcare
===========================

Magento2 module to embed DataReporter WebCare elements (imprint, privacy notice, cookie banner)

2.0.0(3mo ago)025.2k↓58%2[1 issues](https://github.com/datareporter-gmbh/module-webcare/issues)MITPHP

Since Feb 21Pushed 3mo ago4 watchersCompare

[ Source](https://github.com/datareporter-gmbh/module-webcare)[ Packagist](https://packagist.org/packages/datareporter/module-webcare)[ RSS](/packages/datareporter-module-webcare/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependencies (6)Versions (27)Used By (0)

DataReporter WebCare Magento2 Module
====================================

[](#datareporter-webcare-magento2-module)

[![Magento 2](https://camo.githubusercontent.com/a318399b393b9abc759d1a1fd1c06be1e064f081554132b6b14d9d6a92e7d3bc/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4d6167656e746f2d2533453d322e322d626c75652e737667)](https://camo.githubusercontent.com/a318399b393b9abc759d1a1fd1c06be1e064f081554132b6b14d9d6a92e7d3bc/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4d6167656e746f2d2533453d322e322d626c75652e737667)[![PHP >= 7.0.13](https://camo.githubusercontent.com/8626448a95c7041cb8e2ecfd72eb1281269c71c9f77481e06024a410cb804fe5/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048502d2533453d372e302e31332d677265656e2e737667)](https://camo.githubusercontent.com/8626448a95c7041cb8e2ecfd72eb1281269c71c9f77481e06024a410cb804fe5/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048502d2533453d372e302e31332d677265656e2e737667)

Magento2 module to embed DataReporter WebCare elements (imprint, privacy notice, cookie banner)

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

[](#installation)

The easiest way to install the extension is to use [Composer](https://getcomposer.org/).

Run the following commands:

- `$ composer require datareporter/module-webcare`
- `$ bin/magento module:enable DataReporter_Core` (if not already installed and enabled)
- `$ bin/magento module:enable DataReporter_WebCare`
- `$ bin/magento setup:upgrade && bin/magento setup:static-content:deploy`

Features
--------

[](#features)

### Imprint

[](#imprint)

Use class `\DataReporter\WebCare\Block\ImprintBlock` or embedd into CMS-Page/Block as Widget named 'WebCare - Imprint'

### Privacy Notice

[](#privacy-notice)

Use class `\DataReporter\WebCare\Block\PrivacyNoticeBlock` or embedd into CMS-Page/Block as Widget named 'WebCare - Privacy Notice'

### Cookie Banner

[](#cookie-banner)

All needed blocks are placed within the layout-xml `default.xml`.

If you need to add correct cookie handling if something was denied or allowed, contribute a js content to the container

`datareporter.webcare.cookiebanner.allow-handling` or `datareporter.webcare.cookiebanner.deny-handling`

#### Configuration

[](#configuration)

- URL for the Webcache-Server, normally this is  if the DataReporter-Suite is not self hosted
- Add Store configured language to the resource calls to override any other default language settings in DataReporter
- En-/Disabling of the Imprint-, Privacy Notice- and Cookie-Banner-Block to seperatelly controll if they are used
- En-/Disabling of Cookie Banner Custom Options, the default is no, as the standard method delivered by DataReporter are handling the denying of cookies quite well.

[![alt configuration](docs/images/configuration.png)](docs/images/configuration.png)

#### Loader Mode (CSP/SRI compliant)

[](#loader-mode-cspsri-compliant)

The Loader Mode enables full compliance with strict [Content Security Policy (CSP)](https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP) and [Subresource Integrity (SRI)](https://developer.mozilla.org/en-US/docs/Web/Security/Subresource_Integrity) requirements. Instead of loading the cookie banner script directly from the WebCache server, the Loader Mode uses a dedicated Loader script that handles all resource loading in a CSP-compatible way.

When Loader Mode is active:

- The cookie banner is loaded via the Loader script instead of direct banner files
- The separate CSS head block and custom options block are automatically suppressed
- Imprint and Privacy Notice render only the target `` container (the Loader injects content)
- An optional SRI hash can be configured to enforce script integrity verification

Configuration options under `Stores -> Configuration -> DataReporter -> Settings -> WebCare`:

OptionDescriptionDefault**Loader Mode (CSP/SRI compliant)**Enable/disable Loader ModeDisabled**Loader URL**Base URL for the Loader script`https://webcachex-eu.datareporter.eu/loader/v5/cmp-load.js`**Loader Integration Key** *(optional)*WebCare Integration Key for the Loader. If empty, auto-generated from Client ID, Organisation ID and Website ID—**SRI Hash**Subresource Integrity hash for the Loader script. Leave empty to disable SRIPre-configured default hashThe Integration Key is automatically derived from your existing DataReporter configuration (`{client_id}.{organisation_id}.{website_id}`) if not explicitly set.

Example of the rendered script tag with SRI enabled:

```

```

#### Example

[](#example)

- Widget selection within a CMS-Page/Block:

[![alt widget selection](docs/images/widget_selection.png)](docs/images/widget_selection.png)

- Enhancing cookiebanner functions:

Create your own module or adapt your themes `default.xml` and add following block instruction:

```

```

Content of `test.phtml`:

```
console.log('current status for cookies('+chosenBefore+'): '+status);

```

This will output the status of the cookie banner user interaction and all according actions and adaptions can be made to comply with the GDPR according to cookies

Adding a custom redirect handling:

In the extended cookie banner with the corresponding selection of different pages (e.g. for languages) a callback function can be registered. This is used in Magento to correctly redirect the user to the according storeview with magento internal redirects (to correctly set and transfer data from one storeview to another). This feature can be activated in the configuration: `Stores -> configuration -> DataReporter -> Settings -> WebCare -> Enable Cookie Banner custom redirect after consent`

Custom behavior can be added by disabling the default block and adding a custom one with another logic:

```

```

#### Demo

[](#demo)

Use following Demo-Credentials if you wanna try out the module, see `Privacy -> Configuration`

- Client-Id: 33f002cc-2586-42b6-987d-548b2953c7b8
- Organisation-Id: R5spy6ZYDqA

###  Health Score

52

—

FairBetter than 96% of packages

Maintenance81

Actively maintained with recent releases

Popularity28

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity71

Established project with proven stability

 Bus Factor1

Top contributor holds 78.7% 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 ~107 days

Recently: every ~186 days

Total

25

Last Release

102d ago

Major Versions

1.3.11 → 2.0.02026-03-23

### Community

Maintainers

![](https://www.gravatar.com/avatar/5d56febfba4f5d551b02c43b8da5f99c7027f24f0f070f3a2a48b03cdb0e8b75?d=identicon)[e-conomix](/maintainers/e-conomix)

---

Top Contributors

[![rosenberger-e-conomix](https://avatars.githubusercontent.com/u/47806105?v=4)](https://github.com/rosenberger-e-conomix "rosenberger-e-conomix (37 commits)")[![brosenberger](https://avatars.githubusercontent.com/u/2969243?v=4)](https://github.com/brosenberger "brosenberger (5 commits)")[![rflatti](https://avatars.githubusercontent.com/u/143484201?v=4)](https://github.com/rflatti "rflatti (3 commits)")[![avoelkl](https://avatars.githubusercontent.com/u/1798594?v=4)](https://github.com/avoelkl "avoelkl (2 commits)")

---

Tags

magento2-modulemagneto2composer-installermagento2data privacy

### Embed Badge

![Health badge](/badges/datareporter-module-webcare/health.svg)

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

###  Alternatives

[magepal/magento2-googletagmanager

Google Tag Manager (GTM) for Magento 2 with Advance Data Layer

2691.6M5](/packages/magepal-magento2-googletagmanager)[run-as-root/magento2-prometheus-exporter

Magento2 Prometheus Exporter

68357.9k](/packages/run-as-root-magento2-prometheus-exporter)[magepal/magento2-reindex

Reindex your Magento2 store quickly and easily from backend/admin, instead of command line.

111705.0k1](/packages/magepal-magento2-reindex)[myparcelnl/magento

A Magento 2 module that creates MyParcel labels

1860.2k](/packages/myparcelnl-magento)[yireo/magento2-extensionchecker

Scan the code of a Magento module

96166.3k3](/packages/yireo-magento2-extensionchecker)[smile/module-store-locator

Smile Store Locator

50533.0k5](/packages/smile-module-store-locator)

PHPackages © 2026

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