Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix sendGAEvent function (vercel#62065)
Previous implementation of `sendGAEvent` was pushing arguments to `dataLayer` via rest parameter syntax, resulting in an actual array, which GA doesn't seem to process correctly (resulting in the event not showing up in GA reports). This PR refactors it to a vanilla JS function passing data via the `arguments` array-like object, which is able to be processed correctly and results in the event showing up as expected. fixes [61703](vercel#61703) Co-authored-by: JJ Kasper <jj@jjsweb.site>
- Loading branch information