From bcc51bb45735eeb273de40d969d82ec0e8636e81 Mon Sep 17 00:00:00 2001 From: Manolo Carrasco Date: Fri, 18 Sep 2015 10:36:49 +0200 Subject: Fix ga.js hostname control --- ga.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ga.js') 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) } -- cgit v1.2.3