aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorManolo Carrasco <manolo@apache.org>2015-09-18 10:36:49 +0200
committerManolo Carrasco <manolo@apache.org>2015-09-18 10:36:49 +0200
commitbcc51bb45735eeb273de40d969d82ec0e8636e81 (patch)
treea15a9802df3015a8d7c6e6a6fac381df343a8c74
parent87fe8976a7af6fd44a4f8f7207334454f1039505 (diff)
downloadvaadin-core-bcc51bb45735eeb273de40d969d82ec0e8636e81.tar.gz
vaadin-core-bcc51bb45735eeb273de40d969d82ec0e8636e81.zip
Fix ga.js hostname control
-rw-r--r--ga.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/ga.js b/ga.js
index afd2135..4299af2 100644
--- 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)
}