diff js/google_analytics.js @ 18:903b91a97990 judyates

updated site to use google analytics
author Robert McIntyre <rlm@mit.edu>
date Mon, 11 Jul 2011 03:06:13 -0400
parents
children
line wrap: on
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/js/google_analytics.js	Mon Jul 11 03:06:13 2011 -0400
     1.3 @@ -0,0 +1,9 @@
     1.4 +var _gaq = _gaq || [];
     1.5 +_gaq.push(['_setAccount', 'UA-24471363-1']);
     1.6 +_gaq.push(['_trackPageview']);
     1.7 +
     1.8 +(function() {
     1.9 +    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
    1.10 +    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
    1.11 +    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
    1.12 +})();