magepal / magento2-google-tag-manager

Google Tag Manager is a user-friendly, yet powerful and cost-effective solution that is a must-have integration for every Magento store. It simplifies the process of adding and managing third-party JavaScript tags. With dozens of custom events and hundreds of data points our extensions the #1 GTM solution for Magento.
https://www.magepal.com/google-tag-manager.html
258 stars 88 forks source link

Uncaught ReferenceError: gtag is not defined at <anonymous>:1:1 #50

Closed gaurangpadhiyar007 closed 5 years ago

gaurangpadhiyar007 commented 5 years ago

Magento version #: 2.2.2

Edition (EE, CE, OS, etc):

Expected behavior: no console error

Actual behavior: gives error in console

Steps to reproduce: add an extension, upgrade and configure module, deploy static content

Preconditions

Please help to resolve this issue; VM870:1 Uncaught ReferenceError: gtag is not defined at :1:1 in the browser console.

srenon commented 5 years ago

@gaurangpadhiyar007 .... Please double check your error, there is no reference to "gtag" in this extension

gaurangpadhiyar007 commented 5 years ago

@srenon

check below screen shot. https://www.awesomescreenshot.com/image/3995652/28bf5e51894c07008c4989302720ce5c I am getting console error which is coming from /magepal/magento2-googletagmanager/view/frontend/templates/gtm_js.phtml

srenon commented 5 years ago

99.99% this is not caused by our extension.

The only thing I can recommend at this point is to open a paid support and I will figure out and fix whatever your issues are. https://www.magepal.com/magento2/extensions/google-tag-manager.html