Hi, I want to use some kind of redirects for my website forum outbound links. Lets say some user types "This site www.SomeSite.com is cool" The descripton remains the same but the outbound link will be a) www.MySite.com/redirect/?go=www.SomeSite.com OR b) javacript: go('www.SomeSite.com') - then some kind of javascript redirect or... well I have to think about it... The idea/goal is : log outbound links in my database Questions: - Which method is better... a or b ? - Is googlebot friendly? Or I'm asking for problems with mister G? Thanks and Have a nice day.
If you're using a web analytics solution, you can usually track jump-off pages without implementing any extra code yourself
The idea is: log all the clicked outside links Lets say some user clicks on www.digitalpoint.com link inside MyPage.php. I get a new entry in my database DateTime ; FromPage ; ToURL 13 Mar 2007 12:21 ; mypage.php ; www.digitalpoint.com
In that case it might be slicker to use a javascript onclick event in your links which calls an ajax function and updates the database. <a href="http://www.link.com" onClick="linkscript()">Click</a> Code (markup):