See the way the Cookie Consent (GDPR) for Magento 2 extension works.
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.
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.
Countries Restrictment - enable this option to adjust the visibility of the Cookie Policy Bar on the frontend according to customer location.
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:
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:
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.
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:
Also, you can customize the buttons.
For each button you can customize:
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:
For buttons, the settings are the same as for the Classic bar type.
The sample of customization:
For a pop-up style, manage the following settings:
Adjust the:
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.
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.
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.