diff --git a/src/components/Analytics/providers/ga.ts b/src/components/Analytics/providers/ga.ts index cdfbd24f..5a01e1f7 100644 --- a/src/components/Analytics/providers/ga.ts +++ b/src/components/Analytics/providers/ga.ts @@ -21,8 +21,8 @@ export default () => { if (!window.gtag) { attachScript(); /** @type {Gtag.Gtag} */ - window.gtag = (...args) => { - window.dataLayer.push(...args); + window.gtag = function() { + window.dataLayer.push(arguments); }; window.gtag('js', new Date()); // config event registers a pageview by default