tomay / rebioma

Automatically exported from code.google.com/p/rebioma
0 stars 0 forks source link

use Google analytics to track site usage #373

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
It would be good to know more about changes in site usage, this could be useful 
in grant reporting for example. Google analytics provides one way to monitor 
site traffic, usually by including some analytics js that runs with each page 
load (urchin.js) (there are probably many more sophisticated ways of dealing 
with this, but that is a start)
http://www.google.com/analytics/

Original issue reported on code.google.com by tom.alln...@gmail.com on 5 Feb 2011 at 12:16

GoogleCodeExporter commented 9 years ago
Google analytics provides an easy solution, but one doesn't get much back in 
terms of site usage. Longer term, if the project is deployed using Google App 
Engine in the cloud, then much more analytics capacity comes with this

Original comment by tom.alln...@gmail.com on 18 Feb 2011 at 5:04

GoogleCodeExporter commented 9 years ago

Original comment by tom.alln...@gmail.com on 18 Feb 2011 at 5:34

GoogleCodeExporter commented 9 years ago
<script type="text/javascript">

  var _gaq = _gaq || [];
  _gaq.push(['_setAccount', 'UA-5342207-3']);
  _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>

Original comment by ajmrakot...@gmail.com on 20 Oct 2011 at 8:22