User Tools

Site Tools


Sidebar

magento_2:cookie_consent

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

Guide for Cookie Consent (GDPR) for Magento 2

Increase customer 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 flexible design customization for your cookie policy bar

General Settings

To adjust 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 be 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. If you want to activate the wall, you can also specify the particular pages that a customer will be allowed to interact with.

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

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

Countries Restrictment - enable this option to adjust the visibility of the Cookie Policy Bar on the 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.

Cookie Bar Style - choose the cookie bar type suitable for your store:

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

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

  • Pop Up. It is displayed in the center of a page.

If customers accept all cookies regardless of a bar type, the cookie bar automatically disappears. If they want to find extra information or allow specific cookies by clicking Custom Cookies (button name is customizable), they will see the following popup:

Thus, they can click the toggles and accept the particular cookies only.

From this popup, they can also find extra details about each cookie type by clicking More Information in the popup and see the info:

Extra Frontend Option

The extension also adds a special link to the store footer so that customers could find information about cookies and revoke previously given consents at any time. The data is also displayed in the pop-up.

Classic Bar Design

Each bar type has multiple customization options.

For Classic bar you can specify the following settings:

Cookie Bar Location - place a bar either at the top or in the footer.

Notification Text - provide the text to display in a popup. You can use any HTML-tags in this field. Please, mind the security.

With a handy color picker toolset the colors for the:

  • popup background
  • text of the bar
  • links.

Also, you can customize the buttons.

For both buttons you can customize:

  • button name
  • button color
  • color on hover
  • text color
  • text color on hover.

Save configuration and Flush Magento Cache to see the changes. An example of design customization:

For the side bar type there are the following settings:

Here you can customize:

  • Notification Text
  • Background Color
  • Policy Text Color
  • Links Color
  • Cookie Group Title Text Color
  • Cookie Group Description Text Color

For buttons, the settings are the same as for the Classic bar type.

The sample of customization:

Pop Up Design

For a pop-up style, manage the following settings:

Adjust the:

  • Notification Text
  • Policy Text Color
  • Background Color
  • Links Color
  • Buttons Design (as for the other styles).

Check the result of customization:

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 the 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 the 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 a particular category in this section.

Keep in mind that you can customize cookies and cookie groups on a store view level. Just select the necessary store view on the Edit Group/Cookie page.

Save the configuration.

To manage cookies, go to Customers → Cookies.

With the extension, you can track and filter cookies on a separate grid by its ID, Cookie Group and Cookie Name

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

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

To create a new cookie, hit the Add New Cookie button. All the information you provide about a cookie will be displayed to customers on the frontend in the appropriate section.

Cookie Name - specify the title of the cookie.

Cookie Provider - specify the company that uses and analyzes a particular 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 Type - choose the type of the request in which a cookie is sent: 1st Party or 3rd Party.

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 Log.

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.


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/11/25 13:06 by tihomirova