How To Enable Cookie Restriction Mode In Magento 2

In this post, I will guide you on How To Enable Cookie Restriction Mode In Magento 2. Cookies help store owners record customer behavior thereby enhancing their experience.

Steps To Enable Cookie Restriction Mode In Magento 2

1. Log in to Admin Panel.

2. On the Admin Panel sidebar, go to Stores > Settings > Configuration.

3. In the left panel, choose GENERAL > Web.

Choose-General-Web

4. Expand the Default Cookie Settings section.

Expand the Default Cookie Settings section

5. Do the following:

Default Cookie Settings
  • Enter the Cookie Lifetime in seconds.
  • If you want to make cookies available to other folders, enter the Cookie Path. To make the cookies available anywhere on the site, enter a forward slash “/”.
  • Enter the subdomain name in the Cookie Domain field to make the cookies available to a subdomain.
  • To prevent scripting languages, such as JavaScript, from gaining access to cookies, make sure that Use HTTP Only is set to “Yes”.
  • Set Cookie Restriction Mode to “Yes”.

6. Click Save Config when complete.

The cookie notification bar displays a cookie restriction message and contains a button Allow Cookies. It is shown below as the image.

The cookie notification bar displays a cookie restriction message

This is the end of the post.

Follow us for the more helpful posts!

We hope this is a useful post for you on How To Enable Admin Dashboard Charts In Magento 2.

Thank you for reading!

4.7 3 votes
Article Rating

Aaron LX

Aaron is a passionate writer, crazy about shopping, eCommerce and trends. Besides his outstanding research skills and a positive mind, Aaron eagerly shares his experience with the readers.

Leave a Reply or put your Question here

0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x