Functions and components for Google Analytics to work with React. You need to have React-GA to work with these functions.
If you want to know how to configure the Google Analytics, check our guide
Normally we will initializate the ReactGA on our
index.tsx using the id generated.
For more API examples check the React-GA repo
Using SPA (Single Page Application) with a shell creates some challenges to track pages/routes changes correctly. To automatically track the page view every time to go to a new route, you could use the function
withGARouter along with your