[推荐]用GoogleRelatedLinks检验网页优化效果
荐 ★★★★★
用GoogleRelatedLinks检验网页优化效果
以下是http://relcontent.googlesyndication.com/relcontent/show_rc.js文件内容:内容经过
加密处理,
(function(){
functiong(a) {return a!=null?'"'+a+'"':'""'}//判断是否为空函数,不为空则把a变成"+a+"字符串的形式。
function k(a)//url编码函数
{if(typeof encodeURIComponent=="function")
{return encodeURIComponent(a)}
else{return escape(a)}
}
function d(a,c){//如果a=“modules”,返回i(c)否则返回a=a+K(c)+"&";
if(c){switch(a){
case "modules":return i(c);
default:return a+"="+k(c)+"&"}}
return""}
function i(a){
if(typeof a=="object")
{var c="";for(var e=0;e<a.length;++e)
{c+=d("mod"+e,a[e])}
return c}
else{return d("mod0",a)}}
function j(a,c,e){
e=e.substring(0,1000);e=e.replace(/%\w?$/,"");
c.write('<iframe name="google_rc_frame" width='+g(a.google_rc["width"])+
" height="+g(a.google_rc["height"])+' frameborder="0" src='+g(e)+' marginwidth="0" marginheight="0" vspace="0" hspace="0" allowtransparency="true" scrolling="no">');c.write("</iframe>")}
function n(a){a.google_rc=null}
function h(){//该函数为获取内容代码,
var a=window,c=document,e=new Date,f=e.getTime();
a.google_rc["rand"]=f;
var b="http://relcontent.googlesyndication.com/relcontent/content?";b+=d("format",a.google_rc["format"]);
b+=d("modules",a.google_rc["modules"]);b+=d("r",a.google_rc["rand"]);b+=d("c_line",a.google_rc["color_line"]);
b+=d("c_bg",a.google_rc["color_bg"]);b+=d("c_footer",a.google_rc["color_footer"]);b+=d("c_header",a.google_rc["color_header"]);b+=d("c_text",a.google_rc["color_text"]);b+=d("c_link",a.google_rc["color_link"]);b+=d("c_source",a.google_rc["color_source"]);b+=d("client",a.google_rc["client"]);b+=d("url",a.google_rc["url"]);b+=d("alt_url",a.google_rc["alt_url"]);b+=d("cof",a.google_rc["cof"]);j(a,c,b.slice(0,-1));n(a)}
function l(a,c,e)
{h();return true}
function m()//document.referrer指上一页的来源
{var a=window,c=document,e=null,f=c.referrer,
b=c.location;a.onerror=l;
a.google_rc["format"]="rc";
if(a.google_rc["width"]&&a.google_rc["height"]){a.google_rc["format"]=a.google_rc["width"]+"x"+a.google_rc["height"]+"_"+a.google_rc["format"]}if(a.google_rc["url"]==e){a.google_rc["url"]=f;
if(a.top.location==c.location){a.google_rc["url"]=b}}}
m();
h();
})()
说明:由于以上代码没有出现较明显的“计算过程”,所以关键代码http://relcontent.googlesyndication.com/relcontent/content?";b+=d("format",a.google_rc["format传回去的很可能是当前网页的url和显示区域的格式;也就是说:google related 显示的内容不是由该脚本决定的,而是由http://relcontent.googlesyndication.com/里面另外一个“特殊蜘蛛程序”决定,该蜘蛛根据返回的地址,迅速爬行和计算页面参数并从数据库中挑选出脚本要显示的内容。
2、为确定google related显示的条件,guagua513seo用了含不同关键字密度的页面进行测试。测试结果显示;
当页面关键字密度<6%时,google related 显示的是一个搜索框,
当页面关键字密度>=6%时,google related 可以显示相关信息。
当页面关键字密度=100%时,显示的不是关键字新闻,而是与关键字最相关的新闻。(实际上显示的都是相关新闻)
在多次测试中,隐约可以感觉到,google在决定要显示的内容时,参考了由它以前判定的
网站的主题,打个比方说:如果你把测试页面传到一个“主题比较鲜明的
网站”上去,无论该页的内容是什么,显示出来的news“或多或少”与
网站的主题相关。
因此我们在利用google related检验优化效果的时候,不要指望它出现你优化的关键字,而是要让它尽量显示与你关键字“最相关的”另外一个关键字的新闻。
当我们观察google related link显示的新闻时,常会发现它的有些新闻是十几分钟甚至几分钟以前发布的。这说明google有一套速度极快“不同于爬行蜘蛛的程序“在网上不停的搜索,该程序首先满足的是“最新,快速”。
这个最新和快速,也许可以被我们利用,前提是要有足够的原创内容(呵呵,这有点像讲废话,有足够的内容就用不着天天研究SEO了),其实在web2.0时代,获取内容并不是很难的事,问题是怎样突破google那“不知道有多少”套的过滤机制。如果它不承认你
网站的“绅士”地位,天天打领结,喷香水,让座……干多少也没有用……
下一步关注一下这些被google related 显示的
网站是不是往google兜里面扔钱了,如果没有,那我们就又有一个增加
网站流量的好方向……