docs: Attach the google analytics code to our docs pages too
authorAndy Williams <andy@andywilliams.me>
Fri, 8 Dec 2017 11:00:15 +0000 (11:00 +0000)
committerAndy Williams <andy@andywilliams.me>
Fri, 8 Dec 2017 11:00:50 +0000 (11:00 +0000)
doc/head.html

index 7b94f0f..cd743b2 100644 (file)
@@ -3,6 +3,17 @@
 <html>
 <head>
   <title>$title</title>
+
+  <!-- Global site tag (gtag.js) - Google Analytics -->
+  <script async src="https://www.googletagmanager.com/gtag/js?id=UA-110876574-1"></script>
+  <script>
+    window.dataLayer = window.dataLayer || [];
+    function gtag(){dataLayer.push(arguments);}
+    gtag('js', new Date());
+
+    gtag('config', 'UA-110876574-1');
+  </script>
+
   <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
   <link rel="icon" href="favicon.png" type="image/x-icon">
   <link rel="shortcut icon" href="favicon.png" type="image/x-icon">