Cookie Solution – Magento Module Installation Guide

  • The module requires Magento 2.0.x or above
  • The module works better with versions of PHP 5.5 or later


  • The module automatically adds the iubenda code to all the pages of a site (to the HEAD section)
  • Automatically blocks:
    • Facebook
    • Twitter
    • Google+
    • Google Maps
    • Google AdSense
    • YouTube
    • Vimeo
    • AddThis
    • ShareThis
  • Manages the visualization of the banner and of the cookie policy, as well as the saving of user’s consent preferences as per cookie installation
  • Simplifies the management of the iubenda cookie solution for multilingual sites


Firstly, copy the contents of the zipped extension folder to the required Magento directory: /magento/app/code/.

The iubenda Cookie Solution module can be installed via any of these 3 methods:

1. Wizard installation

  • In the admin panel go to System -> Web Setup Wizard -> Module Manager.

Magento web setup wizard

  • Locate the iubenda_cookiesolution and enable it.

Enable iubenda CS magento module

Magento will now check your environment for the correct PHP version, PHP extensions, file permissions, cron and compatibility. You need to pass all checks in order to proceed.

Module install readiness check magento

After that Magento will ask about backup and after those preferences are set, you will be able to enable the iubenda module.

2. Manual installation

  • Via an ftp client or your cpanel, go to /magento/app/etc folder and open config.php file. At the end of the file, add a single line of code: ‘iubenda_cookiesolution’ => 1 (exactly as written, right after the last extension code). Save the file.

Config.php file for manual magento installation

  • Now go to admin panel and refresh the cache (you can do it in System > Cache Management). Select everything on the list, use refresh action and click “Submit”.

Cache management magento

3. Shell installation

This method requires access to the server shell.

You simply need to type in “php bin/magento setup:upgrade“. This command should do the trick. It checks all of the modules and launches schema installation or the updating process.


After the installation is successfully completed, go to “Stores > Configuration > iubenda > iubenda Cookie Solution” (this is the place where you can configure our module).

Copy & paste the Cookie Solution code from your iubenda account (as explained on the introduction guide) and save.

  • Don’t forget to save valid JavaScript code there to make sure the module works properly.
  • If, for some reason, the module does not seem to work, refreshing the cache will often solve the issue.

Changelog and current version


Tweak: Update and unify iubenda parsing engine


Tweak: iubenda faster class regex update


Initial release

See also

Still have questions?

Visit our support forum Email us