Hello, I am trying to integrate Google Analytics through a global tag through
react-helmet but no page views show up on Analytics.
The following code should trigger an automatic pageView on Google Analytics when the app initially loads, but it doesn’t.
window.dataLayer = window.dataLayer || ;
gtag('js', new Date());
I can see it loads properly, but no events are being registered on Analytics.
Is this allowed through an app? Would appreciate some direction, thanks!