Welcome to WebmasterWorld Guest from 54.156.92.243

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)

New User

10+ Year Member

joined:May 4, 2005
posts:2
votes: 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?

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

Full Member

10+ Year Member

joined:Mar 3, 2004
posts:270
votes: 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.
 

Join The Conversation

Moderators and Top Contributors

Hot Threads This Week

Featured Threads

Free SEO Tools

Hire Expert Members