2017 © Pedro Peláez
 

magento2-module magento2-cookie-restriction-fix

Magento 2 module fixing Magento Cookie Restriction bug on Magento 2.1.x versions

image

magma/magento2-cookie-restriction-fix

Magento 2 module fixing Magento Cookie Restriction bug on Magento 2.1.x versions

  • Tuesday, September 26, 2017
  • by magma
  • Repository
  • 1 Watchers
  • 5 Stars
  • 201 Installations
  • JavaScript
  • 0 Dependents
  • 0 Suggesters
  • 2 Forks
  • 0 Open issues
  • 4 Versions
  • 52 % Grown

The README.md

Magento 2 Cookie Restriction Fix

In order to comply with European Cookie Law we have to enable Magento Cookie Restriction Mode., (*1)

By enabling Cookie Restriction Mode Magento 2.1.x does not show Google Analytics Tracking code even if user allow cookies., (*2)

This is due to bug #5596 (https://github.com/magento/magento2/issues/5596) affecting magento 2.1.x versions., (*3)

This module fixes the issue and enable Google Analytics if user gives consent., (*4)

Not only Magento Google Analytics module benefits from this fix, but also every module using the standard Magento module Cookie., (*5)

Installation

Install module:, (*6)

composer config repositories.magento2-cookie-restriction-fix git https://github.com/magma/magento2-cookie-restriction-fix.git
composer require magma/magento2-cookie-restriction-fix

Enable module:, (*7)

./bin/magento setup:upgrade

In order to comply with Cookie Law every third-party module should block tracking cookies unless the user accepts to save them., (*8)

Standard Magento Module Cookie Restriction Mode is meant to do so., (*9)

Third party developers can use this mechanism by checking the condition isUserNotAllowSaveCookie provided by the module Magento_Cookie., (*10)

Compatibility

Tested on Magento 2.1.8. It should work on older Magento 2.1.x versions., (*11)

Suggested modules

The Versions

26/09 2017

dev-master

9999999-dev

Magento 2 module fixing Magento Cookie Restriction bug on Magento 2.1.x versions

  Sources   Download

MIT License

The Requires

  • php ~5.5.0|~5.6.0|~7.0.0

 

by Fabrizio Vanzani

08/09 2017

1.0.0

1.0.0.0

Magento 2 module fixing Magento Cookie Restriction bug on Magento 2.1.x versions

  Sources   Download

MIT License

The Requires

  • php ~5.5.0|~5.6.0|~7.0.0

 

by Fabrizio Vanzani

07/09 2017

0.0.2

0.0.2.0

Magento 2 module fixing Magento Cookie Restriction bug on Magento 2.1.x versions

  Sources   Download

MIT License

by Fabrizio Vanzani

04/09 2017

0.0.1

0.0.1.0

Magento 2 module fixing Magento Cookie Restriction bug on Magento 2.1.x versions

  Sources   Download

MIT License

The Requires

  • php ~5.5.0|~5.6.0|~7.0.0

 

by Fabrizio Vanzani