有时候看关键词的统计并不知道具体的关键词是从那个搜索引擎过来的,具体落到了自己网站的那个页面上。给AWStats的关键词列表增加了几个链接,直接指向相应关键词的在百度,谷歌,雅虎3个引擎上的站内搜索结果。效果如图:
修改代码附后:针对6.9版本修改
RCS file: /cvsroot/awstats/awstats/wwwroot/cgi-bin/awstats.pl,v
retrieving revision 1.927
diff -r1.927 awstats.pl
46c46
< 5000; # Nb of records in data arrays after how we need to flush data on disk
---
> 50000; # Nb of records in data arrays after how we need to flush data on disk
15368a15369,15372
> . " <a target=\"_blank\" href=\"http://www.baidu.com/s?wd=site:"
> . $SiteDomain. " ". $mot ."\">[Baidu]</a>"
> . " <a target=\"_blank\" href=\"http://www.google.cn/search?ie=gbk&q=site:"
> . $SiteDomain. " " . $mot ."\">[Google]</a>"
15416a15421,15424
> . " <a target=\"_blank\" href=\"http://www.baidu.com/s?wd=site:"
> . $SiteDomain. " ". $mot ."\">[Baidu]</a>"
> . " <a target=\"_blank\" href=\"http://www.google.cn/search?ie=gbk&q=site:"
> . $SiteDomain. " " . $mot ."\">[Google]</a>"
18754a18763,18766
> . " <a target=\"_blank\" href=\"http://www.baidu.com/s?wd=site:"
> . $SiteDomain. " ". $mot ."\">[Baidu]</a>"
> . " <a target=\"_blank\" href=\"http://www.google.cn/search?ie=gbk&q=site:"
> . $SiteDomain. " " . $mot ."\">[Google]</a>"
18824a18837,18840
> . " <a target=\"_blank\" href=\"http://www.baidu.com/s?wd=site:"
> . $SiteDomain. " ". $mot ."\">[Baidu]</a>"
> . " <a target=\"_blank\" href=\"http://www.google.cn/search?ie=gbk&q=site:"
> . $SiteDomain. " " . $mot ."\">[Google]</a>"
作者:
车东 发表于:2007-09-28 15:09 最后更新于:2009-04-24 10:04
版权声明:可以转载,转载时请务必以超链接形式标明文章 给AWStats关键词统计增加去百度,谷歌等搜索引擎的站内查询链接 的原始出处和作者信息及 本版权声明。
http://www.chedong.com/blog/archives/001382.html
« Lilina设置:Atom格式的RSS全文输出 | (回到Blog入口)|(回到首页) | Google的搜索来源分布跟踪解读:GGGL与GGLD,sourceid和client,rlz,rls等 » [再编辑]