Uncaught ReferenceError: _gaq is not defined (Google Analytics)
问题 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