看了“浅析豆瓣的Google Analytics应用”,于是就依葫芦画瓢,把自己用的“Google Analytics”统计代码也修改一番。
对于不同的应用程序添加使用 “用户定义函数(_setVar()函数)” ,来对特定来源的用户行为进行分类,在Google Analytics 后台的访问者/用户定义 中查看其浏览属性。
对于不同的应用程序做的模板修改
modoer(1.2):
<!–{if $user->isLogin}–>
pageTracker._setVar(”$user->uid”);
<!–{/if}–>
这个获取用户id的变量在模板头部可以找到。
supesite(7.0):
<!–{if !empty($_SGLOBAL['supe_uid'])}–>
pageTracker._setVar(”$_SGLOBAL['supe_uid']“);
<!–{/if}–>
这个是从“batch.panel.php”文件中获知的用户id变量。
Discuz(7.0):
<!–{if $discuz_uid}–>
pageTracker._setVar(”$discuz_uid”);
<!–{/if}–>
Hdwiki(4.0.4):
<!–{if !$user['groupid']}–>
pageTracker._setVar(”$user['uid']“);
<!–{/if}–>
这个从“head.htm”文件中获知的用户变量id和状态判断代码。
不过这个还不能用,调用到的uid不是当前用户的uid,而可能是总人数,囧
先忽略掉。。
补充Hdwiki的统计代码
由于hd在一些页面会把“user”这个数组覆盖掉,在管理员“*夜静然*”的帮助下,弄好了。
打开“model/base.class.php”,找到:
$this->view->assign(’style’,$style);
下面加入:
$this->view->assign(’ly_uid’,$this->user['uid']);
然后Google Analytics的自定义部分就这样写:
<!–{if {$ly_uid}==’0′}–>
<!–{else}–>
pageTracker._setVar(”{$ly_uid}”);
<!–{/if}–>
ok,感谢*夜静然*!
哈哈,刚才在FireBug下直接修改“hidden”属性的“input”的value值,然后提交竟然可以准确夸页面提交到指定ID的页面下(留言的)!
试着把多余的带有“hidden”属性的“input”删掉(选中标签,右键,“Delete Element”),然后提交就是不带这些隐藏参数的!
没有看到修改Cookies的,结合“Live HTTP headers”来观察更直接。。
又学习啦一种调试代码的办法
一上来就很多刷信用的消息,开一天就十几条!!!!!!!!!!
不开的话正常消息又看不到!舍谁舍谁?
找自身过滤功能,发现有自己设置关键字过滤的东东,我把“信用”俩字添加进去了,希望有用!
PS:难道说淘宝上的信用都是刷的?刷新用的消息这么猖獗,不得不让人产生这样的联想!?
我的淘宝也没买啥东东,顾上了看,顾不上就懒得看了,懒得刷信用
百度联盟的问卷“百度联盟网址站备案”,填完之后回不去啦,然后瞅瞅,发现使用的这个程序LimeSurvey,就发现啦这款在线问答调查程序。
在官方网站免费注册啦个,也可以试用下demo。
这是我注册的一个测试调查!
由于没有深入使用,这就不具体说用法和特点啦,拉些官方的说明过来看看:
Limesurvey简体中文指南
LimeSurvey (external link) 允许用户快速创建直观、有力的在线问答调查,可以为成千上万的参与者节省精力。调查软件本身可对参与的受访者实现自我导向。本手册是着重于如何安装应用程序、管理安装过程,和支持众多的调查创建者、管理者和可能增加的报告生成用户。
过去几年的发展、大幅提升导致了许多新特点、新变化。升级至最新版本可充分利用到这里所提到的特性。
官方网站:http://www.limesurvey.org/
Google Page Creator服务正式告终,准备全面迁移到Google sites,现在已经提供打包下载全部文件啦。
原来的地址,按照Google的说明会重定向到Google sites(如果你不进行任何操作的话,会自动帮你迁移到Google sites平台)。
下面是22小时前发来的邮件内容:
Dear Google Page Creator User,
As was previously announced, Google will soon be discontinuing operation of the Google Page Creator product. We will be migrating your Page Creator sites over to Google Sites so that they continue to operate with no work on your part. However, we’ve identified you as using Google Page Creator to host files that Sites doesn’t support. We are writing to inform you that, as part of this migration, if you take no action to address this, your hosted files will likely break. If they are important then we suggest you move them to a different hosting service.
Contrary to what was posted in the blog post, the shut down and migration of Google Page Creator has been extended and will begin in a few weeks.
Thank you for your patience during this migration.
Sincerely,
The Google Sites Team
Google, Inc.
1600 Amphitheatre Parkway
Mountain View, CA 94043
You’ve received this mandatory service announcement email to update you about important changes to your Google Page Creator account.
参考(需要翻墙):previously announced
想查看一个网站在三个月内是否有被Google判为恶意网站的记录吗?这里就可以很轻松很容易的看到:
Google Safe Browsing diagnostic page for clin003.com: http://safebrowsing.clients.google.com/safebrowsing/diagnostic?site=clin003.com/
只要吧clin003.com替换为你要查看的域名就可以啦。
在这里可以查看:
What is the current listing status for clin003.com?
(这个网站当前是否还被Google判为恶意网站)
What happened when Google visited this site?
(当Google访问这个网站时,看到啦什么,是否发现了恶意代码,链接,不经用户同意下载程序等)
Has this site acted as an intermediary resulting in further distribution of malware?
(这个网站是否充当过恶意软件分发的中介,出售链接给恶意网站?)
Has this site hosted malware?
(这个网站上是否有恶意软件)
新鲜评论