mirror of
https://github.com/KevinMidboe/zoff.git
synced 2025-10-29 18:00:23 +00:00
Adding dash to pageview for prettier google-analytics listing
This commit is contained in:
@@ -52,7 +52,9 @@ var Channel = {
|
|||||||
var side = Helper.mobilecheck() ? "left" : "right";
|
var side = Helper.mobilecheck() ? "left" : "right";
|
||||||
|
|
||||||
if(window.location.hostname != "localhost") {
|
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){
|
window.onpopstate = function(e){
|
||||||
|
|||||||
@@ -434,7 +434,9 @@ var Frontpage = {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if(window.location.hostname != "localhost") {
|
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){
|
window.onpopstate = function(e){
|
||||||
|
|||||||
@@ -7,7 +7,9 @@ window.addEventListener("DOMContentLoaded", function(e) {
|
|||||||
Helper.setHtml("#contact-container", "Send a mail to us: <a title='Open in client' href='mailto:contact@zoff.me?Subject=Contact%20Zoff'>contact@zoff.me</a>");
|
Helper.setHtml("#contact-container", "Send a mail to us: <a title='Open in client' href='mailto:contact@zoff.me?Subject=Contact%20Zoff'>contact@zoff.me</a>");
|
||||||
Helper.css("#submit-contact-form", "display", "none");
|
Helper.css("#submit-contact-form", "display", "none");
|
||||||
|
|
||||||
ga('send', 'pageview');
|
var page = window.location.pathname;
|
||||||
|
if(page.substring(page.length - 1) != "/") page += "/";
|
||||||
|
ga('send', 'pageview', page);
|
||||||
|
|
||||||
if(!Helper.mobilecheck()) {
|
if(!Helper.mobilecheck()) {
|
||||||
if(document.querySelector("#iframe-container")) {
|
if(document.querySelector("#iframe-container")) {
|
||||||
|
|||||||
Reference in New Issue
Block a user