GTM does not receive any data until cookies are accepted by the user. How can I fix this?

GTM does not receive any data until cookies are accepted by the user. How can I fix this?

Indeed, the Cookie Consent module blocks GTM cookies and scripts by default. If you'd like the module to allow sending data in the consent mode, the Google Consent Mode module should be installed additionally. You can find the 'amasty/module-google-consent-mode' package for installing in composer suggest. The module is compatible with Hyva. The 'amasty/module-google-consent-mode-hyva' module can be installed via composer as well. Please note that the modules are available as a part of an active subscription.

After installing the Consent Mode extension, the functionality will appear in the Amasty Cookie Consent extension's configuration.


Upon enabling this functionality, the default consent state will be sent to the GTM even before the user accepts cookies.

      • Related Articles

      • 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 ...
      • 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 ...
      • How to share a GTM debug link?

        In order to share a debug link with our support team, please, take the following steps: 1. Navigate to the account overview and press on the “Preview” button. 2. Enter your website's URL. 3. Click on the menu in the right upper corner of the page and ...
      • 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 ...
      • Is it possible to migrate data from one Magento instance to another with the Import & Export solution?

              The Amasty Import and Export modules utilize the same functionality, so it is possible to duplicate the structure from import profiles to the export ones. This allows users to transfer data between Magento instances.