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

How a SaaS SEO Consultant Can Transform Your Growth Strategy

En a digital-first economy, Software-as-a-Service (SaaS) businesses need to be visible. Without visibility, even the…

11 hours ago

Embracing the Cloud | Powerful Advantages of Leveraging Cloud Servers in 2025

After all, in business we're living by a binary decision. As the world becomes more…

14 hours ago

Top 7 Emerging Programming Languages Developers Should Learn

In a world where technology evolves rapidly, developers who stay ahead of the curve gain…

2 days ago

Top Website Development Trends Every PPC Expert Swears By in 2025

The digital world is constantly changing and this way together website development and PPC advertising…

2 days ago

From Factory Floor to Online Store: How Manufacturers Can Leverage eCommerce to Boost Growth

Manufacturing is changing fast. Buyers want direct access to products, quick fulfillment, and reliable updates.…

3 days ago

Top 10 Powerful Magento 2 Extensions to Maximize ROI in 2026

The eCommerce industry is competitive. Business owners need to explore all possible ways to enjoy…

1 week ago