This commit is contained in:
BorysLevytskyi
2023-05-13 22:39:12 +02:00
parent c3d9f854ae
commit 7fc03bdfff
5 changed files with 35 additions and 16 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>
*/