See the way the Cookie Consent (GDPR) for Magento 2 extension works.
Expand this tab to configure the basic setting of the extension.
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.
If you allow a Customer Interaction with the Website Until He Accepts or Declines Cookies, specify the additional bar setting:
Do Not Show Cookie Bar If No Decision Was Taken - if Yes, the cookie bar will not be displayed to a customer on new pages even though he doesn't accept or decline cookies. Thus, the customer will less distracted from purchasing.
CMS page for cookie settings - define the page to place Cookie Settings tab. A separate ‘Cookie Settings’ page is set by default.
After all the changes don’t forget to Save Config.
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.
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 and Description.
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 Group - assign the cookie to a particular group.
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.
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.
Find out how to install the Cookie Consent for Magento 2 via Composer.