here is an updated guide on SPAs: https://data-marketing-school.com/en/blog/google-analytics/track-single-page-applications/