]> source.dussan.org Git - vaadin-core.git/commitdiff
Fix ga.js hostname control
authorManolo Carrasco <manolo@apache.org>
Fri, 18 Sep 2015 08:36:49 +0000 (10:36 +0200)
committerManolo Carrasco <manolo@apache.org>
Fri, 18 Sep 2015 08:36:49 +0000 (10:36 +0200)
ga.js

diff --git a/ga.js b/ga.js
index afd2135ce879bba7f3343da22af798d32a2909d1..4299af2250ad7fbf1911ebddac4e5c45cf42e2f4 100644 (file)
--- a/ga.js
+++ b/ga.js
@@ -8,7 +8,7 @@
 ga('create', 'UA-658457-6', 'auto');
 
 function locationHashChanged() {
-  if(window.location.hostname === 'vaadin.github.io') {
+  if(/vaadin/.test(window.location.hostname)) {
     var pageViewUrl = (window.location.pathname + window.location.hash).replace('#', '/');
     ga('send', 'pageview', pageViewUrl)
   }