code added to router for analytics