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 ...
      • Cookie Consent (GDPR) | GraphQL methods

        Queries getAmCookieGroups description: get cookie groups information getAmCookieBar description: get cookie bar information getAmCookieSettingsBar description: get cookie settings bar information Mutations logAmCookieConsent(input: ...
      • 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 can I find the Consent Mode settings?

        Starting from the 2.0.0 version of the Google Analytics 4 with GTM Support module, we separated the compatibility functionality with Consent Mode V2 in a distinct package, and it is no longer appears as a part of the module's functionality by ...