Welcome to WebmasterWorld Guest from

Forum Moderators: open

Message Too Old, No Replies

Javascript to track outbound clickstream

has anyone used this before?



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?


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