Skip to content

Commit 623ea07

Browse files
authored
Merge pull request #41 from wado-lang/claude/ga-tracking-data-missing-r0v72x
Fix GA gtag() so tracking hits actually send
2 parents bc48ef1 + 363ead2 commit 623ea07

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

assets/analytics.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,9 @@ if (!doNotTrack) init();
1010

1111
function init() {
1212
window.dataLayer = window.dataLayer || [];
13-
const gtag = (...args) => window.dataLayer.push(args);
13+
const gtag = function () {
14+
window.dataLayer.push(arguments);
15+
};
1416
window.gtag = gtag;
1517

1618
let stored = null;

0 commit comments

Comments
 (0)