How exactly do cookies work in the extension?

How exactly do cookies work in the extension?

Default Magento cookies are divided into 2 types - Essential and Non-Essential

Essential cookies do not require the user's consent for their work and are stored in the browser automatically, as they ensure the correct operation of the store from the technical side. They are always enabled, and the client cannot interact with them.



Non-Essential cookies, in turn, cannot be collected without the user's consent, so the extension blocks both Magento cookies and external scripts that run from the browser. In case the user declines these cookies, they won’t be set.


Out of the box, all Magento default cookies, as well as Google Analytics cookies are already defined as essential/non-essential in the Customers → Cookie Consent → Cookie Groups and are functioning depending on the user's consent.


Additionally, you may edit and add new cookies if you navigate to Customers → Cookie Consent → Cookies. There you may also assign cookies to the groups. 


Moreover, the extension also provides an opportunity to set 3-rd party custom cookies and block them as marketing cookie for clients. You may introduce compatibility with 3-rd party cookies following the steps from the User Guide

      • Related Articles

      • Can I add Google Analytics cookies to the essential group?

        Essential cookies are a site's basic form of memory, used to store the settings selected by a user on a given site. As the name implies, they are essential to a website's functionality and cannot be disabled by users. On that note, neither Marketing ...
      • Is it possible to set no cookies at all before any decision is taken?

        The Cookie Consent module allows blocking Magento marketing cookies and any third-party cookies that are present on the website. They will not be set until a customer allows them, and will be blocked if a customer chooses to. However, whether a ...
      • Will the module block cookies added by Javascipt?

        The Cookie Consent extension can block cookies added through PHP/JS scripts; this improvement was added in ver. 2.6.0 of the Cookie Consent extension. You may refer to the steps below to implement the compatibility. Step 1. Create a 3rd-party cookie ...
      • Where and for how long is the customers' consent stored?

        The extension allows and disallows cookies through creating separate 'amcookie_allowed' and 'amcookie_disallowed' cookies. These cookies function as regular cookies and are being stored for a year. They can be cleared together with the rest of the ...
      • How to edit the text colour for the Cookie Consent bar?

        To modify the text color on the cookie bar, proceed to Stores → Configuration → Amasty Extensions → Cookie Consent and expand the Cookie Bar Customization section. Having selected the preferred Cookie Bar Style, adjust the color and transparency with ...