Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Add Google Analytics.

  • Loading branch information...
commit d669e26facbf480554caabb305f2e846138cebed 1 parent f879625
Ryan Grove authored July 27, 2012

Showing 1 changed file with 12 additions and 0 deletions. Show diff stats Hide diff stats

  1. 12  views/layouts/default.handlebars
12  views/layouts/default.handlebars
@@ -4,6 +4,18 @@
4 4
     <meta charset="utf-8">
5 5
     <title>{{#if title}}{{title}}{{else}}Emergency Kitten!{{/if}}</title>
6 6
     <link rel="stylesheet" href="/css/core.css">
  7
+
  8
+    <script>
  9
+      var _gaq = _gaq || [];
  10
+      _gaq.push(['_setAccount', 'UA-33711406-1']);
  11
+      _gaq.push(['_trackPageview']);
  12
+
  13
+      (function() {
  14
+        var ga = document.createElement('script'); ga.async = true;
  15
+        ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
  16
+        var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  17
+      })();
  18
+    </script>
7 19
 </head>
8 20
 <body>
9 21
 

0 notes on commit d669e26

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