Well, As was mentioned in many articles about “How to improve your Alexa Rank”, there is a very enticing method to get all the non-Alexa-toolbar users invovled: to use the “Redirect” from Alexa.
But also, the is something more we can do. To make it really a perfect solution, we can just use this code:
setTimeout(function(){
$("a").each(function(){
if(new RegExp("^http").test($(this).attr("href")))
{
$(this).click(function(){
window.location.href = "http://redirect.alexa.com/redirect?"+this.href;
return false;
})
}
})
},1000);
Why I am saying it’s perfect? See this:
- SEO friendly
The search engines will never get the unuseful “redirect” attribute from the anchor element.
- User friendly
The JavaScript code runs one second after the page is loaded. So the users just smoothly get over it.
- Goole PageRank friendly (Reference friendly)
I am not using the “href-overwrite” way as what I did before, instead, I use an event-binding to all the anchor elements which has an “href=^http” attribute, so the guy who just simply copy your HTML will keep your original URL, to keep you still get a back-link.
This is just a simple tip from aw (http://www.awflasher.com/blog/). I am a Chinese web developer. So, If you think it’s helpful, feel free to digg or share this topic 🙂
The follow is the old solution, you may just pass it (in Chinese).
Continue reading “Use a simple jQuery to improve your Alexa Rank” →