TBR website: Moving analytics to head

Change-Id: Icd20c1b34a7ff22aada9a18f59686764b7c57d3b
diff --git a/templates/layouts/default.mustache b/templates/layouts/default.mustache
index ce874f0..0599e85 100644
--- a/templates/layouts/default.mustache
+++ b/templates/layouts/default.mustache
@@ -16,14 +16,5 @@
 
       {{{ yield }}}
     </main>
-    <script>
-        (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
-        (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
-        m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
-        })(window,document,'script','//www.google-analytics.com/analytics.js','ga');
-
-        ga('create', 'UA-59720824-6', 'auto');
-        ga('send', 'pageview');
-    </script>
   </body>
 </html>
diff --git a/templates/partials/head.mustache b/templates/partials/head.mustache
index e357909..9503c93 100644
--- a/templates/partials/head.mustache
+++ b/templates/partials/head.mustache
@@ -43,4 +43,13 @@
 
   <link rel="stylesheet" href="/css/bundle.css">
   <script src="/js/bundle.js"></script>
+  <script>
+    (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
+    (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
+    m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
+    })(window,document,'script','//www.google-analytics.com/analytics.js','ga');
+
+    ga('create', 'UA-59720824-6', 'auto');
+    ga('send', 'pageview');
+  </script>
 </head>