mirror of
https://github.com/KevinMidboe/zoff.git
synced 2026-02-12 20:39:31 +00:00
Adding dash to pageview for prettier google-analytics listing
This commit is contained in:
@@ -434,7 +434,9 @@ var Frontpage = {
|
||||
}
|
||||
|
||||
if(window.location.hostname != "localhost") {
|
||||
ga('send', 'pageview');
|
||||
var page = window.location.pathname;
|
||||
if(page.substring(page.length - 1) != "/") page += "/";
|
||||
ga('send', 'pageview', page);
|
||||
}
|
||||
|
||||
window.onpopstate = function(e){
|
||||
|
||||
Reference in New Issue
Block a user