next.js
4fa08dea - Fix sendGAEvent function (for real?) (#62192)

Commit
2 years ago
Fix sendGAEvent function (for real?) (#62192) The recently merged PR - https://github.com/vercel/next.js/pull/62065, doesn't seem to fix the issue. As per the comment this seems to be related to `dataLayer` that does not like working with Arrays, but works with [arguments object](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Functions/arguments). Also, when using window.gtag(...) an Arguments() is pushed instead of Array(). Fixes #61703
Author
Parents
Loading