score:1
Accepted answer
I found the problem. Google Analytic's code was:
function gtag(){dataLayer.push(arguments);}
I changed it to:
window.gtag = (...args) => dataLayer.push(args);
However, GA expects an arguments
object because it uses arguments.callee
.
Source: stackoverflow.com
Related Query
- Loading Google Analytic's gtag.js using Webpack after everything else loads
- I'm using google oauth with React js and it is loading google account and after i click on my profile popup get closed
- How to set the Google Analytics cookie only after another consent cookie is set and "true"?
- Using webpack and react-router for lazyloading and code-splitting not loading
- Debugging ReactJs in Chrome on page load - this and everything else is undefined when using console
- Routes not loading after using "npm run build" in React
- background-image URL not loading using Webpack
- Webpack error while loading module DomUtils after import enzyme
- Google tag manager not sending analytics request after route changes
- Allow google analytics to load only after consented in Next.js
- Wepback. Loading chunk failed after using `import()`
- Google Analytics using React Web / Cordova
- Loading CSS using Webpack and React
- Why is my website not loading anymore after using redux-persist
- React Routes not working after building the app using webpack
- How can I call a useEffect only once after everything loads from redux useSelector hooks?
- Error 401 when trying to download a file after using Google Picker API
- CSS loads after HTML using React and SemanticUI
- Webpack not loading output files in localhost even after compiling successfully
- Profile Image won't display after loading from local storage using ReactJS
- unexpected hash code after using google tag manager in nextjs
- Problem Redirecting after google signin in express react app using passport-google-oauth20
- Webpack chunk loading using HTTP instead of HTTPS
- loading Data fetched from the API after refreshing page in react using redux
- Invalid configuration object. Webpack has been initialised using a configuration object that does not match the API schema
- Dynamically import images from a directory using webpack
- How to set up Google Analytics for React-Router?
- 'Symbol' is undefined in IE after using babel
- How to use google analytics with next.js app?
- Adding Google Analytics to React
More Query from same tag
- How to scoll Swipeabledrawer MUI in React
- How to override bootstrap 5 modal scss property in react
- Reactjs how to add variable in URL parameter
- Trouble with react-bootstrap-table width
- Array being populated with JSX Elements not rendering/updating
- React hooks & RTK pattern for a series of chained http requests
- How can I put the horizontal line between the two columns in a Bootstrap row?
- React Navigation add save button
- Host react app and laravel backend(Admin panel) in same laravel application project
- map to dropdown if condition is met reactjs
- React save the value of current state and make it unchangeable
- Pass props in Link react-router
- Wrap a JavaScript function reference
- React this.state going outdated
- React router protected route with firebase auth check
- Dynamically update navbar cart amount
- Qt "passthrough" or "container" widget
- Any way to efficiently log if a server exists with JavaScript without CORS?
- How to pass multiple states through react context api
- I'm having trouble with react-datepicker position
- Running React method after another
- ESLint warns React Query mutation must be included in dependency array
- MUI ToggleButton set selected background-colour dynamically
- React Router Dom doesn't recognize url with query params
- React: TypeError: Cannot read property 'setState' of undefined
- How to add event listeners to create-react-app default sw.js file
- nginx 2 locations for different apps (react and angular)
- React doesn't update the view after login
- How to connect my cli app to a website using websocket securely
- Loop inside a react component