Skip to main content

All Questions

0 votes
1 answer
79 views

How to make Google Analytics send requests only from the main page of the site

Me need send traffic only from one page of the site. I'm using React v17 and React Router v5. I used Universal Analytics, but it no longer supports it, and Google Analytics 4 sends traffic to all ...
Datorik's user avatar
1 vote
1 answer
660 views

Tutorial uses a React Hook, but I'm working in a Class Component setting

I'm trying to follow this tutorial to implement Google Analytics with pageview tracking in my React application. However, the tutorial uses a React hook, while I've set up my application using class ...
Marty's user avatar
  • 2,234
1 vote
1 answer
2k views

How to get Google Analytics to work with React

I'm trying to track each page but google only registers a view each time I click the refresh button. Not when iv'e routed to a new path. Anyone got an Idea on how to make this work? import React, {...
Johnny Bravo's user avatar
2 votes
1 answer
2k views

What are firebase.analytics() default logged events for a web app?

From this page, we get that Firebase is supposed to auto log some events. https://support.google.com/firebase/answer/6317485?hl=en I have a web app, this is not a mobile app. This is already ...
cbdeveloper's user avatar
  • 31.6k