Fixed GA not reporting events.

This commit is contained in:
Nir Peled 2022-04-04 14:29:37 -04:00
parent 3a6bee309b
commit 43f697d7ba

View File

@ -67,12 +67,9 @@
});
}
(function (d, w, c) {
(w[c] = w[c] || []).push(function() {
var is_single_page = $('html').attr('data-single-page') === 'true';
if (!is_single_page) {
$('head').each(function(_, element) {
$('head').each(function (_, element) {
$(element).append(
'<script async src="https://www.googletagmanager.com/gtag/js?id=G-KF1LLRTQ5Q"></script><script>window.dataLayer = window.dataLayer || [];function gtag(){dataLayer.push(arguments);}gtag(\'js\', new Date());gtag(\'config\', \'G-KF1LLRTQ5Q\');</script>'
);
@ -81,8 +78,6 @@
);
});
}
});
})(document, window, "");
var beforePrint = function() {
var details = document.getElementsByTagName("details");