1
0
mirror of https://github.com/chinchang/web-maker.git synced 2025-07-22 22:41:12 +02:00

update ga id

This commit is contained in:
Kushagra Gour
2019-03-15 14:50:08 +05:30
parent 8f47746827
commit 698de288e0
2 changed files with 15 additions and 18 deletions

View File

@@ -601,25 +601,22 @@
</g>
</symbol>
</svg>
<script type="text/javascript">
if (location.host.indexOf('localhost') === -1) {
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-87786708-1']);
_gaq.push(['_trackPageview']);
<!-- Global site tag (gtag.js) - Google Analytics -->
<script
async
src="https://www.googletagmanager.com/gtag/js?id=UA-87786708-2"
></script>
<script>
window.dataLayer = window.dataLayer || [];
(function() {
var ga = document.createElement('script');
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);
})();
function gtag() {
dataLayer.push(arguments);
}
gtag('js', new Date());
gtag('config', 'UA-87786708-2');
</script>
<script type="text/javascript">
window.$crisp = [];
window.CRISP_WEBSITE_ID = 'c00b07b9-42da-45dd-87b0-e614bf7fb240';

View File

@@ -32,9 +32,9 @@ if (navigator.onLine && !window.DEBUG) {
})(window, document, 'script', 'https://www.google-analytics.com/analytics.js', 'ga');
if (location.href.indexOf('chrome-extension://') === -1) {
ga('create', 'UA-87786708-1');
ga('create', 'UA-87786708-2');
} else {
ga('create', 'UA-87786708-1', {
ga('create', 'UA-87786708-2', {
'cookieDomain': 'none'
});
// required for chrome extension protocol