In this article we’ll show you, how to Cookie Restriction Mode in Magento 2. Follow this simple guideline…

How to Enable Cookie Restriction Mode in Magento 2

Step 1: Get Started

Login into Magento Admin Panel and from sidebar go to, Store > Settings > Configuration

How to Enable Cookie Restriction Mode in Magento 2

Step 2: Enable Cookie Restriction Mode

Now from sidebar go to, General > Web. Expand Default Cookie Settings

How to Enable Cookie Restriction Mode in Magento 2

Cookie Lifetime: Enter the Cookie Lifetime in seconds.

Cookie Path: If you want to make cookies available to other folders, enter the Cookie Path.

Cookie Domain: To make the cookies available to a subdomain, enter the subdomain name in the Cookie Domain field.

Cookie Restriction Mode: Set Cookie Restriction Mode to Yes.

How to Enable Cookie Restriction Mode in Magento 2

Click on Save Config button. Now Flush the Cache and check on Frontend.

Yeah Done! Let us know in the comment section below if you have any question. We are happy 🙂 to help you!