diff options
author | Manolo Carrasco <manolo@apache.org> | 2015-09-18 10:36:49 +0200 |
---|---|---|
committer | Manolo Carrasco <manolo@apache.org> | 2015-09-18 10:36:49 +0200 |
commit | bcc51bb45735eeb273de40d969d82ec0e8636e81 (patch) | |
tree | a15a9802df3015a8d7c6e6a6fac381df343a8c74 | |
parent | 87fe8976a7af6fd44a4f8f7207334454f1039505 (diff) | |
download | vaadin-core-bcc51bb45735eeb273de40d969d82ec0e8636e81.tar.gz vaadin-core-bcc51bb45735eeb273de40d969d82ec0e8636e81.zip |
Fix ga.js hostname control
-rw-r--r-- | ga.js | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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) } |