update google analytics and permalink