All Questions
5 questions
0
votes
1
answer
780
views
Remix App - Error: Minified React error #418 / #423 - on Google Analytics gtag script
I have a remix App (SSR). When i add a script for google analytics, it shows an error of hydration in production , especially on line with gtag('js', new Date())
Does anybody know another way to add ...
11
votes
3
answers
9k
views
Google Analytic GA4 does not disable default page_view event in React Application
I'm trying to add Google Analytics GA4 to a React Application,
index.html
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
...
1
vote
1
answer
12k
views
Send a new config to gtag when a new "page" is loaded in an SPA does not show the new path in realtime analytics
I have React SPA when I use gtag to track users in Google Analytics. I am confused with data which I see in Real-Time Google Analytics. When app starts or user is routed to new react route I fired ...
4
votes
1
answer
2k
views
Trouble implementing Google Analytics gtag.js in React-based Chrome Extension
My problem in a nutshell: The window object that gtag.js operates on and the window object available in my react context (a content.js context) are different objects, and so I can't write events from ...
1
vote
1
answer
2k
views
Loading Google Analytic's gtag.js using Webpack after everything else loads
If I load Google Analytics like they recommended, everything works:
<head>
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-123"></script>
<script>
window....