yireo-magento1 / Yireo_GoogleTagManager

Implement Google Tag Manager in Magento 1 (deprecated)
Open Software License 3.0
56 stars 46 forks source link

GTM Script is added again to the page #35

Closed eliekstein closed 7 years ago

eliekstein commented 7 years ago

This code is causing the following script to be added to the page. <script async="" src="//www.googletagmanager.com/gtm.js?id=GTM-XXXXX"></script> In most cases this is already added by GTM's main tag provided to users, so this is causing for all events to be executed twice.

jissereitsma commented 7 years ago

Indeed our extension adds GTM to the page and it should do so, otherwise our extension does not work as described. But if you are using another mechanism to add also GTM to the page, then you (not the extension) are adding it twice to the page. Solution is to disable the other mechanism. This is not a bug in this extension, it's just the procedure we documented.