summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorManolo Carrasco <manolo@apache.org>2015-09-18 11:10:13 +0200
committerManolo Carrasco <manolo@apache.org>2015-09-18 11:10:13 +0200
commitfbb503b24acd8a4f9b14f07477a9bc68b7a91f5f (patch)
tree5c3d0bed28ef27624fbda19cc55e33420f58f721
parentbcc51bb45735eeb273de40d969d82ec0e8636e81 (diff)
downloadvaadin-core-fbb503b24acd8a4f9b14f07477a9bc68b7a91f5f.tar.gz
vaadin-core-fbb503b24acd8a4f9b14f07477a9bc68b7a91f5f.zip
Convert new path to old pattern to reuse current data in GA0.3.0-beta9
-rw-r--r--ga.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/ga.js b/ga.js
index 4299af2..8439f09 100644
--- a/ga.js
+++ b/ga.js
@@ -9,7 +9,9 @@ ga('create', 'UA-658457-6', 'auto');
function locationHashChanged() {
if(/vaadin/.test(window.location.hostname)) {
- var pageViewUrl = (window.location.pathname + window.location.hash).replace('#', '/');
+ var pageViewUrl = (window.location.pathname + window.location.hash)
+ .replace(/vaadin-components\/latest\/(.+)\/demo/, 'components-examples/$1')
+ .replace('#', '/');
ga('send', 'pageview', pageViewUrl)
}
}