Browse Source

Added Google Analytics

Kevin Brown 10 years ago
parent
commit
dcfaa5f628
2 changed files with 20 additions and 0 deletions
  1. 10 0
      docs/_layouts/default.html
  2. 10 0
      docs/_layouts/home.html

+ 10 - 0
docs/_layouts/default.html

@@ -9,5 +9,15 @@
         {{ content }}
         {{ content }}
 
 
         {% include footer.html %}
         {% include footer.html %}
+
+        <script type="text/javascript">
+        (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-57144786-2', 'auto');
+        ga('send', 'pageview');
+        </script>
     </body>
     </body>
 </html>
 </html>

+ 10 - 0
docs/_layouts/home.html

@@ -16,5 +16,15 @@
         {{ content }}
         {{ content }}
 
 
         {% include footer.html %}
         {% include footer.html %}
+
+        <script type="text/javascript">
+        (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-57144786-2', 'auto');
+        ga('send', 'pageview');
+        </script>
     </body>
     </body>
 </html>
 </html>