Forum Moderators: open

Message Too Old, No Replies

Can Link Juice be Passed thru JavaScript or PHP Links?

         

TopAngler

2:20 pm on Dec 12, 2012 (gmt 0)

10+ Year Member



I have a group of outbound links that I need to track clicks. At the moment, the href points to a snippet of JavaScript that calls a php script that logs the click and redirects the user to the destination URL. I wrote this code many years ago and I'm wondering if there is a better way to do this – and if possible, be able to pass link juice to some of these outbound links – while still tracking clicks?. I've always assumed no link juice can pass through this type of link – please correct me if I'm wrong.

martinibuster

4:02 pm on Dec 12, 2012 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



Is your script recording just the clicks or other data, like the IP address? A well rounded website tracker will report outbound traffic.

TopAngler

8:45 pm on Dec 17, 2012 (gmt 0)

10+ Year Member



Thanks for your reply about "A well rounded website tracker", but my question pertains to Link Juice in this scenario.

martinibuster

9:50 pm on Dec 17, 2012 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



You're welcome. :) I should have quoted what part of your post I was answering.

I'm wondering if there is a better way to do this


As for your other question, as I understand it, Google is supposed to pass PageRank via JS. It reconstructs the link from the script. Personally I'm a bit on the fence, even though Matt Cutts says you can put a nofollow on a JS link in order to keep it from counting.

[youtube.com...]