fooman / googleanalyticsplus

Magento Extension to add extra features to the default GoogleAnalytics module.
http://store.fooman.co.nz/extensions/magento-extension-googleanalyticsplus.html
100 stars 53 forks source link

ga is not defined #84

Closed davelovemartin closed 8 years ago

davelovemartin commented 8 years ago

I get an error on my one page checkout if I enable Google Analytics + (Adwords seems to be fine) and it will not load. Error on inspection is: ga is not defined

fooman commented 8 years ago

Does it happen when using the default theme and checkout? Any 404 errors of missing files when loading the page?

davelovemartin commented 8 years ago

http://www.googletagmanager.com/gtm.js?id=MY-CODE Failed to load resource: the server responded with a status of 404 (Not Found)

fooman commented 8 years ago

I'd suggest comparing the snippet Google gives you vs. what comes up in your store's html. It currently looks to me there is some disconnect between the two. We include the snippet wholesale so this seems to be unrelated to our code.

abhilash-ussoftware commented 8 years ago

Hi, Do you have any suggestion for this? I am also having same issue? Please help.

davelovemartin commented 8 years ago

This was due to some hardcoding in my magento installation that I wasn't aware of.

abhilash-ussoftware commented 8 years ago

Thank you. Do you remember what was exactly hard coded,because I am also having same issue. Appreciate your help on this.

davelovemartin commented 8 years ago

Mine was hardcoded in footer.phtml. Have a look in the files in: app/design/frontend/yourstyle/default/template/page/html/

abhilash-ussoftware commented 8 years ago

Sure, thank you.

abhilash-ussoftware commented 8 years ago

In my case Google code was not added where ga is initialized. Thank you.