homepage Welcome to WebmasterWorld Guest from 54.161.214.221
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Visit PubCon.com
Home / Forums Index / Code, Content, and Presentation / JavaScript and AJAX
Forum Library, Charter, Moderator: open

JavaScript and AJAX Forum

    
Javascript to track outbound clickstream
has anyone used this before?
ro0treqd




msg:1470446
 12:57 am on May 4, 2005 (gmt 0)

I have a site that requires me to report on clicks to outside websites. Currently when a user clicks on an outbound link i am redirecting them through an internal page to be able to pass some variable and count the action. I figured there should be a way to count outbound clickstreams using some type of javascript action, but haven't heard of anyone doing this.

has anyone tried this before? and if so, does it work?

 

jollymcfats




msg:1470447
 4:41 am on May 4, 2005 (gmt 0)

You could try an onclick + web bug combo. Listen for onclick on your outbound links, and if you get a click, twiddle the query string of a 1 pixel image somewhere on the page before letting the click complete.

Maybe something like document.getElementById('someGraphic').href += '?out=' + thisLink.href; return true; to add the outbound activity to your access log.

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / JavaScript and AJAX
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