mirror of
https://github.com/KevinMidboe/zoff.git
synced 2025-10-29 18:00:23 +00:00
Fixed analytics pageview being sent on localhost
This commit is contained in:
@@ -8,7 +8,9 @@ var Channel = {
|
||||
mobile_beginning = Helper.mobilecheck();
|
||||
var side = Helper.mobilecheck() ? "left" : "right";
|
||||
|
||||
ga('send', 'pageview');
|
||||
if(window.location.hostname != "localhost") {
|
||||
ga('send', 'pageview');
|
||||
}
|
||||
|
||||
window.onpopstate = function(e){
|
||||
Channel.onepage_load();
|
||||
|
||||
@@ -376,7 +376,9 @@ var Frontpage = {
|
||||
//Materialize.toast('<p id="aprilfools">We suck at pranks..<a class="waves-effect waves-light btn light-green" style="pointer-events:none;">Agreed</a></p>', 100000);
|
||||
}
|
||||
|
||||
ga('send', 'pageview');
|
||||
if(window.location.hostname != "localhost") {
|
||||
ga('send', 'pageview');
|
||||
}
|
||||
|
||||
window.onpopstate = function(e){
|
||||
var url_split = window.location.href.split("/");
|
||||
|
||||
Reference in New Issue
Block a user