OSDN Git Service

cherrypick from ics Change-Id: I07b59de3f2e4a5fef2e8722d7f7ab159ded8b2df
authorScott Main <smain@google.com>
Fri, 22 Jun 2012 17:25:52 +0000 (10:25 -0700)
committerScott Main <smain@google.com>
Fri, 22 Jun 2012 17:28:47 +0000 (10:28 -0700)
return old analytics script

Change-Id: Ica4abe000b529272efa9ba7867b3e7aa6c8c9e55

tools/droiddoc/templates-sdk/head_tag.cs
tools/droiddoc/templates-sdk/trailer.cs

index 0fefc69..3f91ad3 100644 (file)
@@ -54,10 +54,4 @@ type="text/css">
   var SITE_ROOT = toRoot + basePath.substring(1,basePath.indexOf("/",1));
 </script>
 
-<script src="//www.google.com/js/gweb/analytics/autotrack.js"></script>
-<script>
-  new gweb.analytics.AutoTrack({
-    profile: 'UA-5831155-1'
-  });
-</script>
 </head>
\ No newline at end of file
index e8067dc..7aadcdd 100644 (file)
@@ -47,3 +47,8 @@ var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "htt
 document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
 </script>
 
+<script type="text/javascript">
+  var pageTracker = _gat._getTracker("UA-5831155-1");
+  pageTracker._trackPageview();
+</script>
+