[543454] Re-enable Google Analytics

Bug: 543454
Signed-off-by: Pierre-Charles David <pierre-charles.david@obeo.fr>
diff --git a/articles-videos.html b/articles-videos.html
index 5b8eac7..002ef75 100644
--- a/articles-videos.html
+++ b/articles-videos.html
@@ -33,7 +33,7 @@
 	<!-- Eclipse Foundation cookie consent: -->
 	<link rel="stylesheet" type="text/css" href="//www.eclipse.org/eclipse.org-common/themes/solstice/public/stylesheets/vendor/cookieconsent/cookieconsent.min.css" />
 	<script src="//www.eclipse.org/eclipse.org-common/themes/solstice/public/javascript/vendor/cookieconsent/default.min.js"></script>
-		
+	<script type="text/javascript" src="js/ga.js"></script>
 </head>
 
 <body ng-app="sirius" ng-controller="main" class="cloak">
diff --git a/articles.html b/articles.html
index 473089a..746e3f1 100644
--- a/articles.html
+++ b/articles.html
@@ -30,6 +30,7 @@
 	<!-- Eclipse Foundation cookie consent: -->
 	<link rel="stylesheet" type="text/css" href="//www.eclipse.org/eclipse.org-common/themes/solstice/public/stylesheets/vendor/cookieconsent/cookieconsent.min.css" />
 	<script src="//www.eclipse.org/eclipse.org-common/themes/solstice/public/javascript/vendor/cookieconsent/default.min.js"></script>
+	<script type="text/javascript" src="js/ga.js"></script>
 </head>
 	
 <body ng-app="sirius" ng-controller="main" class="cloak">
diff --git a/community.html b/community.html
index 68723ca..67c024e 100644
--- a/community.html
+++ b/community.html
@@ -27,6 +27,7 @@
 	<!-- Eclipse Foundation cookie consent: -->
 	<link rel="stylesheet" type="text/css" href="//www.eclipse.org/eclipse.org-common/themes/solstice/public/stylesheets/vendor/cookieconsent/cookieconsent.min.css" />
 	<script src="//www.eclipse.org/eclipse.org-common/themes/solstice/public/javascript/vendor/cookieconsent/default.min.js"></script>
+	<script type="text/javascript" src="js/ga.js"></script>
 </head>
 	
 <body ng-app="sirius" ng-controller="main" class="cloak">
diff --git a/download.html b/download.html
index 7878539..6046dd7 100644
--- a/download.html
+++ b/download.html
@@ -27,6 +27,7 @@
 	<!-- Eclipse Foundation cookie consent: -->
 	<link rel="stylesheet" type="text/css" href="//www.eclipse.org/eclipse.org-common/themes/solstice/public/stylesheets/vendor/cookieconsent/cookieconsent.min.css" />
 	<script src="//www.eclipse.org/eclipse.org-common/themes/solstice/public/javascript/vendor/cookieconsent/default.min.js"></script>
+	<script type="text/javascript" src="js/ga.js"></script>
 </head>
 
 <body ng-app="sirius" ng-controller="main" class="cloak">
diff --git a/features.html b/features.html
index f7952ca..72e237c 100644
--- a/features.html
+++ b/features.html
@@ -31,6 +31,7 @@
 	<!-- Eclipse Foundation cookie consent: -->
 	<link rel="stylesheet" type="text/css" href="//www.eclipse.org/eclipse.org-common/themes/solstice/public/stylesheets/vendor/cookieconsent/cookieconsent.min.css" />
 	<script src="//www.eclipse.org/eclipse.org-common/themes/solstice/public/javascript/vendor/cookieconsent/default.min.js"></script>
+	<script type="text/javascript" src="js/ga.js"></script>
 </head>
 
 <body ng-app="sirius" ng-controller="main" class="cloak">
diff --git a/gallery.html b/gallery.html
index cc8a7b0..d6f7572 100644
--- a/gallery.html
+++ b/gallery.html
@@ -30,6 +30,7 @@
 	<!-- Eclipse Foundation cookie consent: -->
 	<link rel="stylesheet" type="text/css" href="//www.eclipse.org/eclipse.org-common/themes/solstice/public/stylesheets/vendor/cookieconsent/cookieconsent.min.css" />
 	<script src="//www.eclipse.org/eclipse.org-common/themes/solstice/public/javascript/vendor/cookieconsent/default.min.js"></script>
+	<script type="text/javascript" src="js/ga.js"></script>
 </head>
 	
 <body ng-app="sirius" ng-controller="main" class="cloak">
diff --git a/getstarted.html b/getstarted.html
index f7f0b54..bcb5d4f 100644
--- a/getstarted.html
+++ b/getstarted.html
@@ -30,6 +30,7 @@
 	<!-- Eclipse Foundation cookie consent: -->
 	<link rel="stylesheet" type="text/css" href="//www.eclipse.org/eclipse.org-common/themes/solstice/public/stylesheets/vendor/cookieconsent/cookieconsent.min.css" />
 	<script src="//www.eclipse.org/eclipse.org-common/themes/solstice/public/javascript/vendor/cookieconsent/default.min.js"></script>
+	<script type="text/javascript" src="js/ga.js"></script>
 </head>
 
 <body ng-app="sirius" ng-controller="main" class="cloak">
diff --git a/index.html b/index.html
index 61430b6..c6be58c 100644
--- a/index.html
+++ b/index.html
@@ -32,6 +32,7 @@
 	<!-- Eclipse Foundation cookie consent: -->
 	<link rel="stylesheet" type="text/css" href="//www.eclipse.org/eclipse.org-common/themes/solstice/public/stylesheets/vendor/cookieconsent/cookieconsent.min.css" />
 	<script src="//www.eclipse.org/eclipse.org-common/themes/solstice/public/javascript/vendor/cookieconsent/default.min.js"></script>  
+	<script type="text/javascript" src="js/ga.js"></script>
 </head>
 
 <body ng-app="sirius" ng-controller="main" class="cloak">
@@ -205,7 +206,7 @@
 		
 		<div id="tweets" class="centered">
 		<script>
-        		if (document.cookie.endsWith('allow')) {
+        		if (document.cookie.valueOf('eclipse_cookieconsent_status').search("allow") > -1) {
         			var script = document.createElement('script');
         		    script.src = "//platform.twitter.com/widgets.js";
         		    script.type = "text/javascript";
diff --git a/js/ga.js b/js/ga.js
new file mode 100644
index 0000000..e23baea
--- /dev/null
+++ b/js/ga.js
@@ -0,0 +1,9 @@
+if (document.cookie.valueOf('eclipse_cookieconsent_status').search("allow") > -1) {
+    (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-45105163-1', 'auto');
+ga('send', 'pageview');
\ No newline at end of file
diff --git a/lab.html b/lab.html
index 57be167..66d6305 100644
--- a/lab.html
+++ b/lab.html
@@ -29,6 +29,7 @@
 	<!-- Eclipse Foundation cookie consent: -->
 	<link rel="stylesheet" type="text/css" href="//www.eclipse.org/eclipse.org-common/themes/solstice/public/stylesheets/vendor/cookieconsent/cookieconsent.min.css" />
 	<script src="//www.eclipse.org/eclipse.org-common/themes/solstice/public/javascript/vendor/cookieconsent/default.min.js"></script>
+	<script type="text/javascript" src="js/ga.js"></script>
 </head>
 
 <body ng-app="sirius" ng-controller="main" class="cloak">
diff --git a/overview.html b/overview.html
index 6ca4e36..8294c1d 100644
--- a/overview.html
+++ b/overview.html
@@ -27,6 +27,7 @@
 	<!-- Eclipse Foundation cookie consent: -->
 	<link rel="stylesheet" type="text/css" href="//www.eclipse.org/eclipse.org-common/themes/solstice/public/stylesheets/vendor/cookieconsent/cookieconsent.min.css" />
 	<script src="//www.eclipse.org/eclipse.org-common/themes/solstice/public/javascript/vendor/cookieconsent/default.min.js"></script>
+	<script type="text/javascript" src="js/ga.js"></script>
 </head>
 
 <body ng-app="sirius" ng-controller="main" class="cloak">
diff --git a/presentations.html b/presentations.html
index cb18dcf..d2ad252 100644
--- a/presentations.html
+++ b/presentations.html
@@ -30,6 +30,7 @@
 	<!-- Eclipse Foundation cookie consent: -->
 	<link rel="stylesheet" type="text/css" href="//www.eclipse.org/eclipse.org-common/themes/solstice/public/stylesheets/vendor/cookieconsent/cookieconsent.min.css" />
 	<script src="//www.eclipse.org/eclipse.org-common/themes/solstice/public/javascript/vendor/cookieconsent/default.min.js"></script>
+	<script type="text/javascript" src="js/ga.js"></script>
 </head>
 	
 <body ng-app="sirius" ng-controller="main" class="cloak">
diff --git a/videos.html b/videos.html
index 7eef7f3..b42839d 100644
--- a/videos.html
+++ b/videos.html
@@ -30,6 +30,7 @@
 	<!-- Eclipse Foundation cookie consent: -->
 	<link rel="stylesheet" type="text/css" href="//www.eclipse.org/eclipse.org-common/themes/solstice/public/stylesheets/vendor/cookieconsent/cookieconsent.min.css" />
 	<script src="//www.eclipse.org/eclipse.org-common/themes/solstice/public/javascript/vendor/cookieconsent/default.min.js"></script>
+	<script type="text/javascript" src="js/ga.js"></script>
 </head>
 	
 <body ng-app="sirius" ng-controller="main" class="cloak">
diff --git a/whatsnew/whatsnew2.html b/whatsnew/whatsnew2.html
index 749cd5e..fc6905a 100644
--- a/whatsnew/whatsnew2.html
+++ b/whatsnew/whatsnew2.html
@@ -29,6 +29,7 @@
 	<!-- Eclipse Foundation cookie consent: -->
 	<link rel="stylesheet" type="text/css" href="//www.eclipse.org/eclipse.org-common/themes/solstice/public/stylesheets/vendor/cookieconsent/cookieconsent.min.css" />
 	<script src="//www.eclipse.org/eclipse.org-common/themes/solstice/public/javascript/vendor/cookieconsent/default.min.js"></script>
+	<script type="text/javascript" src="js/ga.js"></script>
 </head>
 
 <body ng-app="sirius" ng-controller="main" class="cloak">
diff --git a/whatsnew/whatsnew3-1.html b/whatsnew/whatsnew3-1.html
index ec22d87..3ba6520 100644
--- a/whatsnew/whatsnew3-1.html
+++ b/whatsnew/whatsnew3-1.html
@@ -29,6 +29,7 @@
 	<!-- Eclipse Foundation cookie consent: -->
 	<link rel="stylesheet" type="text/css" href="//www.eclipse.org/eclipse.org-common/themes/solstice/public/stylesheets/vendor/cookieconsent/cookieconsent.min.css" />
 	<script src="//www.eclipse.org/eclipse.org-common/themes/solstice/public/javascript/vendor/cookieconsent/default.min.js"></script>
+	<script type="text/javascript" src="js/ga.js"></script>
 </head>
 
 <body ng-app="sirius" ng-controller="main" class="cloak">
diff --git a/whatsnew/whatsnew3.html b/whatsnew/whatsnew3.html
index 2ad6c91..e549390 100644
--- a/whatsnew/whatsnew3.html
+++ b/whatsnew/whatsnew3.html
@@ -29,6 +29,7 @@
 	<!-- Eclipse Foundation cookie consent: -->
 	<link rel="stylesheet" type="text/css" href="//www.eclipse.org/eclipse.org-common/themes/solstice/public/stylesheets/vendor/cookieconsent/cookieconsent.min.css" />
 	<script src="//www.eclipse.org/eclipse.org-common/themes/solstice/public/javascript/vendor/cookieconsent/default.min.js"></script>
+	<script type="text/javascript" src="js/ga.js"></script>
 </head>
 
 <body ng-app="sirius" ng-controller="main" class="cloak">
diff --git a/whatsnew/whatsnew4-1.html b/whatsnew/whatsnew4-1.html
index 9c9b05a..bf9881e 100644
--- a/whatsnew/whatsnew4-1.html
+++ b/whatsnew/whatsnew4-1.html
@@ -29,6 +29,7 @@
 	<!-- Eclipse Foundation cookie consent: -->
 	<link rel="stylesheet" type="text/css" href="//www.eclipse.org/eclipse.org-common/themes/solstice/public/stylesheets/vendor/cookieconsent/cookieconsent.min.css" />
 	<script src="//www.eclipse.org/eclipse.org-common/themes/solstice/public/javascript/vendor/cookieconsent/default.min.js"></script>
+	<script type="text/javascript" src="js/ga.js"></script>
 </head>
 
 <body ng-app="sirius" ng-controller="main" class="cloak">
diff --git a/whatsnew/whatsnew4.html b/whatsnew/whatsnew4.html
index 1032992..4414baa 100644
--- a/whatsnew/whatsnew4.html
+++ b/whatsnew/whatsnew4.html
@@ -31,6 +31,7 @@
 	<!-- Eclipse Foundation cookie consent: -->
 	<link rel="stylesheet" type="text/css" href="//www.eclipse.org/eclipse.org-common/themes/solstice/public/stylesheets/vendor/cookieconsent/cookieconsent.min.css" />
 	<script src="//www.eclipse.org/eclipse.org-common/themes/solstice/public/javascript/vendor/cookieconsent/default.min.js"></script>
+	<script type="text/javascript" src="js/ga.js"></script>
 </head>
 
 <body ng-app="sirius" ng-controller="main" class="cloak">
diff --git a/whatsnew/whatsnew5-1.html b/whatsnew/whatsnew5-1.html
index b164094..f4eddb3 100644
--- a/whatsnew/whatsnew5-1.html
+++ b/whatsnew/whatsnew5-1.html
@@ -29,6 +29,7 @@
 	<!-- Eclipse Foundation cookie consent: -->
 	<link rel="stylesheet" type="text/css" href="//www.eclipse.org/eclipse.org-common/themes/solstice/public/stylesheets/vendor/cookieconsent/cookieconsent.min.css" />
 	<script src="//www.eclipse.org/eclipse.org-common/themes/solstice/public/javascript/vendor/cookieconsent/default.min.js"></script>
+	<script type="text/javascript" src="js/ga.js"></script>
 </head>
 
 <body ng-app="sirius" ng-controller="main" class="cloak">
diff --git a/whatsnew/whatsnew5.html b/whatsnew/whatsnew5.html
index 5d9588e..f6e8e5b 100644
--- a/whatsnew/whatsnew5.html
+++ b/whatsnew/whatsnew5.html
@@ -29,6 +29,7 @@
 	<!-- Eclipse Foundation cookie consent: -->
 	<link rel="stylesheet" type="text/css" href="//www.eclipse.org/eclipse.org-common/themes/solstice/public/stylesheets/vendor/cookieconsent/cookieconsent.min.css" />
 	<script src="//www.eclipse.org/eclipse.org-common/themes/solstice/public/javascript/vendor/cookieconsent/default.min.js"></script>
+	<script type="text/javascript" src="js/ga.js"></script>
 </head>
 
 <body ng-app="sirius" ng-controller="main" class="cloak">
diff --git a/whatsnew/whatsnew6-1.html b/whatsnew/whatsnew6-1.html
index 0f018d1..ca78111 100644
--- a/whatsnew/whatsnew6-1.html
+++ b/whatsnew/whatsnew6-1.html
@@ -30,6 +30,7 @@
 	<!-- Eclipse Foundation cookie consent: -->
 	<link rel="stylesheet" type="text/css" href="//www.eclipse.org/eclipse.org-common/themes/solstice/public/stylesheets/vendor/cookieconsent/cookieconsent.min.css" />
 	<script src="//www.eclipse.org/eclipse.org-common/themes/solstice/public/javascript/vendor/cookieconsent/default.min.js"></script>
+	<script type="text/javascript" src="js/ga.js"></script>
 </head>
 
 <body ng-app="sirius" ng-controller="main" class="cloak">
diff --git a/whatsnew/whatsnew6.html b/whatsnew/whatsnew6.html
index f0463bb..32bb9e3 100644
--- a/whatsnew/whatsnew6.html
+++ b/whatsnew/whatsnew6.html
@@ -30,6 +30,7 @@
 	<!-- Eclipse Foundation cookie consent: -->
 	<link rel="stylesheet" type="text/css" href="//www.eclipse.org/eclipse.org-common/themes/solstice/public/stylesheets/vendor/cookieconsent/cookieconsent.min.css" />
 	<script src="//www.eclipse.org/eclipse.org-common/themes/solstice/public/javascript/vendor/cookieconsent/default.min.js"></script>
+	<script type="text/javascript" src="js/ga.js"></script>
 </head>
 
 <body ng-app="sirius" ng-controller="main" class="cloak">