mirror of
https://github.com/BorysLevytskyi/BitwiseCmd.git
synced 2025-12-10 06:52:05 +01:00
GA4
This commit is contained in:
@@ -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>
|
||||
*/
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user