Hi everyone,
I am trying to get analytics to track a click on a button as an event so I can create goals and import these into AdWords.
The current code for the button is;
<a class="button" href="javascript:void(0)" onclick="javascript:window.open(getDetailUrl(),'popup','resizable=1,scrollbars=1,status=no,left=50,top=50,width=550,height=350');">Show</a>
I have the following bit of code which I have to something with, but I'm just not sure what it is....
<a href="#" onClick="_gaq.push(['_trackEvent', 'PopupDetails', 'Click']);">View Contact</a>
Does anyone know how I am meant to get this working correctly or do you need any more info from me to be able to help?
Any help is appreciated. I'm not good with coding as you might know :-)