User Tools

Site Tools



See the way the Cookie Consent (GDPR) for Magento 2 extension works.

Guide for Cookie Consent (GDPR) for Magento 2

Increase customers retention by giving them the opportunity to regulate their cookie usage. Implement a GDPR compliant cookie policy to your store with Cookie Consent extension for Magento 2.

  • Arrange cookies into essential and optional categories
  • Let customers choose which cookies they allow to process
  • Efficiently manage categories and cookies they include
  • Monitor all cookie consents and customers' data in one grid
  • Use a flexible design customization for your cookie policy bar

General Settings

To adjust you cookie policy settings, go to Stores → Configuration → Amasty Extensions → Cookie Consent.

Expand this tab to configure the basic setting of the extension.

Enable Cookie Policy Bar - set to Yes to enable Cookie Notice Bar on Magento 2 frontend.

Hide the Cookie Bar if No Decision Was Taken - if Yes, the cookie bar will not be displayed to a customer on new pages if he doesn't accept or decline cookies. Thus, the customer will less distracted from purchasing.

Cookie Wall - enabled Cookie Wall does not let a customer interact with the website until he/she accepts or declines cookies.

The usage of cookie walls is not allowed according to GDPR.

Cookie Bar Text - specify the informative text of the Cookie Policy Bar.

You can use any HTML-tags in this field. Please, mind the security.

Allowed Urls - if customers are disallowed to interact with the store, specify the URLs that the customers will be able visit. You can use a part of URL as per example: privacy-policy-cookie-restriction-mode. Each URL must be on a new line.

Cookie Settings CMS Page - define the page to place Cookie Settings tab. A separate ‘Cookie Settings’ page is set by default.

If changing to another CMS page, add “Amasty Cookie Settings” widget on it.

Countries Restrictment - enable this option to adjust the visibility of Cookie Policy Bar on frontend according to customer location.

You can display the Cookie Policy Bar for All Countries, EEA Countries or specific Countries selected in the list below.

Other customers won't see the popup and a Cookie CMS Page. Consent logs are disabled for them as well.

Cookie Log Auto-Cleaning Period (Days) - set the period after which the records that were stored will be automatically cleaned.

Expand this tab to choose the type of your cookie policy bar and customize its design.

Cookie Bar Style - choose the Classic cookie bar type or Pop Up with Toggles.

Classic bar can be displayed either on top or in footer of the page. It contains cookie policy text and buttons.

Pop Up with Toggles contains additional info about each cookie group and a customer can easily adjust the consent within the first interaction.

With a handy color picker tool set the Cookie Policy Bar colors for the:

  • popup background
  • buttons background
  • buttons text
  • text of the bar
  • titles of cookie groups
  • links.

After all the changes are applied, Save the configuration.

To arrange cookies into essential and optional categories, go to Customers → Cookie Groups.

With the extension you can manage all your cookie categories in a handy grid.

On the grid the ID, Cookie Group Name and Description are displayed. Also you can see if each group Is Essential and Is Enabled.

To configure any group, click Edit in the Action column.

To delete several groups in one click, tick them and choose Delete option in the Actions dropdown menu.

To create a new category, click Add New Group.

Enabled - choose Yes to activate the group.

Is Essential - set to Yes to make the group obligatory. In this case the customers will have to allow this cookie group to get access to the website.

Cookie Group Name - specify the title of the cookie group that will be displayed to the customers on the frontend and on the grid in admin panel.

Description - fill in the information about the usage of the group so that the customers could decide whether to allow this group or not.

Assigned Cookies - select the cookies to include in the group.

See how to assign cookies to particular category here.

Save the configuration.

To manage cookies, go to Customers → Cookies.

With the extension you can easily track and sort all cookies on a separate grid by its ID, Name, Group, Description and the Lifetime.

To view or change the configuration of a cookie, click Edit in the Action column.

To delete cookies, tick them and choose Delete option in the Actions dropdown menu.

To create a new cookie, hit the Add New Cookie button.

Cookie Name - specify the title of the cookie.

Description - fill in some information about the usage of the cookie.

Cookie Lifetime - set the lifetime of a cookie that will be displayed to customers on the Cookie CMS page.

Cookie Group - assign the cookie to a particular group.

Make sure that a section_data_ids cookie is placed in the Essential group to avoid issues with the shopping cart updating.

To find the list of all consents and customers data, go to Customers → Cookie Consents.

You can find all needed info in one place. The grid allows to track consents by customer Name, Email, IP Address, Website, Consent Type, Date and Consent Status. This data can be useful for different consents analysis.

Frontend example

Make users give more consents with a user-friendly cookie policy bar. Customize the design of the bar to match your website style.

Show detailed info in a handy popup:

Enable mini bar on top or footer:

Let customers choose which cookie categories they allow to process.

Clarify to users which cookies each category includes.

The extension adds a ‘Cookie Settings’ link to the footer so that the customers can easily reset cookie usage conditions any time they need.

Prevent losing potential customers by making your site perform better with Google Page Speed Optimizer for Magento 2 extension.

Find out how to install the Cookie Consent for Magento 2 via Composer.

Rate the user guide
 stars  from 2 votes (Details)
magento_2/cookie_consent.txt · Last modified: 2020/09/01 13:45 by tihomirova