Magento Adobe Commerce Magento 2 Cookie Consent Mode V2 2 ANOWAVE 0 9 7 7 1 1 Magento 2 ™ €79 90

Magento 2 Cookie Consent Mode V2

  • In Stock
  • Price:
  • €79 90
  • SKU:
  • Premium product
  • Add to Cart

Automated consent extension for Magento 2 that supports Consent Mode V2. Obtains and Communicates the user’s consent choice to Google.

It comes with full support for Google Consent, Google Consent Mode V2 and Google Tag Manager. Super flexible extension with ton of built-in options including automatic cookie detection, text/color and theme customization.

Core Web Vitals (LCP/INP/CLS/FCP/FID) optimized, minimal and lightweight yet powerful solution for GDRP/CookieLaw Compliance.

Hyvä Theme support, Composer support

Built for Magento 2

Adds a consent popup window in visitor browser allowing them to grant or deny cookies, customize their cookie preferences and provide informed decition on cookie usage.

Users are provided with clear and visible dialog window letting them know that you use cookies, why you use them, and what types.

The consent popup is designed to show minimal initial information in order to provide unobtrusive appearance and speed up cookie choice selection. But it also provides ability to let visitors customize their choice regarding allowed and/or denied types of cookies.

Flexible and mobile friendly cookie widget.


Multiple options supported

We have designed the module to allow for multiple customizations including both visual and texts. You can adjust text color, backround color, sticky icon color including usage of gradients, different links and texts, animated checkboxes icons and more. You can set border radius, select shadow usage and much more.


Google Consent Mode V2

The extension provides full support of Google Consent Mode V2, it supports ALL consent mode types as follows:

Enables storage, such as cookies (web) or device identifiers (apps), related to advertising.
Sets consent for sending user data to Google for online advertising purposes.
Sets consent for personalized advertising.
Enables storage, such as cookies (web) or device identifiers (apps), related to analytics, for example, visit duration.
Enables storage that supports the functionality of the website or app, for example, language settings
Enables storage related to personalization, for example, video recommendations
Enables storage related to security such as authentication functionality, fraud prevention, and other user protection


Cookie Consent extension for Magento 2 with full support for Consent Mode, Consent Mode V2, automatic cookie blocking and more.


Key features

  • Google Consent Mode support
  • Google Consent Mode V2 support
  • Google Tag Manager dataLayer[] support
  • Fully customizable directly from configuration
  • Color/Text customizations from configuration
  • PageSpeed optimization (LCP/INP/CLS/FCP/FID metrics optimized)
  • Automatic or manual cookie classification
  • Manual script blocking
  • Automatic script blocking
  • Responise design
  • Sticky cookie consent widget support with advanced SVG icons for perfect display
  • Fully customizable texts
  • Multiple positioning
  • Does not rewrite existing blocks, modules and controllers.
  • Does not add additional product attributes.
  • Does not modify existing attribute sets.
  • Does not require additional loaders, decoders and software to operate normally.
  • No monthly fees.


Magento platform version
2.* EE,2.2.*,2.3.*,2.4.*
Conversion rate,Reporting,Administration
Latest version

All our products come with a 6 full months (180 days) of premium support. To report a bug, use our Premium Help Desk available in your account at Anowave.

Customer review(s)

No product reviews yet. Be the first to write a review.

Note: By submitting a review you agree to our Terms and Conditions.

User Guide & Documentation

Installation from Command Line

This extension can be installed in a few minutes, by going through the following steps:

  • Download/purchase the extension
  • Unzip the file in a temporary directory
  • Copy directory contents and paste it in your Magento installation root directory. This extension will not replace existing code or file structure
  • Enter the following at the command line:

    php bin/magento setup:upgrade
    php bin/magento setup:static-content:deploy (only if site is in production mode)


Installation and updating with Composer

You can install this extension via Composer only after purchasing a Composer support package

  • Run the following Composer commands

    composer require anowave/package
    composer require anowave/consent

    bin/magento setup:upgrade
    bin/magento setup:static-content:deploy (only if site is in production mode)


Cookie Consent Configuration

Google Consent Mode V2 configuration

If you use Google Consent mode for your tags and/or have Additional Consent Checks you need to edit your GA4 Configuration tag (Google Tag) and change it's trigger from All Pages to Event Equals Cookie Consent Granted. This will allow this tag to fire whenever consent is granted. Otherwise, the tag will fire on all subsequent requests therefore you will lose the initial HIT.

Testing Consent Mode / GDRP features involves the following steps:

1. Hit F12 in your browser, then go to Console -> Storage and remove any cookies  prefixed 'cookie' e.g. 'cookieConsentGranted' etc.
2. Go to Console -> Local Storage and remove 'consentMode' value
3. Once done, put GTM in Preview mode and refresh your site.
4. Accept cookies and check if GA4 Configuration (Google Tag) is firing.
5. Optionally (as a developer) you can check Console -> Network requests for any requests to

Also when checking browser requests in the F12 -> Console -> Network tab, you can inspect 1 important parameter:

gcs - Encodes the current state of the user’s consent. The gcs parameter always begins with “G1” and is followed by two other digits, either 1 or 0. The G1 is a constant that indicates that the parameter is a GA4 consent mode parameter, so the first 1 doesn’t tell us anything.

G100     No consent has been granted.
G110     Google Ads has consent, Google Analytics does not.
G101     Google Analytics has consent, Google Ads does not.
G111     Both Google Ads and Google Analytics have consent.


3rd PARTY Consent Configuration

The feature provides a mechanism to include third party script into consent mode compliance. To do so, you need to add some data-* attributes tagging to those scripts. The following changes are required:

1. Remove 'async' attribute
2. Change 'type' attribute from 'text/javascript' to 'text/template' e.g. type='text/template'. If type attribute is missing, add it as 'text/template'
3. Add data-consent="true" attribute to the SCRIPT tag
4. Add data-segment="cookieConsentGranted" attribute to SCRIPT tag. Segments include: cookieConsentGranted, cookieConsentMarketingGranted, cookieConsentUserdata, cookieConsentPersonalization, cookieConsentPreferencesGranted, cookieConsentAnalyticsGranted


Review granted permissions

You can review all granted permissions in a separate menu in admin panel under Admin -> Reports -> GDRP Consent (see below)

Actions 54 records found Filters Default view Columns Consent ID Consent IP Consent Consent datetime Action 00000435 cookieConsentGranted(1), cookieConsentAnalytics(1) Oct 08, 2023 19:53 Delete 00000068 cookieConsentGranted(0), cookieConsentAnalytics(1) May 19, 2023 14:22 Delete 00000139 cookieConsentGranted(1), cookieConsentAnalytics(1) Jan 05, 2023 04:52 Delete 00000103 cookieConsentGranted(0), cookieConsentAnalytics(0) May 21, 2023 10:22 Delete 00000388 cookieConsentGranted(1), cookieConsentAnalytics(1) Jun 18, 2023 13:28 Delete You can see granted consent per visitor Browser IP address included in reports

Now: Next:

If you like this product, share it with your friends

Extensions for Magento

Anowave is an extension developer for Magento 1.x and Magento 2.x platforms. We provide a wide range of premium extensions for our in-house and public clients. The extensions that we offer extend the capabilities of Magento and provide a bespoke functionality. They also fill some missing gaps in the functionality provided by the base platform and help customers in chosing Magento as prefered ecommerce platform.

The extensions that we offer are part of our full range Magento service which includes also a Premium Helpdesk where customers get to speak with actual software engineers and get their issues resolved without hussle. Premium labeled modules also include free installation, confiuration, testing etc.