docs + analytics   [点评]

<script type=”text/javascript”>
var gaJsHost = ((“https:” == document.location.protocol) ? “https://ssl.” : “http://www.”);
document.write(unescape(“%3Cscript src='” + gaJsHost + “google-analytics.com/ga.js’ type=’text/javascript’%3E%3C/script%3E”));
</script>
<script type=”text/javascript”>
var page = typeof urchinPage != ‘undefined’ ? urchinPage : window.location.href;
var account = ‘UA-18065-1’;
if (typeof _gat != ‘undefined’) {
var pageTracker = _gat._getTracker(account);
pageTracker._setAllowAnchor(true);
pageTracker._trackPageview(page);
}
</script>
<script><!–
   if (typeof _gat != ‘undefined’) {
    
     var docid = writely.getDocId();
     var doctitle = writely.Vars.getDisplayTitle();
     var useranalyticsid = writely.Vars.getStringDocVar(‘useranalyticsid’);
    
    if (useranalyticsid) {
     doctitle = doctitle.replace(/\s+/g, ‘_’);
     var userPageTracker = _gat._getTracker(useranalyticsid);
     userPageTracker._setAllowAnchor(true);
     // Use the analytics id as a unique cookie path for this user.
     userPageTracker._setCookiePath(‘/u/’ + useranalyticsid);
     userPageTracker._trackPageview(doctitle);
    }
   }
  –></script>

发布于 2009 年 03 月 17 日 by fisher in 默认

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注