mirror of
https://github.com/chinchang/web-maker.git
synced 2025-06-07 18:14:57 +02:00
fix ga code
This commit is contained in:
parent
7645211c40
commit
a50c306fca
@ -23,7 +23,13 @@ if (navigator.onLine && !window.DEBUG) {
|
||||
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
|
||||
})(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
|
||||
|
||||
ga('create', 'UA-87786708-1');
|
||||
if (location.href.indexOf('chrome-extension://') === -1) {
|
||||
ga('create', 'UA-87786708-1');
|
||||
} else {
|
||||
ga('create', 'UA-87786708-1', {'cookieDomain': 'none'});
|
||||
// required for chrome extension protocol
|
||||
ga('set', 'checkProtocolTask', function(){ /* nothing */ });
|
||||
}
|
||||
ga('send', 'pageview');
|
||||
}, 100);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user