redirect and analytics

redirect and analytics done.