About Cookie Management Banner
Cookie management banner allows users to manage tracking cookies.
Markup modules that are called upon to generate or parse markup (like HTML). Markup modules are most often used on the front-end of a site (rather than admin).
Close to stable, but users are advised to be cautious and test thoroughly.*
|Date Added||June 29, 2018|
|Last Updated||December 26, 2018|
This module's files should be placed in /site/modules/CookieManagementBanner/
How to install or uninstall modules
This module adds a cookie management banner for GDPR compliance.
The user can accept all cookies or they can choose to not accept tracking/marketing cookies.
Module config options allow you to:
- define all text and button labels (multi-language support)
- option to limit display of banner to users only in European Union (by IP address)
- option to auto accept based on any interaction from the user with the site
- position selection (top or bottom overlay, or content pushed down from the top)
It comes with basic default styling which is easily overwritten by site CSS
The module sets various values to the dataLayer array which works together with Google Tag Manager - please read through the code in /assets/js/CookieManagementBanner.js to get a better idea of how this works and what is made available for GTM.
You can wrap your tracking/marketing cookie code in a check for the localstorage key of: pwcmbAllowCookies
if(localStorage.getItem('pwcmbAllowCookies') == 'y')
You can also provide a link on your site (probably in the footer) like this that will allow the user to show the banner even after they have saved their preferences / accepted.
<a href="#cookies" class="js-pwcmb-notice-toggle">Manage Your Cookies</a>
NOTE: AdBlockPlus and other browser adblockers may prevent users from seeing the banner. This is not considered a bug and currently there are no plans to attempt to "fix" this.
For support for this module, please visit this thread on the ProcessWire forum: https://processwire.com/talk/topic/19525-cookie-management-banner/
It is recommended to install via the ProcessWire admin Modules > Site > Add New > Add Module from Directory using the
CookieManagementBanner class name.
This program is free software; you can redistribute it and/ormodify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public Licensealong with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
(See included LICENSE file for full license text.)
No comments yet. Be the first to post!
Your e-mail is kept confidential and not included with your comment. Website is optional.
- Admin Helpers
- Core Modules
- Development Tools
- Field Types
- Input Fields
- Language Modules
- Language Packs
- Markup Generation
- Premium Modules
- Process Modules
- Proof of Concept
- Site Profiles
- Social, Feeds, Services
- Text Formatters
- Other Modules
- Users and Access
*Use modules at your own risk. There are no guarantees or warranties. It is recommended that you backup your site and database before installing new modules.