joaoferreira / SPFx-Google-Analytics

This repository has a solution to add Google Analytics to the Modern SharePoint Sites
18 stars 13 forks source link

Track navigation if page is not refreshed #1

Open TuomasPakkanen opened 6 years ago

TuomasPakkanen commented 6 years ago

Some of the navigation on modern pages happens so that the browser does not load the whole page again on page load. This causes some user navigation to not get tracked with this code.

Could you update the code so that it would also track when user navigates between different pages on the modern site? Now it tracks only the first load, maybe a bit depending which navigation element is clicked.

joelfmrodrigues commented 5 years ago

@TuomasPakkanen I have slightly updated this solution to track pages where a full load doesn't happen. Feel free to give it a try https://joelfmrodrigues.wordpress.com/2019/01/10/add-google-analytics-to-sharepoint-modern-pages/