Forum Moderators: open

Message Too Old, No Replies

How To Track Click Throughs With Javascript?

         

kazisdaman3

10:00 am on Nov 27, 2008 (gmt 0)

10+ Year Member



I've searched all through the web and through the forums here as well.

How are analytic services like google analytics for instance tracking click-throughs, specifically to outside pages?

when a visitor leaves my page, they are able to tell (what URL they clicked out to)?

Would anyone know how they are doing this through javascript? Any help is greatly appreciated, thanks for your time.

vol7ron

4:39 pm on Dec 3, 2008 (gmt 0)

10+ Year Member



What exactly are you trying to get? Through JavaScript and Cookies. You can easily attach an onclick event to document elements. When that occurs, run code to update cookie or data on their server.

AJAX is pretty handy, hmm?