This commit is contained in:
BorysLevytskyi
2023-05-13 22:40:04 +02:00
parent 212c9bf9b2
commit cbb2fff5e8
2 changed files with 21 additions and 2 deletions

View File

@@ -26,8 +26,27 @@
ga('create', 'UA-61569164-1', 'auto');
ga('send', 'pageview');
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date())
gtag('config', 'G-H9EVNH8GNZ');
window.bitwiseCmdAnalyticsHandler = function(evt) {
ga('send', Object.assign({hitType: 'event'}, evt));
gtag('event', evt.eventAction, evt);
return true;
}
})();
})();
/*
<!-- Google tag (gtag.js) -->
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-H9EVNH8GNZ');
</script>
*/

View File

@@ -15,9 +15,9 @@
<meta property="og:image" content="http://bitwisecmd.com/img/social-avatar.png" />
<link rel="manifest" href="%PUBLIC_URL%/manifest.json" />
<title>BitwiseCmd</title>
</head>
<script async src="https://www.googletagmanager.com/gtag/js?id=G-H9EVNH8GNZ"></script>
<body>
<noscript>You need to enable JavaScript to run this app.</noscript>
<div id="root" style="height: 100%"></div>