Based on react-ga docs, it is designed to work with Universal Analytics which was the latest version of Google Analytics until Oct 14, 2020. Since then, GA-4 is the default property type in Google Analytics. You need to create a property of type Universal Analytics. `Please find from below link to get tracking ID
https://stackoverflow.com/questions/6...
In this video, we will learn how to integrate google analytics to your react js application within minutes. You should have a google account to start using analytics.
Google Analytics - https://analytics.google.com/analytic...
Source Code:
Initialization and track page views - https://github.com/codegeous/react-co...
Event tracker custom hook - https://github.com/codegeous/react-co...
Please subscribe to the channel to get more frequent updates.