Since upgrading from Magento CE 1.7.0.2 to 1.9.1 its not showing any visitors. Google is activated and I use the Fooman extension.
Any ideas why its not tracking visitors?
Thanks.
google analyticsmagento-1.9
Since upgrading from Magento CE 1.7.0.2 to 1.9.1 its not showing any visitors. Google is activated and I use the Fooman extension.
Any ideas why its not tracking visitors?
Thanks.
Best Answer
In version 1.9.1, Magento added an admin configuration setting for setting different Google Analytics code types. You can see this setting by going to:
There should be two options here "Universal Analytics" and "Google Analytics". Older versions of Magento did not have this setting and would always default to Universal Analytics code. After upgrading to 1.9.1, I believe Magento now automatically defaults to Google Analytics code instead. This caused issues for me with
Uncaught ReferenceError: ga is not defined
errors showing up in the console on pages.I resolved it by switching the config setting, Type, back to Universal Analtyics and my errors went away and my tracking came back.
You can see the conditional for the two different GA code types and what the code looks like in: