Adding in Analytics
Explore how to integrate an analytics service that tracks route changes in Angular applications. Understand using RxJS to listen for navigation events and log page views effectively, enabling better monitoring of user navigation patterns.
We'll cover the following...
We'll cover the following...
Routing analytics
Let’s hook up some analytics trackers to Angular’s router. Instead of listening in on individual routes, this service needs to know about every route change. Generate a new service and attach it to the routing module with ng g service analytics.
⚠️ While working locally, make sure you’re on the latest ...