annotate 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 |
|
rev |
line source |
rlm@18
|
1 var _gaq = _gaq || [];
|
rlm@18
|
2 _gaq.push(['_setAccount', 'UA-24471363-1']);
|
rlm@18
|
3 _gaq.push(['_trackPageview']);
|
rlm@18
|
4
|
rlm@18
|
5 (function() {
|
rlm@18
|
6 var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
|
rlm@18
|
7 ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
|
rlm@18
|
8 var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
|
rlm@18
|
9 })();
|