给AWStats关键词统计增加去百度,谷歌等搜索引擎的站内查询链接


有时候看关键词的统计并不知道具体的关键词是从那个搜索引擎过来的,具体落到了自己网站的那个页面上。给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
版权声明:可以转载,转载时请务必以超链接形式标明文章 的原始出处和作者信息及本版权声明

Comments

这个会增加awstats分析文件的大小吧,动态进结果页很慢的,我原来加了七八个ExtraSectionName 结果awstats.pl?config=每次进去半天才出结果 害得我只好给取消了

大大,您可替我弄一個像您一樣的awstats嗎? 我不知從何入手, 但很想看到您加到awstats的額外信息!! Can you make my awstats like yours? I don't know how to do it but I would like to see those information that you have put in the standard awstats. Thank you. my email is scwwong@gmail.com

这些内容是加到awstats.pl文件中吗,请问具体放在什么位置?谢谢!

发表一个评论

(如果你此前从未在此 Blog 上发表过评论,则你的评论必须在 Blog 主人验证后才能显示,请你耐心等候。)

相关文章

关于

此页面包含了发表于2007年09月28日 下午03时28分的 Blog 上的单篇日记。

此 Blog 的前一篇日记是 Lilina设置:Atom格式的RSS全文输出

此 Blog 的后一篇日记是 Google的搜索来源分布跟踪解读:GGGL与GGLD,sourceid和client,rlz,rls等

更多信息可在 主索引 页和 归档 页看到。

Creative Commons License
此 Blog 中的日记遵循以下授权 Creative Commons(创作共用)授权.
Powered by
Movable Type 3.36