_trackevent snippets

Problems with _gaq.push and _trackEvent?

Tagged _gaq, google analytics, _trackevent  Languages javascript

Problems with _gaq.push and _trackEvent?

  1. Check JavaScript/Firebug console for errors.
  2. Check that all values are in supported format, e.g. the value parameter must be an integer
  3. Use the queue to postpone or perform actions in sequence:
_gaq.push(['_trackEvent',...])
_gaq.push(function() {
      document.location = 'http://google.com'
})