Member-only story
Google Analytics in React.js
Abandoning our previous Google Analytics App + Web properties, this time we created a GA dashboard purely for web. (So we finally get a tracking id, which looks like UA-123456-78
~) You can refer to this tutorial to learn how to get a Google Tracking id ๐
To implement tracking in our React.js project, we will use the package react-ga
.
This article will cover the following topics:
- Analyzing user acquisition
- Tracking PageViews
- Tracking Events
- Tracking Load/Render Performance
- Tracking Exception
If you are new to Google Analytics, here are two helpful youtube links that will guide you through the dashboard:
Terms in GA
Session
Google analytics is session-based event tracking, so we may think a session as a period of user activities. A session starts when user enters our website. It ends under the following conditions:
- After 30 minutes of inactivity