Mercurial > judyates
comparison 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 |
comparison
equal
deleted
inserted
replaced
17:46fdf059b154 | 18:903b91a97990 |
---|---|
1 var _gaq = _gaq || []; | |
2 _gaq.push(['_setAccount', 'UA-24471363-1']); | |
3 _gaq.push(['_trackPageview']); | |
4 | |
5 (function() { | |
6 var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true; | |
7 ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js'; | |
8 var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s); | |
9 })(); |