Through Alexa Redirect optimize the site Alexa rankings

Source: Internet
Author: User
Keywords Alexa rankings

Intermediary transaction SEO diagnosis Taobao guest Cloud host technology Hall

About Arctic ' s Internal Alexa Redirect, this is a good idea to redirect your site's links to http://redirect.alexa.com/redirect?http:// Beauty.bazhan.net, and then wait for http://redirect.alexa.com to return to their site links. This completes a traffic statistic. (statistical effect remains to be seen)

Looks good, I try to install this plugin.

Studied the code, found that the link on the site a label on the add a sentence onclick= "parent.location.href= ' http://redirect.alexa.com/redirect?http:// beauty.bazhan.net/'; Event.returnvalue=false ', implemented here to redirect to Alexa.com.

Now the code is:
<a href= "http://blog.const.net.cn/" onclick= "parent.location.href=" http://redirect.alexa.com/redirect?http:// beauty.bazhan.net/'; return event.returnvalue=false ' >CBM ' land</a>

Then we found a few questions:

1. Use the parent.location to direct to alexa.com, equal to window.location orientation page, this kind of jump does not bring referer information.
2. Here return event.returnvalue=false do not know if it is necessary. This specifies the return of the onclick event, But redirect is parent.location, regardless of whether the onclick return is false,parent.location have already begun to execute, I think this is forbidden parent.location turn.
3. Increase page file volume. Each a tag adds a lot of junk code, and if the onclick content is encapsulated in a common function, isn't it better?

To improve the method, write a common function:

<script language= "JavaScript" >
function Onclick_func (event) {
Event.href= ' Http://redirect.alexa.com/redirect? +event.href;
}
</script>

Each a label changes to <a onclick= "Onclick_func (This)" href= "http://beauty.bazhan.net/" > My Web page </a>

So that each connection plus the data only onclick= "Onclick_func (This)", relatively long before the onclick event is not a lot of short, in the page links more than the case can save a lot of pages of the number of bytes.

You can also name the function shorter, which saves the download traffic is conceivable.

Simplify the code again:

<a href= "http://beauty.bazhan.net/" onclick= "E (This)" >CBM ' s land</a>

<script language= "javascript" >function E (E) {e.href= "Http://redirect.alexa.com/redirect?" +e.href; </script>

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.