What is this obscure error in Google Analytics tracking code on a _trackEvent() call?

Posted by Laizer on Stack Overflow See other posts from Stack Overflow or by Laizer
Published on 2010-01-10T14:12:50Z Indexed on 2010/04/16 2:23 UTC
Read the original article Hit count: 411

I am calling the Google Analytics _trackEvent() function on a web page, and get back an error from the obfuscated Google code. In Firebug, it comes back "q is undefined". In Safari developer console: "TypeError: Result of expression 'q' [undefined] is not an object."

As a test, I have reduced the page to only this call, and still get the error back. Besides the necessary elements and the standard Google tracking code, my page is:

<script>
  pageTracker._trackEvent('Survey', 'Checkout - Survey', 'Rating', 3);
</script>

Results is that error.

What's going on here?

© Stack Overflow or respective owner

Related posts about google-analytics

Related posts about JavaScript