mirror of
https://github.com/KevinMidboe/zoff.git
synced 2025-12-08 20:48:48 +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();
|
||||
|
||||
Reference in New Issue
Block a user