Skip to main content

All 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 ...
Yura Chim's user avatar
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);} ...
usertest's user avatar
  • 2,272
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 ...
David K.'s user avatar
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 ...
pixelearth's user avatar
  • 14.7k
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....
Leo Jiang's user avatar
  • 26.3k