Blame | Last modification | View Log | Download
# PrivacyWireProcessWire module for Privacy- & Cookie-Management (GDPR)This module adds management options for cookie groups and corresponding script tags.[ProcessWire Module Directory](https://modules.processwire.com/modules/privacy-wire/)[Support Forum](https://processwire.com/talk/topic/23118-privacywire-cookie-management-async-external-asset-loading/)[Git Repo](https://github.com/blaueQuelle/privacywire/)[Download Module](https://github.com/blaueQuelle/privacywire/archive/master.zip)## The aim & working mechanism of this moduleThis modules outputs a cookie management banner (nearly unstyled, that's up to you) with the possibility for the user to:1. Accept all cookies2. Accept only necessary cookies3. Choose, which cookie categories the user wants to allow1. necessary2. statistics3. external media4. marketingAfter the user made his decision, script tags of these categories can be loaded subsequently.```<script type="text/plain" data-type="text/javascript" data-category="statistics" data-src="/path/to/your/script.js"></script>```or inline:```<script type="text/plain" data-type="text/javascript" data-category="statistics">console.log("Statistic Cookies are allowed!");</script>```Also other tags can be loaded that way, but this feature is not thoroughly tested yet:``<img type="text/plain" data-category="marketing" data-src="https://via.placeholder.com/300x300">``## TextformatterIf you want the user to allow to change the cookie consent, use the following Textformatter:```[[privacywire-choose-cookies]]```## Inspiration & Thank youThis module is heavily inspired by the following repos (big thanks!):- https://github.com/webmanufaktur/CookieManagementBanner- https://github.com/johannesdachsel/cookiemonster- https://github.com/KIProtect/klaro## Changelogsee [CHANGELOG.md](CHANGELOG.md)