最近在YMU网络的开发过程中试用了domodomain提供的Web Analytics服务,发现其分析功能很强,能很精确地定位访问来源,而且能展现一个用户的页面访问顺序,界面也挺好用(见截图)。但是其服务不是免费的,价格还挺贵的,不过你可以免费试用一个月哦!
在使用domodomain及Google Analytics这两种Web Analytics工具过程中,顺便分析了一下,发现两者在Browser和Server间交互的实现机制是基本一致的。
<o:p> </o:p>
下面以domodomain为例说明实现机制,其中目标监测网页:http://youmonitor.us/index.shtml;
而referrer为http://java-guru.iteye.com/blog/133803。
<o:p> </o:p>
1. 首先需要在index.shtml的下增加以下js代码:<o:p></o:p>
<script src="http://www.domodomain.com/DomoDomain/Sensor/DDSense.aspx?id=73083351-f537<st1:chmetcnv w:st="on" tcsc="0" numbertype="1" negative="True" hasspace="False" sourcevalue="45" unitname="C">-45c</st1:chmetcnv>0-abd3<st1:chmetcnv w:st="on" tcsc="0" numbertype="1" negative="True" hasspace="False" sourcevalue="88" unitname="F">-88f</st1:chmetcnv>171b<st1:chmetcnv w:st="on" tcsc="0" numbertype="1" negative="False" hasspace="False" sourcevalue="24" unitname="a">24a</st1:chmetcnv>85"
type="text/javascript" language="javascript"><!---->script><o:p></o:p>
<o:p> </o:p>
其中id是申请服务时分配的标识。
<o:p> </o:p>
2. 生成base page<o:p></o:p>
当index.shtml被访问时,js代码(http://www.domodomain.com/DomoDomain/Sensor/DDSense.aspx?id=73083351-f537<st1:chmetcnv w:st="on" tcsc="0" numbertype="1" negative="True" hasspace="False" sourcevalue="45" unitname="C">-45c</st1:chmetcnv>0-abd3<st1:chmetcnv w:st="on" tcsc="0" numbertype="1" negative="True" hasspace="False" sourcevalue="88" unitname="F">-88f</st1:chmetcnv>171b<st1:chmetcnv w:st="on" tcsc="0" numbertype="1" negative="False" hasspace="False" sourcevalue="24" unitname="a">24a</st1:chmetcnv>85)被下载、执行,并返回如下结果:
<o:p> </o:p>
function DD()<o:p></o:p>
{<o:p></o:p>
var n = new Date();<o:p></o:p>
var sTimezone = n.getTimezoneOffset();<o:p></o:p>
var sWidth=screen.width;<o:p></o:p>
var sHeight=screen.height;<o:p></o:p>
var sApp=navigator.appName;<o:p></o:p>
var sReferrer=""+escape(document.referrer);<o:p></o:p>
var sLocation=""+escape(document.URL);<o:p></o:p>
var sColor=0;<o:p></o:p>
if (sApp!="Netscape") sColor=screen.colorDepth;<o:p></o:p>
else sColor=screen.pixelDepth;<o:p></o:p>
document.write("/DDWebSensor.aspx?id=73083351-f537<st1:chmetcnv w:st="on" tcsc="0" numbertype="1" negative="True" hasspace="False" sourcevalue="45" unitname="C">-45c</st1:chmetcnv>0-abd3<st1:chmetcnv w:st="on" tcsc="0" numbertype="1" negative="True" hasspace="False" sourcevalue="88" unitname="F">-88f</st1:chmetcnv>171b<st1:chmetcnv w:st="on" tcsc="0" numbertype="1" negative="False" hasspace="False" sourcevalue="24" unitname="a">24a</st1:chmetcnv>85&keywords="+<o:p></o:p>
"&rnd="+Math.random()+<o:p></o:p>
"&location="+sLocation+<o:p></o:p>
"&referrer="+sReferrer+<o:p></o:p>
"&color="+sColor+<o:p></o:p>
"&width="+sWidth+<o:p></o:p>
"&height="+sHeight+<o:p></o:p>
"&timezone="+sTimezone+<o:p></o:p>
"\" width=\"1\" height=\"1\" >"); <o:p></o:p>
}<o:p></o:p>
function DD2(){<o:p></o:p>
var n = new Date();<o:p></o:p>
var sTimezone = n.getTimezoneOffset();<o:p></o:p>
var sWidth=screen.width;<o:p></o:p>
var sHeight=screen.height;<o:p></o:p>
var sApp=navigator.appName;<o:p></o:p>
var sReferrer=""+escape(document.referrer);<o:p></o:p>
var sLocation=""+escape(document.URL);<o:p></o:p>
var sColor=0;<o:p></o:p>
if (sApp!="Netscape") sColor=screen.colorDepth;<o:p></o:p>
else sColor=screen.pixelDepth;<o:p></o:p>
document.write("<o:p></o:p>
分享到:
相关推荐
精通WEB ANALYTICS:来自专家的最佳WEB分析策略。另外一本精通WEB ANALYTICS2.0的很多,自行搜索下载
Chapters are devoted to traffic, clickpath, and content use analysis, measuring the effectiveness of design changes, including A/B testing, building user profiles based on search habits, supporting ...
Web Analytics:An Hour a Day
使用Google Analytics的高级网站分析的方法
Web Analytics-An Hour A Day With- Avinash Kaushik,英文版。
精通Web Analytics 2.0—用户中心科学与在线统计艺术_
Now, with Web Analytics 2.0, there’s a worthy accompaniment. When people ask, ‘Who is the smartest guy in the room when it comes to online marketing?’ only one name comes to mind: Avinash. I’d ...
Chapter 1 The Bold New World of Web Analytics 2.0 1 Chapter 2 The Optimal Strategy for Choosing Your Web Analytics Soul Mate 15 Chapter 3 The Awesome World of Clickstream Analysis: Metrics 35 ...
最近读了《精通Web+Analytics+2.0++用户中心科学与在线艺术统计》一书,真是受益匪浅!该书是介绍网站分析方面写的非常好的一本书,通过这本书,让我了解到了网站分析的魅力。以前听过在大公司的一些同学介绍过他们...
清华大学出版社,作者(美)Avinash Kaushik
web分析,网站分析 piwik 最大的网站分析 仿百度、google类型的网站分析工具
Web Analytics 2.0: Empowering Customer Centricity
开放式网络分析Open Web Analytics项目的官方Git存储库。 有关文档,请参见Github上的Wiki。
非常轻量级的客户行为抓取js,可以记录客户浏览行为,记录日志到后台。 供参考学习
精通Web 2.0 精通Web 2.0精通Web 2.0 精通Web 2.0 精通Web 2.0 精通Web 2.0
google analytics UTM批量生成工具
个人编写的关于web 统计的示例程序,通过js得到用户的浏览器、操作系统等信息,用ajax发送服务器,跟踪统计用户,进行用户行为分析
Google Analytics 网站日志分析工具使用方法介绍
毕业设计:基于Web的网站数据分析软件Wysistat的设计与实现(需要下载CAJViewer 7.2阅读器)
将Google Analytics(分析)添加到Android 应用实例,具体流程可以查看官方文档:https://developers.google.cn/analytics/devguides/collection/android/v4/?hl=zh-cn