Too Long; Didn't Read
How to Track User Navigation Events in a React Application is a strategy for tracking page view analytics in an SPA. SPAs leverage HTML5 APIs, AJAX, and the capabilities of modern browsers to only serve the new resources that aren't yet on the page while the rest of the content stays the same. Traditionally, websites send user events to analytics tools via <script> or <link> tags that fire when the page loads, but this is not an option in SPA if you want to track each occurrence.