Events are not firing in the GTM. How to fix this?

Events are not firing in the GTM. How to fix this?

The most common reason is the Tracking via Measurement Protocol functionality enabled for all the events.



As a result, events are sent directly to Google Analytics servers via HTTP requests, and these events data are not added to the tag manager, so that events are not duplicated for Google Analytics. For more details, please, refer to the following documentation from Google.

To resolve the issue, please, take the following steps:

Step 1. Leave enabled only the events that you would not like to track via browser, such as, for instance, 'Refund' event.
Step 2. Export the Json file with the variables, tags and events anew.


Step 3. Import the file to the GTM container by navigating to Admin > Container > Import Container in the GTM account.


Now all the needed tags will be available in the GTM configuration and sent via browser to the relevant container.



      • Related Articles

      • Will extension generate a ready to use GTM container?

        It is necessary to create a container in the GTM account, as GTM Web Container ID, Tag Manager Account ID and Tag Manager Container ID will be needed for the correct configuration of the extension. Detailed instructions on how to find the relevant ...
      • Will the module work with GTM?

        Out of the box, the module is tested and guaranteed compatible with the following ways of GTM implementation: 1) Magento's native Google Analytics functionality (Stores → Configuration → Sales → Google API → Google Analytics). 2) Amasty Google ...
      • 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 ...
      • How can I add customer email, phone, name to the 'purchase' event's datalayer?

        By default, the extension does not add customer's personal data to the 'purchase' event. But it is possible to obtain the needed information by creating the conversion for the 'purchase' event and turning on the Enable Enhanced Conversion with ...
      • How to fix the Magento 2.4.5 Layered Navigation showing incorrect results issue?

        After upgrading Magento to version 2.4.5 you can see the error: TypeError: Magento\Elasticsearch\Model\ResourceModel\Fulltext\Collection\SearchResultApplier::categoryProductByCustomSortOrder(): Argument #1 ($categoryId) must be of type int, array ...