Namecheap.com - Cheap domain name registration, renewal and transfers - Free SSL Certificates - Web Hosting Namecheap.com - Cheap domain name registration, renewal and transfers - Free SSL Certificates - Web Hosting

google analytics – javascript event

2012
May 21

in the past, we used google analytics javascript event like this:
<a href=”products/jqrte_latest.zip” title=”jQuery rich text editor – jQRTE” onclick=”javascript: pageTracker._trackPageview(‘/products/jqrte’);”>jQuery Rich Text Editor v0.4.2</a>

However, we did try to use the above code and found that it would not reflect to the google analytics in real time.

Hence, we make change on the code like this and it works finally:
<a href=”#” onClick=”_gaq.push(['_trackPageview', '/page/javascript_call']);”>javascript event</a>

One Response to “google analytics – javascript event”

  1. jqteam says:

    we are developing fackbook apps at this stage, after facebook apps are ready, we are going to create a facebook page!

Your Reply