Tracking page views on route changes