diff --git a/public/analytics.js b/public/analytics.js index ad02d78..8b37879 100644 --- a/public/analytics.js +++ b/public/analytics.js @@ -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; } -})(); \ No newline at end of file +})(); + + +/* + + +*/ \ No newline at end of file diff --git a/public/index.html b/public/index.html index 2f00817..c049552 100644 --- a/public/index.html +++ b/public/index.html @@ -15,9 +15,9 @@ -