aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoris Guyonvarch2015-03-07 20:51:12 +0100
committerJoris Guyonvarch2015-03-07 20:51:12 +0100
commitbb3c33c46900eaf675b6cd7996590e6b2b51085e (patch)
tree918063d0adf2474a221fc0703a4e2d3ff124469a
parent8066367ecdf9ddd4f00cbf6c0bfdf9eebd844f0c (diff)
Adding google analytics
-rw-r--r--analytics.js7
-rw-r--r--index.html1
2 files changed, 8 insertions, 0 deletions
diff --git a/analytics.js b/analytics.js
new file mode 100644
index 0000000..80a8888
--- /dev/null
+++ b/analytics.js
@@ -0,0 +1,7 @@
+(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-60500709-1', 'auto');
+ga('send', 'pageview');
diff --git a/index.html b/index.html
index 525301b..b0e9965 100644
--- a/index.html
+++ b/index.html
@@ -5,6 +5,7 @@
<meta charset="UTF-8">
<script src="markdown.js"></script>
<script src="router.js"></script>
+ <script src="analytics.js"></script>
<link rel="shortcut icon" href="Images/icon.png">
<link rel="stylesheet" type="text/css" href="reset.css">
<link rel="stylesheet" type="text/css" href="font.css">