Google Analytics Custom Event Tracking Not Working

Andrew picture Andrew · Sep 9, 2013 · Viewed 21.6k times · Source

I am trying to add custom event tracking to a link on a site I built. For some reason it does not seem to be working. The code I have is:

onClick="_gaq.push(['_trackEvent', 'SOU Links', 'Click', 'Top edu banner']);"

The site URL is http://sou.wpengine.com/. The link with the event tracking is the "Sign Up Now" link at the top of the page. Any ideas?

Answer

Homer6 picture Homer6 · Mar 9, 2014

I had an issue with events not tracking (using Universal Analytics).

I installed the official Google Analytics Debugger from

https://chrome.google.com/webstore/detail/google-analytics-debugger/jnkmfdileelhofjcijamephohjechhna

And it showed me a warning message that event value was expecting an integer, but receiving an empty string. Once I cleared that up, the events showed up in the realtime tracker right away.