1
0
mirror of https://github.com/chinchang/web-maker.git synced 2025-07-26 16:20:09 +02:00

event fix and add once

This commit is contained in:
Kushagra Gour
2017-01-04 02:33:53 +05:30
parent 8e34f86cd2
commit 772847fc88
3 changed files with 35 additions and 8 deletions

View File

@@ -10,7 +10,7 @@ window.trackEvent = function (category, action, label, value) {
}
}
// if online, load after 2 seconds
// if online, load after sometime
if (navigator.onLine && !window.DEBUG) {
/* eslint-disable */
@@ -26,7 +26,7 @@ if (navigator.onLine && !window.DEBUG) {
// required for chrome extension protocol
ga('set', 'checkProtocolTask', function(){ /* nothing */ });
ga('send', 'pageview');
}, 0);
}, 100);
/* eslint-enable */
}