
Google Consent Mode is a mechanism through which your users' Cookie or app identifier consent status is communicated to Google. Google tags will then adjust their behavior and the information they send through based on the consent status.
Consent Mode, upon receiving the communicated consent status, dynamically adapts the behavior of Analytics, Ads (as well as some 3rd-party) tags that create or read browser cookies. This allows Google to use advanced modelling to fill in the gaps when data isn't available, providing you a better and more accurate experience across Google Services.
Ultimately, it's all about making sure that user privacy choices are respected, however, starting with March 2024, Google has determined Consent Mode v2 to be a requirement for websites that use Google Services in the European Economic Area (EEA). These changes and requirements allow you simultaneously respect privacy choices, while also ensuring Google's conversion and behavioral modelling can substitute the lack of data and continue providing a unified data experience.
Essentially, Google Consent Mode requires setting a default consent state for a few Google-specific parameters (usually denied) when a user first accesses the website. Afterward, a consent banner or popup is displayed, which allows the user to customize (deny or accept) their consent towards Google's parameters. When the user interacts with the banner, the consent state is updated and communicated to the Google Tag Manager container. The tags in the container then adapt their behavior based on the signals provided. In short, the process is:
Google does not provide a consent banner/popup that can be used, so the onus is on the merchant to implement this. This can be done via a Cookie Management Platform (which handles the acceptance/rejection of cookies in general) or via a custom functionality through which a banner or popup is displayed. If you already have a Cookie Management Platform/Solution implemented, there's a good chance it's been updated for compatibility with Google Consent Mode v2, in which case you can explore Google's documentation to find out whether Consent Mode is properly implemented.
The purpose of this extension is to ensure merchants can implement Google's Consent Mode v2 on their website with minimal effort, friction and customization. Essentially, the module fulfills the implementation by setting a default consent state and allowing merchants to display a form (either via popup or Magento Widget) that users can interact with to update the consent state and communicate this information to Google Tag Manager.
This extension is targeted and intended for merchants that do not have an existing Cookie Management Platform/Solution and that do not intend to implement one. It's important to note that the extension is not a full-fledged Cookie Management Platform and only serves to set and update Google's specific Consent Mode v2 parameters. It works with an existing Google Tag Manager implementation and, for best results, is recommended to be used with our Google Analytics 4 (GA4) extension.
This extension is installed via Composer, which is the official and only supported installation method.
php bin/magento deploy:mode:set developer
Head into the Downloadable Products section of your weltpixel.com account. This is where you'll be able to see your Composer Configuration Commands.
You'll need to have Composer installation enabled for your account. If you don't see the Composer Configuration Commands, please contact our support team.
Run the generated commands from your account. Example commands:
composer config repositories.weltpixel composer https://weltpixel.repo.packagist.com/your-id/
composer config --global --auth http-basic.weltpixel.repo.packagist.com token your-token
These commands will provide you access to the WeltPixel repository. Replace 'your-id' and 'your-token' with the actual values from your account.
Run the following command in your Magento root directory:
composer require weltpixel/m2-weltpixel-google-consent-mode-v2
Run the following commands:
php bin/magento setup:upgrade php bin/magento setup:di:compile php bin/magento setup:static-content:deploy -f
Flush any caches:
php bin/magento cache:flush
If your store was in production mode, switch it back:
php bin/magento deploy:mode:set production
Wooohooo! The extension is now installed on your Magento store! Congrats!


What's new in v.1.16.0 - January 7, 2026
What’s new in v.1.15.9 - October 28, 2025
What’s new in v.1.15.7 - September 2, 2025
What’s new in v.1.15.3 - June 20, 2025
What’s new in v.1.15.0 - April 22, 2025
What’s new in v.1.14.13 - February 17, 2025
What’s new in v.1.14.11 - January 15, 2025
What’s new in v.1.14.9 - November 26, 2024
What’s new in v.1.14.7 - October 11, 2024
What’s new in v.1.14.3 - June 20, 2024
What’s new in v.1.14.1 - April 19, 2024
What’s new in v.1.10.1 - March 28th, 2024
