Strip /dev from ga page name

This commit is contained in:
Misode
2020-07-14 02:39:20 +02:00
parent e8960579d3
commit 6151255d7c
2 changed files with 3 additions and 1 deletions

View File

@@ -8,6 +8,8 @@
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-73024255-2', 'auto');
ga('set', 'page', location.pathname.replace(/^\/dev/, ''))
ga('set', 'dimension2', 'dev');
ga('send', 'pageview');
</script>
<!-- End Google Analytics -->