mirror of
https://github.com/chinchang/web-maker.git
synced 2025-07-23 23:11:12 +02:00
update ga id
This commit is contained in:
@@ -601,25 +601,22 @@
|
|||||||
</g>
|
</g>
|
||||||
</symbol>
|
</symbol>
|
||||||
</svg>
|
</svg>
|
||||||
<script type="text/javascript">
|
<!-- Global site tag (gtag.js) - Google Analytics -->
|
||||||
if (location.host.indexOf('localhost') === -1) {
|
<script
|
||||||
var _gaq = _gaq || [];
|
async
|
||||||
_gaq.push(['_setAccount', 'UA-87786708-1']);
|
src="https://www.googletagmanager.com/gtag/js?id=UA-87786708-2"
|
||||||
_gaq.push(['_trackPageview']);
|
></script>
|
||||||
|
<script>
|
||||||
|
window.dataLayer = window.dataLayer || [];
|
||||||
|
|
||||||
(function() {
|
function gtag() {
|
||||||
var ga = document.createElement('script');
|
dataLayer.push(arguments);
|
||||||
ga.type = 'text/javascript';
|
|
||||||
ga.async = true;
|
|
||||||
ga.src =
|
|
||||||
('https:' == document.location.protocol
|
|
||||||
? 'https://ssl'
|
|
||||||
: 'http://www') + '.google-analytics.com/ga.js';
|
|
||||||
var s = document.getElementsByTagName('script')[0];
|
|
||||||
s.parentNode.insertBefore(ga, s);
|
|
||||||
})();
|
|
||||||
}
|
}
|
||||||
|
gtag('js', new Date());
|
||||||
|
|
||||||
|
gtag('config', 'UA-87786708-2');
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
window.$crisp = [];
|
window.$crisp = [];
|
||||||
window.CRISP_WEBSITE_ID = 'c00b07b9-42da-45dd-87b0-e614bf7fb240';
|
window.CRISP_WEBSITE_ID = 'c00b07b9-42da-45dd-87b0-e614bf7fb240';
|
||||||
|
@@ -32,9 +32,9 @@ if (navigator.onLine && !window.DEBUG) {
|
|||||||
})(window, document, 'script', 'https://www.google-analytics.com/analytics.js', 'ga');
|
})(window, document, 'script', 'https://www.google-analytics.com/analytics.js', 'ga');
|
||||||
|
|
||||||
if (location.href.indexOf('chrome-extension://') === -1) {
|
if (location.href.indexOf('chrome-extension://') === -1) {
|
||||||
ga('create', 'UA-87786708-1');
|
ga('create', 'UA-87786708-2');
|
||||||
} else {
|
} else {
|
||||||
ga('create', 'UA-87786708-1', {
|
ga('create', 'UA-87786708-2', {
|
||||||
'cookieDomain': 'none'
|
'cookieDomain': 'none'
|
||||||
});
|
});
|
||||||
// required for chrome extension protocol
|
// required for chrome extension protocol
|
||||||
|
Reference in New Issue
Block a user