Skip to content

DigiHold/DigiConsent

Repository files navigation

DigiConsent - Cookie Consent & Compliance

Professional cookie consent solution for WordPress with advanced analytics and customization options.

Features

Core Features

  • Simple Setup - Install & configure in seconds
  • Full User Control - Users can manage and revoke consent at any time
  • Mobile Responsive - Optimized for all screen sizes
  • SEO Friendly - No impact on page performance or SEO
  • WCAG & ADA Compliant - Fully accessible design

Design & Customization

  • 3 Layout Options
    • Full-width banner (top or bottom)
    • Side banner (left or right)
    • Full-screen modal
  • Fully Customizable
    • Upload custom logo
    • Custom colors and fonts
    • Edit all text content

Cookie Management

  • 4 Cookie Categories
    • Necessary (always active)
    • Analytics
    • Marketing
    • Functional
  • Flexible Script Blocking - Control which scripts load with consent
  • Consent Expiration - Set custom expiration periods
  • Renew Consent - Prompt users when policy changes

Integrations

  • Google Tag Manager (GTM)
  • Google Analytics (GA4 & Universal Analytics)
  • Meta Pixel (Facebook Pixel)
  • Language-Specific Scripts - Different scripts per language (WPML/Polylang)

Advanced Features

  • Consent Logging - Stores user consent for compliance proof
  • Geo-location - Show banner to specific countries (EU, Canada, etc.)
  • iFrame Blocker - Blocks YouTube, Vimeo, Google Maps until consent
  • Analytics Dashboard - Charts and stats showing consent rates
  • Export/Import Settings - Easy migration between sites
  • Cookie Declaration - Declare all cookies used on your site

Developer Features

  • Clean, well-documented code
  • WordPress coding standards compliant
  • PHP 7.4+ and PHP 8+ optimized
  • Modern JavaScript (ES6+)
  • Hooks and filters for customization
  • RESTful API endpoints

Installation

  1. Upload the digiconsent folder to /wp-content/plugins/
  2. Activate the plugin through the 'Plugins' menu in WordPress
  3. Go to DigiConsent > Settings to configure

Configuration

Basic Setup

  1. Navigate to DigiConsent > Settings
  2. Choose your banner layout (bottom, top, side, or fullscreen)
  3. Customize the heading and description text
  4. Set button labels and order

Integrations Setup

  1. Go to DigiConsent > Settings > Integrations
  2. Add your tracking IDs:
    • Google Tag Manager ID (GTM-XXXXXXX)
    • Google Analytics ID (G-XXXXXXX or UA-XXXXXXX)
    • Meta Pixel ID
  3. For multi-language sites, add different IDs per language

Geo-location Setup

  1. Enable geo-location in Settings > Advanced
  2. Select countries (EU, specific countries, etc.)
  3. Banner will only show to visitors from selected regions

Development

Build Assets

npm install
npm run build

Watch for Changes

npm run watch

Code Standards

The plugin follows WordPress PHP Coding Standards (PHPCS).

Requirements

  • WordPress 6.0 or higher
  • PHP 7.4 or higher
  • Modern browser with JavaScript enabled

Browser Support

  • Chrome (latest)
  • Firefox (latest)
  • Safari (latest)
  • Edge (latest)
  • Mobile browsers (iOS Safari, Chrome Mobile)

Compliance

This plugin helps with Consent, CCPA, and other privacy regulations by:

  • Obtaining explicit consent before setting cookies
  • Logging consent for proof of compliance
  • Allowing users to revoke consent
  • Blocking scripts until consent is given
  • Providing cookie declaration

Note: This plugin is a tool to help with compliance. You are responsible for ensuring your overall compliance with applicable laws.

Support

For support, please visit DigiHold Support

Changelog

1.0.0

  • Initial release
  • Cookie consent banner with 3 layout options
  • Full customization (colors, text, buttons)
  • GTM, GA, Meta Pixel integrations
  • Consent logging system
  • Geo-location support
  • iFrame blocker
  • Analytics dashboard
  • Export/import settings
  • WCAG/ADA accessibility

Credits

Developed by DigiHold

License

GPL v2 or later

About

No description, website, or topics provided.

Resources

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors