add google analytics tracking for router transitions