added analytics view code to user profile view