how to write a jquery script that rapidly increases the alexa rating of a drupal website

Finally I've taken a time and organized myself to make something that is supposed to increase my alexa pagerank.

Alexa rating is an important number that is often being looked at. For example tеxtlinkаds shows only two parameters to buyers - the PR of a page AND the alexa rating. nothing else! So we have to do something about it.

I have read a bunch of articles that advise to ask all your friends to install the alexa rating toolbar and ask them to visit your pages every day, so alexa records these visits and reflects that in numbers.

But it is a very ineffective way, as:

  • you may be in some niche that isn't connected with webmasters and internet at all, so your visitors may lack the knowledge how to write a comment, not speaking about installing the alexa toolbar for a firefox ("what's a firefox?" :)
  • even if they are, they will get tired of doing that, so that way is not lasting and eventually your alexa will go back down

That's why I guess alexa has made another way, which we need only to implement and the alexa rating will honestly report the real traffic on the site, thus boosting it up under 50000 in three weeks (that's what they say)

The redirection itself is pretty straightforward, for example, the link to this blog would look like http://redirect.alexa.com/redirect?http://www.vo1dmain.info

OK, then one could start and search-replace all his links, substituting them with the redirect links like that one. Fine, alexa rating boosts up, but.. You would lose all your google PR rating, because you will link to alexa from your every page several times each, thus making a great PR gift to to them :)

But we are not a charity organization, we will make it another way.

I have heard that there is a wordpress plugin that installs a pretty big javascript, which substitutes the real link with a redirect at the moment when user clicks it. Very elegant, because it's a clean way and everybody is happy.

This is exactly what I have done for Drupal, because there is no contributed module out there...

My final version of this javascript looks like this:

 

function alexa_click() {
  var link = this.href;
  if(link.indexOf("redirect")==-1)
  {
    link = "http://redirect.alexa.com/redirect?" + link;
    this.href=link;
  }
  return true;
}

function alexa_attach() {
  $('a').click(alexa_click);
}

if (Drupal.jsEnabled) {
  $(document).ready(alexa_attach);
}

Here is what it does: upon readiness of a page, it attaches itself to all links assigning it an alexa_click function. When any of them gets a click event, the javascript reads the link and prepends the alexa redirection. That's all! Effective and elegant.

A thing to mention - this script uses the built-into-drupal jQuery library, which is why the code snippet is so short. if you want to use it on any non-drupal site, you will need to download jQuery (40kb only!) and include it into your page.

After creating the script you save it somewhere in /misc among all other scripts and create a drupal php block which will contain only one line of code:

<?php
    drupal_add_js('misc/alexa.js');
?>

That's it!

Let's see how it'll work. Today it is the 19th of october and alexa rating of this a bit forgotten blog is 2.9mio. This my javascript was installed today, so I wonder how good is going to be the alexa number in november.

And of course I am still under the great impression of the VPS hosting I have moved to about a month ago. The speed and control are incredible! Read my whole review about my new VPS hosting here

your rating is fantastic

Vo1dmain.info has a traffic rank of: 4,556,302

that's true

hehe, that's true. I've been using this technique for quite a while on several sites, then I found significant traffic drops from all of them. It was caused by alexa's redirecting url, which wasn't working. That caused clicks on all link to lead nowhere - alexa was very dangerous thing in this case, so I had to switch it off. Before that it made me real nice ranks (this particular site doesn't get much traffic, so alexa rank was around 200000)

interesting

So what's the current status on this experiment? And is this something that will affect all sites?

I am really wondered to know

I am really wondered to know all this because I though installing Alexa Bar is the only way to do it. Thanks for sharing it. I might be looking similar functionality for my other sites and wordpress as well.

Thanks for the update

Thanks for the update because I wasn't even aware of it thanks.

nice tips, hope it works!

nice tips, hope it works!

Thanks

U information is really worthy. Thanks for this.

Thanks for sharing it. I

Thanks for sharing it. I might be looking similar functionality for my other sites and wordpress as well.

Some really great touch up

Some really great touch up information in this post. My friend was looking for information like this. I'll give him a call. Thanks overall.

You have hit the nail on the

You have hit the nail on the head with this you are so right, I have been reading plenty on this over the last few days and you seem to have the most information. I will link your blog from my site for others to follow.

Thanks

Jill xx

I'm still waiting to hear

I'm still waiting to hear more about the status of this experiment. Also, I'm curious if Alexa ranking can have any effect on Google ranking. I mean I think if Google saw a site in the top 100,000 it would believe it to be a quality site, right?

It's over.

I've been using this technique for quite a while on several sites, then I found significant traffic drops from all of them. It was caused by alexa's redirecting url, which wasn't working. That caused clicks on all link to lead nowhere - alexa was very dangerous thing in this case, so I had to switch it off. Before that it made me real nice ranks (this particular site doesn't get much traffic, so alexa rank was around 200000)

as all we need is just one vote from each user, I think it would work if the script could be active this until first click (alexa vote received), and then remove itself so it doesn't overload the counters at alexa. I'm quite busy now, so if you implement it, you're welcome to post your report here

Powered by Drupal - Design by artinet