Update ga4.js

This commit is contained in:
Preston 2024-10-29 08:19:49 -07:00 committed by GitHub
parent 7c8a5741d7
commit 74b680078a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -50,4 +50,9 @@ function addGoogleAnalyticsTags() {
scriptContent.innerHTML = `
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('
gtag('js', new Date());
gtag('config', '${trackingId}');
`;
document.head.appendChild(scriptContent);
}
}