WPThumbs
Themes Plugins By purpose By industry Best-of lists Fix it guides
Free Plugin by kamilpesekubkcz v1.1.1

Easy cookie consent

This plugin implements https://github.com/orestbida/cookieconsent/ solution and stores consents in custom database table. Google Tag Manager consent m …

Easy cookie consent

The facts

Rating
5★ from 2
Active installs
100+
Price
Free
Last updated
13 Jun 2022
Added
Jan 2022
Requires WP
5.3
Tested up to
WP 6.0.14
Requires PHP
7.4
Downloads
2,349

Our analysis

AI-assisted

Easy Cookie Consent is a WordPress plugin designed to help websites comply with cookie consent regulations, such as GDPR. It implements a solution that stores user consents in a custom database table and supports Google Tag Manager consent mode by default. The plugin allows for various customisations through filters and hooks, enabling you to adjust cookie settings based on user roles and modify JavaScript options.

Best for: This plugin is suitable for website owners who need to manage cookie consent in compliance with GDPR.

What it does well

  • Implements a cookie consent solution from GitHub
  • Stores consents in a custom database table
  • Supports Google Tag Manager consent mode
  • Allows customisation through filters and hooks

Where it falls short

  • Limited information on additional features
  • Directory score indicates potential areas for improvement

Verdict

Easy Cookie Consent provides a straightforward solution for managing cookie consents, but its limited information may require users to explore further for specific needs.

From the developer

kamilpesekubkcz's own description of Easy cookie consent, lightly tidied.

This plugin implements https://github.com/orestbida/cookieconsent/ solution and stores consents in custom database table.

Google Tag Manager consent mode is supported by default. ad_storage & anaylytics_storage are set to denied by default.

Filters/hooks

Set for which WordPress role cookie settings will be available:

add_filter('easy_cookie_consent/options_capability', static function ($optionsCapability) {
    return 'custom_capability';
});

Adjust options passed to Javascript. See https://github.com/orestbida/cookieconsent/#all-configuration-options

add_filter('easy_cookie_consent/javascript_options', static function ($cookieConsentOptions) {
    $cookieConsentOptions['cookie_domain'] = '.example.com';
    return $cookieConsentOptions;
});

Disable autorun:

add_filter('easy_cookie_consent/autorun', static function ($autorun) {
    return false;
});


// call easy_show_cookie_consent() when needed
if (function_exists('easy_show_cookie_consent')) {
    easy_show_cookie_consent();
}

Actions

Add custom/service Javascripts to page and control them by cookie consent:

add_action('easy_cookie_consent/add_app_scripts', static function () {
    if (wp_get_environment_type() === 'production') {
        ?>
        <script>
            ...
        </script>

        <script type="text/script-template" data-cookiecategory="analytics">
            ...
        </script>

        <script type="text/script-template" data-cookiecategory="marketing">
            ...
        </script>
        <?php
    }
});

iframes

Change <iframe> tag to <div> and prefix attributes with data-
– data-iframe-cookie-needed – cookie category needed for iframe
– data-iframe-placeholder-url – url to placeholder image which will be used instead for iframe content

Example:

<div
   title="Google Map"
   data-iframe-cookie-needed="analytics"
   data-iframe-placeholder-url="https://www.example.com/map_placeholder.png"
   style="width:100%;min-height:400px"
   data-frameborder="0"
   data-src="https://www.google.com/maps/embed?pb=!1m18!1m12!1m3!1d82507.32058738587!2d13.30188385000431!3d49.74178702400929!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x470af1e5133d11b7%3A0x31b9406e3fc10b83!2sPilsen!5e0!3m2!1sen!2scz!4v1641891569357!5m2!1sen!2scz"
   >
</div>

Read the full description on the official page →

Tagged as

Alternatives

Other plugins for privacy compliance.

CookieYes

Cookie banner, cookie consent and cookie notice plugin for GDPR and CCPA. Auto cookie blocking, Consent Mode v...

Free 1M+ installs 4.8★ (3,228)
Smash Balloon Social Photo Feed

Formerly &quot;Instagram Feed&quot;. Display clean, customizable, and responsive Instagram feeds from multiple...

Free 1M+ installs 4.9★ (4,350)
Cookie Compliance for WordPress

Consent management platform for WordPress — GDPR, CCPA &amp; ePrivacy cookie consent, autoblocking, consent re...

Free 900k+ installs 4.8★ (3,025)
Burst Statistics

Simple, lightweight WordPress analytics with privacy-friendly visitor tracking. Cookieless and GDPR-ready. Set...

Free 200k+ installs 4.9★ (183)
Complianz

Configure your own Terms and Conditions specific to your service or webshop.

Free 300k+ installs 4.9★ (184)