Skip to content
Browse files

analytics

  • Loading branch information...
1 parent 27a4c38 commit e4fda1d794edef0e8a4426a5b3e5b2f96ee9844c @sheldon committed Nov 20, 2010
Showing with 13 additions and 0 deletions.
  1. +13 −0 app/view/layouts/application.html
View
13 app/view/layouts/application.html
@@ -15,5 +15,18 @@
<script src="http://www.google.com/jsapi"></script>
<script>google.load("jquery", "1");</script>
<?=js_bundle("core")?>
+<script type="text/javascript">
+
+ var _gaq = _gaq || [];
+ _gaq.push(['_setAccount', 'UA-19820652-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>
</body>
</html>

0 comments on commit e4fda1d

Please sign in to comment.
Something went wrong with that request. Please try again.