Update ga4.js
This commit is contained in:
parent
7c8a5741d7
commit
74b680078a
@ -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);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user