Permalink
Browse files

Add Google Analytics.

  • Loading branch information...
1 parent f879625 commit d669e26facbf480554caabb305f2e846138cebed @rgrove rgrove committed Jul 27, 2012
Showing with 12 additions and 0 deletions.
  1. +12 −0 views/layouts/default.handlebars
@@ -4,6 +4,18 @@
<meta charset="utf-8">
<title>{{#if title}}{{title}}{{else}}Emergency Kitten!{{/if}}</title>
<link rel="stylesheet" href="/css/core.css">
+
+ <script>
+ var _gaq = _gaq || [];
+ _gaq.push(['_setAccount', 'UA-33711406-1']);
+ _gaq.push(['_trackPageview']);
+
+ (function() {
+ var ga = document.createElement('script'); 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>
</head>
<body>

0 comments on commit d669e26

Please sign in to comment.