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.
4. Expand the Default Cookie Settings section.
5. Do the following:
- 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.
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!