What is Cookie Restriction Mode in Magento 2?
Cookie Restriction Mode in Magento 2 platform web store is a mode that prevents your web store from collecting cookies data of customers, so full-featured operations cannot be enabled. In this mode, your visitors have to confirm that your website needs cookies to allow full-featured operations.
How to enable Cookie Restriction Mode in Magento 2?
Follow these steps to enable Cookie Restriction Mode
In the backend, click Stores. Under Settings, click Configuration.
Under General on the left, click Web. Open the Default Cookie Settings tab, follow these steps:
In the Cookie Lifetime field, enter the seconds you want.
In the Cookie Path, input the path to make cookies available to folders.
In the Cookie Domain, enter the subdomain name to make the cookies available to a subdomain.
Set Cookie Restriction Mode to “Yes”
Click Save Config after completed.
Don’t forget to clear the cache in Cache Management link and update private policy to describe the information that your online store collects from customers, and how it is used.
Above is a full guideline on Cookie Restriction Mode in Magento 2 and how to enable it in admin system. We hope that you can understand how the Cookie Restriction Mode works and how to control it in Magento 2 Basic Configuration. Leave a comment if you have any question, and subscribe Magestandard to get a notification on the next article.