The following message appears when viewing a site page in the chrome debug log.
Uncaught ReferenceError: _gaq is not defined
The page itself is supposed to track an object using the onload
event handler and fire a _trackEvent
for Google Analytics.
My best guess is that perhaps the ga.js
file doesn't load in time and therefore the onload
_trackEvent
triggered is not caught. the async snippet is being used before the </body>
close and the object is positioned in the middle <body>
.
(some other posts have referenced jQuery position too but, this might be a red herring)
any assistance greatly appreciated.