How To Manage Cookies Policy Magento 2

In this tutorial, I will show you how to manage cookies policy in Magento 2.

As you may know, cookies are the small text file which your website place in customer’s devices. They are used to identify a certain customer and bring them a better experience. Cookies allow your online store to remember which customers have in their shopping cart.

It is also used to keep customers logged into your website. Moreover, it helps you to collect information and statistic from your customers.

If you are running a website, it is certainly using cookies. This function is to analyze customer’s behavior & numbers through such a tool as Google analytics.

According to the policy since 26th May 2012, you should turn on the Magento cookies notice on your website. In other words, you should display a warning message about the cookies used on your website.

This feature is namely cookie restriction mode.

To enable cookie restriction mode, please follow these steps:

1. Go to the Magento 2 Admin Panel > Store > Configuration

2. In the configuration, please open General > The Web> Default Cookie Settings

3. Expand the Session Cookie Management field set. In the Cookie Restriction Mode field select

To save the changes click the “Save Config” button.

4. Finally, you need to clear the cache by going to cache management > select all > refresh > submit.

—-

Related Extensions you may interested in

 

Alena Dao

“Good marketing makes the company look smart. Great marketing makes the customer feel smart.”

Recent Posts

Why WooCommerce Testing Is Crucial for eCommerce Success in 2025

In the fast-paced world of eCommerce, ensuring your online store operates seamlessly is no longer…

4 days ago

Building Scalable Music Streaming Apps with PWA and Magento Integrations for 10x Growth

Music streaming is more than just about playing songs; it's more about sharing a better…

4 days ago

Effortless E-commerce Automation in WooCommerce: From Checkout to Thank You

Automation in WooCommerce is more than just a backend convenience—it’s a time-saver that many store…

2 weeks ago

6 Reasons Why Promotional Products Still Work in the Digital Age

You can’t succeed in business today without effective promotional tactics. A simple branded pen sitting…

2 weeks ago

The Ultimate Guide to Magento 2 AI Search: Transform Your B2B Product Discovery

Magento 2 AI is transforming how B2B buyers search and discover products online. Every day,…

3 weeks ago

WooCommerce Measurement Price Calculator: Smart Pricing Made Easy in 2025

Ever felt like your online store is losing sales just because your pricing doesn’t fit…

1 month ago