Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 869f3d1f authored by Scott Main's avatar Scott Main Committed by Android (Google) Code Review
Browse files

Merge "docs: update analytics script to support event tracking" into jb-mr1-dev

parents 7dc45a8b ae3ee424
Loading
Loading
Loading
Loading
+12 −0
Original line number Diff line number Diff line
@@ -33,4 +33,16 @@ type="text/css">
<?cs else ?>
<script src="<?cs var:toroot ?>navtree_data.js" type="text/javascript"></script>
<?cs /if ?>

<script type="text/javascript">
  var _gaq = _gaq || [];
  _gaq.push(['_setAccount', 'UA-5831155-1']);
  _gaq.push(['_trackPageview']);

  (function() {
    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  })();
</script>
</head>
 No newline at end of file
+0 −7
Original line number Diff line number Diff line
@@ -43,12 +43,5 @@ $(".feed").dacTabbedList({
<?cs /if ?>
<script type="text/javascript">
init(); /* initialize android-developer-docs.js */
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 pageTracker = _gat._getTracker("UA-5831155-1");
  pageTracker._trackPageview();
</script>