homepage Welcome to WebmasterWorld Guest from 54.237.99.131
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Home / Forums Index / Google / Google AdWords
Forum Library, Charter, Moderators: buckworks & eWhisper & skibum

Google AdWords Forum

    
Tracking Event as Conversion using onclick function Tracking
Event tracking using onclick feature
briggidere

WebmasterWorld Senior Member 5+ Year Member



 
Msg#: 4408775 posted 11:45 pm on Jan 19, 2012 (gmt 0)

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 :-)

 

sunnyhbk

5+ Year Member



 
Msg#: 4408775 posted 2:36 am on Jan 20, 2012 (gmt 0)

Hi briggidere,

I had a similar question as well. Saved this link. You can give it a try. Hope it helps
[answers.yahoo.com...]

Marty_Foley

10+ Year Member



 
Msg#: 4408775 posted 8:00 pm on Feb 20, 2012 (gmt 0)

Try this:

<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'); _gaq.push(['_trackEvent', 'PopupDetails', 'Click']);">Show</a>

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Google / Google AdWords
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved