Welcome to WebmasterWorld Guest from 54.226.146.15

Forum Moderators: open

Message Too Old, No Replies

Javascript to track outbound clickstream

has anyone used this before?

     

ro0treqd

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

10+ Year Member



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

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

10+ Year Member



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.
 

Featured Threads

Hot Threads This Week

Hot Threads This Month